[FFmpeg-devel] [fixme] avformat/hlsenc.c miss pat&pmt info

mypopy at gmail.com mypopy at gmail.com
Mon Apr 1 09:40:26 EEST 2019


On Mon, Apr 1, 2019 at 12:02 PM lmzeng(曾令明) <lmzeng at tencent.com> wrote:
>
> When I try use ffmpeg 4.1 concat some mp3 files like this:
>
> >>ffconcat version 1.0
> >>
> >>file
http://1251953721.vod2.myqcloud.com/0ec02e46vodcq1251953721/8e15b6325285890787361152529/f0.mp3
> >>file
http://1251953721.vod2.myqcloud.com/0ec02e46vodcq1251953721/ee02b7825285890787362994665/f0.mp3
> >>file
http://1251953721.vod2.myqcloud.com/0ec02e46vodcq1251953721/726920765285890787364016855/f0.mp3
>
> >>ffmpeg -safe 0 -protocol_whitelist "file,tcp,http,hls" -i mp3.txt -vn
-map 0:a? -acodec copy -hls_list_size 0 -hls_ts_options mpegts_copyts=1
 -hls_time 10 -hls_flags single_file -f hls 200006374_2256155.f3.m3u8
>
> VlC player can’t seek, here miss add PAT&PMT at per segment(except the
first segment)?
>
> hlsenc.c:2281
> >>>if (use_temp_file) {
> >>>    if (!(hls->flags & HLS_SINGLE_FILE) || (hls->max_seg_size <= 0))
> >>>        if ((vs->avf->oformat->priv_class && vs->avf->priv_data) &&
hls->segment_type != SEGMENT_TYPE_FMP4)
> >>>            av_opt_set(vs->avf->priv_data, "mpegts_flags",
"resend_headers", 0);
> >>>}

I think you need to create a bug in trac if it's a issue, more information
you can refer to https://trac.ffmpeg.org/ticket/7820, tks


More information about the ffmpeg-devel mailing list