-
Notifications
You must be signed in to change notification settings - Fork 80
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
Opusenc: Pre-skip doesn't include extra_samples #55
Comments
As far as I can tell, you're correct here, and this hasn't been implemented. The underlying Perhaps it's not been a significant problem in practice because most tracks start with silence? Or at least a zero-crossing? Another issue is that Maybe it would need an option to pass a |
Corrections from Jean-Marc on IRC:
So you'd have to extrapolate out to some common-divisor of the two sample rates, attenuate toward silence, then resample and trim.
|
Sorry for my very delayed reply and thank you for such a detailed response. I'm a very long way from being able to say that I "understand Opus", but would it not suffice to just create 120 samples of silence and consider those as the |
On page 27 of "Ogg Encapsulation for the Opus Audio Codec" [1], the recommendations for encoders is to have a pre-skip value of (delay_samples + extra_samples). Extra_samples is defined there as at least 120 samples.
However, opusenc has a pre-skip of just delay_samples (see line 1008 of opusenc.c).
Why is this? Is this an oversight that should be corrected? Or, is the explanation in the RFC incorrect?
Cheers,
Matthew
[1] https://tools.ietf.org/html/rfc7845#page-27
The text was updated successfully, but these errors were encountered: