[FFmpeg-devel] [PATCH] delete the old segment file from hls list

Steven Liu lingjiujianke at gmail.com
Tue Aug 12 04:36:24 CEST 2014


2014-08-12 7:26 GMT+08:00 Simon Thelen <ffmpeg-dev at c-14.de>:

> On 11/08/14 at 17:39, Steven Liu wrote:
> > Hi Guys,
> Hello,
> >
> > The FFmpeg hls module can make m3u8 and ts, but it dosen't delete the
> > old ts segment file.
> > If always run this module, the disk will full, so this patch can fix
> > the problem.
> > When update the segment list m3u8 file, it will delete the ts segment
> > out range from the list file.
> [..]
> I'm pretty sure this is why the hls muxer has the `-hls_wrap wrap' option.
>
Hi Simon,

     hls_list_size and hls_wrap option two can fix the problem, but this
patch can fix the problem of the default parameter, because the ts file on
disk , one to one correspondence with the m3u8 file will better, isn't it?


Thanks


More information about the ffmpeg-devel mailing list