kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
1.99k stars 439 forks source link

Weird Time skip when using vod module dash in combination with shaka player #1467

Closed thankarezos closed 1 year ago

thankarezos commented 1 year ago

When i play dash videos from shaka i get time skips on specific parts (although it doesn't happen on vlc). I realized that how I am encoding the file with ffmpeg because if I do it with kmc.kaltura.com it doesn't have the problem. The thing is that whatever I tried with ffmpeg I cant seem to make it work. Is there a specific parameter I should use?. What's the correct ffmpeg command to not have these weird problems?

erankor commented 1 year ago

The problem is most likely related to key frame positions, in our system we are forcing key frames every 2 seconds, using -force_key_frames expr:'gte(t,n_forced*2)'. When forcing a key frame every 2 sec, you can set the segment duration to 4/6 (or any other number that is a multiple of 2 seconds), and each segment will start with a key frame.

thankarezos commented 1 year ago

I think that did the job thank you.