[FFmpeg-devel] [PATCH] Implement an option in ffmpeg to make it print the output SDP and exit

Stefano Sabatini stefano.sabatini-lala
Tue Jul 15 22:06:27 CEST 2008


Hi all,

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

Regards.
-- 
FFmpeg = Furious & Friendly Martial Proud Elitarian God
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg-print-sdp-and-exit-00.patch
Type: text/x-diff
Size: 2052 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080715/9b7c9c0b/attachment.patch>



More information about the ffmpeg-devel mailing list