[FFmpeg-devel] FW: Allow multiple programs in MPEGTS output stream
Uve W. 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.
> You cannot expose ff_program_add_stream_index under this name because
> ff_ is
> reserved for internal functions (change the function name to
> Carl Eugen
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
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...
Size: 7135 bytes
More information about the ffmpeg-devel