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 audio segment miscount #604

Merged
merged 3 commits into from
Aug 27, 2024
Merged

Fix audio segment miscount #604

merged 3 commits into from
Aug 27, 2024

Conversation

zoriya
Copy link
Owner

@zoriya zoriya commented Aug 27, 2024

Audio duration can be different from container's duration. This leads to miss count of segments and the player waits for it before ending the playback.

This read the audio duration from the packets instead.

note: ffprobe can't be used to get audio duration directly since some formats don't have this metadata (mkv for example).

@zoriya zoriya added bug Something isn't working transcoder labels Aug 27, 2024
@zoriya zoriya self-assigned this Aug 27, 2024
@zoriya zoriya added this to the v4.7.0 milestone Aug 27, 2024
@zoriya
Copy link
Owner Author

zoriya commented Aug 27, 2024

This technically works but it's slow af. read_interval only seems to disable printing, as I don't see much time improvements when using it.

@zoriya zoriya force-pushed the fix/audio-duration branch from 37921b8 to 16f0125 Compare August 27, 2024 00:58
@zoriya zoriya marked this pull request as ready for review August 27, 2024 14:04
@zoriya zoriya force-pushed the fix/audio-duration branch from 703b745 to b505019 Compare August 27, 2024 14:04
@zoriya zoriya enabled auto-merge August 27, 2024 14:05
@zoriya zoriya merged commit d110303 into master Aug 27, 2024
11 checks passed
@zoriya zoriya deleted the fix/audio-duration branch August 27, 2024 14:09
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