[FFmpeg-devel] Multiprogram mode for mpeg TS
Hendrik Leppkes
h.leppkes at gmail.com
Mon Jun 26 11:52:40 EEST 2017
On Fri, Jun 23, 2017 at 4:42 PM, <ffmpeg at a.legko.ru> wrote:
>
> Hi!
> (corrected version of the patch.)
>
> 1. adding missed but required options for libavformat/mpegts encoder in
> ffmpeg_opt.c. also, it makes it possible to add pcr_pid for separate
> program inside TS.
> options are:
> service_provider: any provider name (only default FFMPEG is present in
> original code)
> service_name: alias for title, used in mpegtsenc.c. it is present
> there, but never defined.
> pcr_pid: if required, it is possible to set the PCR pid for separate
> program inside TS
>
> 2. ffmpeg.c, when encoding multiple streams, stops encoding threads even
> when loop counter is set for separate input stream. adding corresponding
> function to correct the situation.
>
> 3. libavformat/mpegtsenc.c: adding multiprogram TS mode; thus, streams
> can be organized into progs as it is done in DVB streams. for that, PCR
> selection (auto) algo was changed (according to TS standart, each prog
> must have PCR pid inside). old PCR selection (auto) mode remains for
> 1-prog case.
>
> 4. possible to set default title|service_name/service_provider/pcr_pid
> via -metadata option (as in example below for the last prog). metadata
> options are used in 1-prog stream.
>
>
>
Individual changes should be submitted as seperate patches. Having
several unrelated changes in one patch makes it impossible to apply or
even properly review it.
- Hendrik
More information about the ffmpeg-devel
mailing list