[FFmpeg-trac] #10271(ffmpeg:new): HLS module master playlist does not generate properly
FFmpeg
trac at avcodec.org
Sat Mar 18 21:52:49 EET 2023
#10271: HLS module master playlist does not generate properly
---------------------------------+---------------------------------------
Reporter: oachler | Type: defect
Status: new | Priority: normal
Component: ffmpeg | Version: unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+---------------------------------------
Summary of the bug:
When generating an m3u8 master playlist from certain files, the video
channel is not generated even though the video m3u8 is generated and works
correctly.
Files that can have their codecs copied will not generate the proper
master playlist. Files that have recompression (not copy) work correctly
How to reproduce:
{{{
% ffmpeg -i "H264File.mkv" \
-bsf:v h264_mp4toannexb -vcodec copy \
-acodec copy \
-map 0:v:0 \
-map 0:a:0 \
-map 0:s:0 \
-f hls \
-var_stream_map "v:0,a:0,s:0,sgroup:subtitle" \
-master_pl_name TP41aAaA0.m3u8 \
-hls_list_size 0 \
-hls_base_url /cache/ \
-hls_time 10 \
TP41aAaA0.m3u8.video.m3u8
ffmpeg version 5.5.1 (and others)
}}}
Output (incorrect):
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-
ID="subtitle",NAME="subtitle_0",DEFAULT=YES,URI="TP41aAaA0.m3u8.video_vtt.m3u8"
Working command line:
{{{
% ffmpeg -i "H264File.mkv" \
-bsf:v h264_mp4toannexb \
-vcodec libx264 \
-acodec aac \
-af "pan=stereo|FL< 1.0*FL + 0.707*FC + 0.707*BL|FR< 1.0*FR + 0.707*FC +
0.707*BR" \
-map 0:v:0 \
-map 0:a:0 \
-map 0:s:0 \
-var_stream_map "v:0,a:0,s:0,sgroup:subtitle" \
-master_pl_name TP41aAaA0.m3u8 \
-hls_list_size 0 -hls_base_url /cache/ -hls_time 10 \
-f hls \
TP41aAaA0.m3u8.video.m3u8
}}}
Output (correct):
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-
ID="subtitle",NAME="subtitle_0",DEFAULT=YES,URI="TP41aAaA0.m3u8.video_vtt.m3u8"
#EXT-X-STREAM-
INF:BANDWIDTH=140800,RESOLUTION=720x404,CODECS="avc1.64001e,mp4a.40.2",SUBTITLES="subtitle"
TP41aAaA0.m3u8.video.m3u8
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10271>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list