Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LIV-1191: fix RTMP timestamp restart #176

Merged
merged 7 commits into from
Oct 9, 2023
Merged

Conversation

igorshevach
Copy link
Contributor

@igorshevach igorshevach commented Sep 19, 2023

ffmpeg decoder produce wrong timestamps when there is a jump backwards.
except for being out of sync with ingest , in the case of audio resampler async set to non zero value it will chop off all incoming streram by said amount thus causing missing audio pieces for the duration of the jump.

in time, xx > 0 forward.
- extend metadata with pts. a decoded frame pts is reset with its original value. this is because decoder would not respect pts jump baclwards
- set async=0 for audio resampler filter. this is to prevent it from adding/removing samples due to pts jump.
transcoder/utils/utils.c Outdated Show resolved Hide resolved
transcoder/utils/utils.c Outdated Show resolved Hide resolved
transcoder/utils/utils.c Outdated Show resolved Hide resolved
…e and original (ingest) pts which is rolling through the pipeline along with packet/frame.
@david-winder-kaltura david-winder-kaltura merged commit cd20f1c into master Oct 9, 2023
8 checks passed
@david-winder-kaltura david-winder-kaltura deleted the master-LIV-1191 branch October 9, 2023 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants