[MPlayer-dev-eng] rtp support in mplayer

chas williams - CONTRACTOR chas.williams at cmf.nrl.navy.mil
Thu May 15 15:21:38 CEST 2008


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.  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?



More information about the MPlayer-dev-eng mailing list