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

Add the number of frames packed by each (audio) codec #439

Open
robUx4 opened this issue Nov 1, 2020 · 1 comment
Open

Add the number of frames packed by each (audio) codec #439

robUx4 opened this issue Nov 1, 2020 · 1 comment

Comments

@robUx4
Copy link
Contributor

robUx4 commented Nov 1, 2020

As seen in #422 (comment) to have better sample precision (and without adding new elements) it can useful to know how many frames a codec pack per frame.

This is only useful for audio as video or subtitle usually only have one frame (some video codec may hide reference frames but they don't have a timestamp as they are not displayed).

To help muxers it should be useful to tell how many (audio) samples a codec uses per frame.

Some codec may have different values so either all values should be listed or the Greatest Common Denominator that can be used to match all the values.

Some codec may also have a delay of X samples before the first sample is out. This value(s) should also be mentioned, especially if it doesn't fit the GCD mentioned above. In that case either this value needs to be integrated to compute the GCD or the amount of samples (the duration wouldn't work since it isn't matching the GCD of samples) should be mentioned in the codec mapping and in the file (so that means adding a new element, so probably not a good solution).

@robUx4
Copy link
Contributor Author

robUx4 commented Nov 1, 2020

@rcombs comment already has some values for well known codecs: #422 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Codec specifications
Awaiting triage
Development

No branches or pull requests

1 participant