[FFmpeg-devel] [PATCH] libavformat/hlsenc: fix delete_segments when use_localtime_mkdir

Bodecs Bela bodecsb at vivanet.hu
Thu Dec 29 01:45:18 EET 2016


Dear All,

when delete_segments hls_flag is specified, deleting old segments may 
fail in certain cases when use_localtime_mkdir is in effect and 
hls_segment_filename expression contains subdirs. This patch fixes this 
behaviour.

Command to reproduce the bug:

ffmpeg -loglevel info -y -re -f lavfi -i color=c=red:size=640x480:r=25 
-f lavfi -i anullsrc=r=44100:cl=stereo -c:v mpeg2video -g 25 -acodec aac 
-cutoff 20000 -ac 2 -ar 44100 -ab 192k -f hls -hls_time 3 -hls_list_size 
5 -hls_flags delete_segments -use_localtime_mkdir 1 -use_localtime 1  
-hls_segment_filename "bb/bb%Y%m%d%H%I%S.ts" stream.m3u8


thank you in advance,

Bela Bodecs


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-hlsenc-fix-delete_segments-when-use_loca.patch
Type: text/x-patch
Size: 2125 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20161229/d1657a6b/attachment.bin>


More information about the ffmpeg-devel mailing list