On Jun 6, 2013, at 19:26 , Andrey Utkin wrote:
> 2013/6/6 Kalileo :
>> 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 = avfor
2013/6/6 Kalileo :
> 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);
The mpegts muxer has the options (in ffmpeg cli)
-mpegts_pmt_start_pid 0x1500
-mpegts_start_pid 0x150
-metadata service_provider="Some provider"
-metadata service_name="Some Channel"
If you use the mpegts muxer indirectly, through the -segment options to create
HLS, thes