#8348 closed defect (fixed)
HLS Muxer - Master playlist with delete_segments failing
Reported by: | barhom | Owned by: | |
---|---|---|---|
Priority: | important | Component: | avformat |
Version: | git-master | Keywords: | hls regression |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
We just upgraded our ffmpeg installations with the latest commit (648b422) from git and directly saw some failures with the HLS MUXERs 'delete_segments' flag.
Reproduce it like this:
ffmpeg -i input.ts -sn -map 0:v:0 -map 0:a:0 -c copy -b:v 3500k -hls_time 3 -hls_list_size 3 -hls_flags append_list+omit_endlist+delete_segments+discont_start+program_date_time -master_pl_name master.m3u8 -f hls /tmp/hls/8387/vs_%v/playlist.m3u8
The error that will be generated is,
[hls muxer @ 0x5633fbf32d00] failed to delete old segment /tmp/hls/8387/vs_0playlist0.ts: No such file or directory
Note how there is a missing "/" after "vs_0".
My known good commit is 8a1fc95 (unfortunately it is from 2018).
Attachments (1)
Change History (7)
by , 4 years ago
comment:1 by , 4 years ago
comment:2 by , 4 years ago
Ran a git bisect, found this.
28bb73cee77e209a6445d081e7ea577ede29c50f is the first bad commit
commit 28bb73cee77e209a6445d081e7ea577ede29c50f
Author: Limin Wang <lance.lmwang@gmail.com>
Date: Tue Sep 24 19:24:00 2019 +0800
avformat/hlsenc: replace with av_dirname to get the directory
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
:040000 040000 6fc7a17469c0eb130f68bc366b605fd7c43f6759 32b1b22ff9fb2bc4d8ef189891e8a0e40a082ab9 M libavformat
comment:3 by , 4 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | hlsenc added |
comment:4 by , 4 years ago
Keywords: | hls regression added; hlsenc removed |
---|---|
Priority: | critical → important |
Version: | unspecified → git-master |
comment:6 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
This was fixed in commit 7c872df3e175d1c9de4aeb294abcd7c6ab4bb0f3
Thank you
Had to cut the input.ts file to fit 2.5M,
Use this command when running,