[FFmpeg-devel] [PATCH] options to set stream id (custom TS pid)

Mike Scheutzow mjs973
Sat May 29 21:53:45 CEST 2010


Baptiste Coudurier wrote:
> All these suggestions are great, a patch implementing what you suggest 
> would be great.
>
Here are two patches that, together, allow a user to set mpegts PID 
values from the command line. The syntax looks like:

    ffmpeg -i infile -streamid 0:33 -streamid 1:36 out.ts

The first patch, ffmpeg_set_streamid_v1.patch, adds general support to 
ffmpeg.c to set the AVStream.id field from the command line. Backward 
compatibility for .id values is preserved. The patch also includes a 
documentation update for the ffmpeg-doc.texi file.

The second patch, mpegts_custom_pids_v2.patch, adds support for the 
mpegts mux to use AVStream.id as the stream's PID value. One line 
differs slightly from Baptiste's original in order to provide better 
backward compatibility (discussed earlier in this thread.)

Please let me know what you think.

thanks,
-- 
Mike Scheutzow

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mpegts_custom_pids_v2.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100529/cc09c702/attachment.asc>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ffmpeg_set_streamid_v1.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100529/cc09c702/attachment.txt>



More information about the ffmpeg-devel mailing list