[FFmpeg-user] What to do with ts files

Michael Davis admin at network13.net
Fri Dec 6 00:08:51 CET 2013


Todd,
	On a live stream, there are a couple of hls options that will do this clean up for you.  I use the following options when doing live hls:
 -hls_time 10 -hls_wrap 20 -hls_list_size 10
hls_time is the chunk size in seconds.
hls_wrap is the total number of ts chunks allowed on disk.  The chunks will be written over in a loop.
hls_list_size is the number of ts chunks listed in the payload file, which is sometimes referred to as the hls “window”.  As this recycles, the #EXT-X-MEDIA-SEQUENCE tag increments to reflect the window “sliding” in time.

Mike

On Dec 5, 2013, at 2:03 PM, Todd Poole <tpoole at mail.com> wrote:

> Hello all,
> Have a question about ts files that are generated when I convert a live stream to hls. As the stream plays and is converted by ffmpeg into ts files then brought together in to m3u8 the number of ts files grows. If the live stream plays for several hours would it be wise to have a script of some type check for the oldest (say 3) ts files every so often and delete them or will this screw up the m3u8 file?
> 
> Thanks for any advice
> -- 
> Todd Poole
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user



More information about the ffmpeg-user mailing list