nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
198 stars 14 forks source link

HLS: Target duration for each segment not correct #94

Open nschlia opened 2 years ago

nschlia commented 2 years ago

The target duration for each segment is no correct (#EXTINF:). The duration is always exactly what is set with --segment_duration, for example with --segment_duration=6 all segments (besides the last) are tagged with "#EXTINF:6.000,"

This value should be the correct duration.

The problem is that the file is created beforehand, and the exact resulting duration is not known at that time.

Probably it should be made sure that the files are exactly 6 seconds or whatever.