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

ogg: Decode opus packet durations #231

Merged
merged 2 commits into from
Feb 22, 2024
Merged

Conversation

karlri
Copy link
Contributor

@karlri karlri commented Sep 13, 2023

I implemented this because buffering some ogg web streams seemed to hang trying to buffer up 1s of data. Turns out it was opus and the durations of all opus packets were demuxed as 0. I think I implemented this correctly but don't take my word for it. Maybe it could be of use?

@dedobbin
Copy link
Contributor

dedobbin commented Jan 7, 2024

Could you perhaps share some example of a files/stream where this faulty behavior occurs? I found some files that pass the altered code (https://www.dwsamplefiles.com/download-opus-sample-files/) but these all give "unsupported codec" so it's not of much use.

@pdeljanov pdeljanov added this to the v0.5.4 milestone Feb 17, 2024
@pdeljanov pdeljanov merged commit 7938624 into pdeljanov:master Feb 22, 2024
8 checks passed
@pdeljanov
Copy link
Owner

Hi @karlri, thanks for this! Apologies it took so long to get to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants