[Libav-user] Setting mpegts_pmt_start_pid for hls segment/mpegts muxer or programmatically ?

Kalileo kalileo at universalx.net
Thu Jun 6 15:09:15 CEST 2013


On Jun 6, 2013, at 19:26 , Andrey Utkin wrote:

> 2013/6/6 Kalileo <kalileo at universalx.net>:
>> Is there any  way to set the PMT pid programmatically ?
> 
> AVDictionary *opts = NULL;
> av_dict_set(&opts, "mpegts_pmt_start_pid", "0x2000" /* example value */, 0);
> /* more av_dict_set() calls same way */
> int ret = avformat_write_header(muxer_context, &opts);
> av_dict_free(&opts);
> 

Thanks Andrey, that's exactly what I needed!



More information about the Libav-user mailing list