Opened 3 years ago
Last modified 3 years ago
#10271 new defect
HLS module master playlist does not generate properly
| Reported by: | oachler | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | ffmpeg |
| Version: | 5.1.2 | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
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


