[MPlayer-dev-eng] rtp support in mplayer

Nico Sabbi Nicola.Sabbi at poste.it
Thu May 15 15:36:36 CEST 2008


On Thursday 15 May 2008 15:21:38 chas williams - CONTRACTOR wrote:
> while trying to play from rtp/mpeg-es streams i found i needed the
> following patch:
>
> --- stream/rtp.c.000	2008-05-13 17:37:23.000000000 -0400
> +++ stream/rtp.c	2008-05-13 18:02:02.000000000 -0400
> @@ -246,6 +246,9 @@
>
>    headerSize = 12 + 4*rh->b.cc; /* in bytes */
>
> +  if (rh->b.pt == 32)		/* 32 = MPV from RFC 1890 */
> +	headerSize += 4;	/* skip MPEG video-specific header RFC 2250 */
> +
>    *lengthData = lengthPacket - headerSize;
>    *data = (char*) buf + headerSize;
>
> to skip over the 4-byte mpeg header present in the file. 

eh??? do you want to skip the mpeg-ts 4 bytes header or
I misunderstood what you mean?

> however, 
> after looking at mplayer a bit harder, i see that there are two rtp
> decoders/demuxers.  the one supplied in libavformat (apparently
> derived from ffmpeg) seems like it has more smarts.  which one
> should i be using?
> _______________________________________________
> MPlayer-dev-eng mailing list
> MPlayer-dev-eng at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng





More information about the MPlayer-dev-eng mailing list