[FFmpeg-devel] [PATCH 5/9] When playing mpegts over rtp/rtsp/sdp, lavf must still read PAT/SDT to get available streams

Joakim Plate elupus at ecce.se
Sun Sep 11 14:14:23 CEST 2011


On Sun, 11 Sep 2011 00:58:26 +0200, Michael Niedermayer wrote:

> On Sat, Sep 10, 2011 at 07:23:35PM +0200, Joakim Plate wrote:
>> [3 quoted lines suppressed]
> 
> do you have some stream for this that shows a difference ?
> 
> [...]


If you use VLC to stream an mpegts with something along the line of: 
"rtp{dst=localhost,port=5004,mux=ts,sdp=http://localhost:8080/test.sdp}"

Then open the stream with ffplay http://localhost:8080/test.sdp, 
you can at least see the difference between the patch and not.

With the patch:
Input #0, sdp, from 'http://192.168.4.116:8080/test.sdp':
  Metadata:
    title           : Unnamed
    comment         : N/A
  Duration: 00:00:00.06, start: 24432.098344, bitrate: 30 kb/s
  Program 1
    Stream #0.0: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo,
s16, 125 kb/s
    Stream #0.1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 50.40 fps, 50 tbr, 90k tbn, 100 tbc


Without:
Input #0, sdp, from 'http://192.168.4.116:8080/test.sdp':
  Metadata:
    title           : Unnamed
    comment         : N/A
  Duration: 00:00:00.05, start: 24493.653522, bitrate: 36 kb/s
    Stream #0.0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9],
55.78 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0.1: Audio: aac, 48000 Hz, stereo, s16, 130 kb/s


It seems that with this mpegts it still managed to probe the stream without
the patch using mpegts auto_guess. But the streams that was the reason for
this patch, it would not find the right codecs for the streams without
reading PAT/SDT.

/Joakim


Ps. I'm not sure why the topic lines get messed up when i reply to your
messages. But looking at the raw data it seem to contain tabs in the
subject. This is when replying using gmane. Seems your reply had the
following subject:
Subject: Re: [PATCH 5/9] When playing mpegts
	over	rtp/rtsp/sdp,
	lavf must still read PAT/SDT to get available streams 
While the original post had:
Subject: [PATCH 5/9] When playing mpegts over rtp/rtsp/sdp,
 lavf must still read PAT/SDT to get available streams



More information about the ffmpeg-devel mailing list