Closed richardARPANET closed 1 year ago
I've tried params --segment_duration 2 --fragment_duration 2
. They do not work. Also tried each param on its own, same result.
Have you checked the GOP of your source video? It might well be set at 6 seconds.
@zaygit I'm ignorant to what that is and if it can be overridden?
GOP is the length between two I frames (IDR for HLS). In HLS each segment must start with an IDR frame. So if your source video has an IDR every 6 seconds then the packager cannot create chunks of 2 seconds.
Turns out earlier in the video processing I had set -g 240
(for the ffmpeg transcode step), removing this fixes the issue. Thanks
Is it possible to make the .ts files have a shorter duration? (Something like the 'hls_time' option that ffmpeg has)
Here is how I'm using it: https://github.com/VeemsHQ/veems/blob/develop/veems/packaging/package_video_for_vod.sh#L34