HTTP adaptive stream playlist is changing target duration on the fly

Greetings everyone. I hope you are doing well!

I'm encountered very strange behaviour: I have following for my video track configuration:
    [
      encoding: :H264,
      track_name: name,
      segment_duration: Membrane.Time.milliseconds(3000),
      max_framerate: 24
    ]

The similar segment_duration is configured for my AAC track.

The behaviour is following:
The video playlist is initialized with correct #EXT-X-TARGETDURATION of 3
Then parts starting to load, and they loading more then for 3 seconds.

After the segment is completed, the #EXT-X-TARGETDURATION becomes 9 😵‍💫

The audio playlist is working just fine.
Please help me to debug the issue and I'll create a PR with fix if it needed.
Was this page helpful?