[FFmpeg-devel] FW: Allow multiple programs in MPEGTS output stream

Uve W. Rick Uve.Rick
Wed Sep 15 23:19:56 CEST 2010


> -----Original Message-----
> From: ffmpeg-devel-bounces at mplayerhq.hu [mailto:ffmpeg-devel-
> bounces at mplayerhq.hu] On Behalf Of Carl Eugen Hoyos
> Sent: Wednesday, September 15, 2010 8:08 AM
> To: ffmpeg-devel at mplayerhq.hu
> Subject: Re: [FFmpeg-devel] FW: Allow multiple programs in MPEGTS
> output stream
> 
> Uve W. Rick <Uve.Rick <at> uav.com> writes:
> 
> > So here is my first attempt at a patch.
> 
> No.
> 
> You cannot expose ff_program_add_stream_index under this name because
> ff_ is
> reserved for internal functions (change the function name to
> av_program_add_stream_index).
> 
> Carl Eugen
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel


Changed ff_program_add_stream to av_program_add_stream.

I've also include the entire patch.

What this patch does is allow multiple programs to be contained in one mpeg ts stream, each with it's own video and audio.  The mpeg ts decoder already handles multiple programs.

The application calls av_new_program for each set of video and audio.  Then for each stream av_program_add_stream_index is called.  This is the same thing that mpeg ts decoder does.

If the application does not add any programs to the format context, the software will work just as it does now.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: mpegts_output_prog.patch
Type: application/octet-stream
Size: 7135 bytes
Desc: mpegts_output_prog.patch
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100915/d6d23a61/attachment.obj>



More information about the ffmpeg-devel mailing list