Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

input.ts (2.4 MB ) - added by barhom 4 years ago.

Change History (7)

by barhom, 4 years ago

Attachment: input.ts added

comment:1 by barhom, 4 years ago

Had to cut the input.ts file to fit 2.5M,

Use this command when running,

ffmpeg -i input.ts -sn -map 0:v:0 -map 0:a:0 -c copy -b:v 3500k -hls_time 1 -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

comment:2 by barhom, 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 barhom, 4 years ago

Component: undeterminedavformat
Keywords: hlsenc added

comment:4 by Carl Eugen Hoyos, 4 years ago

Keywords: hls regression added; hlsenc removed
Priority: criticalimportant
Version: unspecifiedgit-master

comment:5 by Steven Liu, 4 years ago

comment:6 by barhom, 4 years ago

Resolution: fixed
Status: newclosed

This was fixed in commit 7c872df3e175d1c9de4aeb294abcd7c6ab4bb0f3

Thank you

Last edited 4 years ago by barhom (previous) (diff)
Note: See TracTickets for help on using tickets.