Why does my playlist only list the last 5 segments?
Because FFmpeg's HLS muxer keeps 5 entries in the playlist unless you tell it otherwise, a default meant for live streams. With no options at all on our 60 s clip:
ffmpeg -i in.mp4 -c copy -f hls out.m3u814 segment files written, out0.ts to out13.ts, but the playlist starts at #EXT-X-MEDIA-SEQUENCE:9 and plays 24.2 s of the 60.
Add -hls_playlist_type vod. It lists every segment and marks the playlist complete. -hls_list_size 0 lists every segment too, and gave segments with the same MD5, but leaves out the #EXT-X-PLAYLIST-TYPE:VOD line.



