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

Fix video miss-cut because of start offset #505

Merged
merged 1 commit into from
May 19, 2024
Merged

Fix video miss-cut because of start offset #505

merged 1 commit into from
May 19, 2024

Conversation

zoriya
Copy link
Owner

@zoriya zoriya commented May 19, 2024

Sometimes, videos can start at a timing greater than 0:00. We need to take that into account and only list keyframes that come after the start of the video (without that, our segments count mismatch and we can have the same segment twice on the stream).

We can't hardcode the first keyframe at 0 because the transcoder needs to reference durations of segments. To handle this edge case, when we fetch the segment n0, no seeking is done but duration is computed from the first keyframe (instead of 0)

@zoriya zoriya added bug Something isn't working transcoder labels May 19, 2024
@zoriya zoriya added this to the v4.6.0 milestone May 19, 2024
@zoriya zoriya self-assigned this May 19, 2024
@zoriya zoriya enabled auto-merge (squash) May 19, 2024 23:28
@zoriya zoriya merged commit 9061b2e into master May 19, 2024
11 checks passed
@zoriya zoriya deleted the fix/transcode branch May 19, 2024 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transcoder
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant