[FFmpeg-trac] #7403(avformat:new): HLS Master Playlist fails being generated correctly
FFmpeg
trac at avcodec.org
Wed Sep 5 14:57:32 EEST 2018
#7403: HLS Master Playlist fails being generated correctly
-------------------------------------+-------------------------------------
Reporter: barhom | Type: defect
Status: new | Priority: normal
Component: avformat | Version:
Keywords: | unspecified
hlsplaylist.c | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
How to reproduce:
{{{
ffmpeg -i input.ts -c copy -f hls -master_pl_name master.m3u8
-var_stream_map "v:0,a:0" "vs_%v/playlist.m3u8"
}}}
input.ts is attached.
This has been tested on ffmpeg compiled on 2018-09-05.
What is wrong:
FFmpeg fails to read the bitrate of the input.ts and thus fails to write
the master.m3u8
The code below is what controls this error.
{{{
if (!bandwidth) {
av_log(NULL, AV_LOG_WARNING,
"Bandwidth info not available, set audio and video
bitrates\n");
return;
}
}}}
My thoughts is that the proper way would not to return if bandwidth is not
available but simply write the playlist without the bandwidth information
since it was not available.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7403>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list