[FFmpeg-devel] [PATCH] Implement an option in ffmpeg to make it print the output SDP and exit
Tue Jul 15 22:06:27 CEST 2008
this patch changes the current behavious of ffmpeg which currently
print if needed the SDP of the output streams.
This patch implements a behaviour which could result useful when
scripting things like this:
ffmpeg -i ~/test.avi -vn -sdp -f rtp rtp://localhost:5004 > test.sdp
ffmpeg -i ~/test.avi -vn -f rtp rtp://localhost:5004 > test.sdp
Since I think this is the assumed use for the SDP output then I think
this behaviour is preferable since it doesn't require the user to
invoke a transcoding just to print out the SDP.
Note that this breaks compatibility with the previous behaviour, now
when ffmpeg is invoked without -sdp it won't print the SDP anymore.
Also the SDP printed won't be prefixed by "SDP:\n" as before.
Comments/suggestions are welcome as always.
FFmpeg = Furious & Friendly Martial Proud Elitarian God
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2052 bytes
Desc: not available
More information about the ffmpeg-devel