-
Notifications
You must be signed in to change notification settings - Fork 38
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
way to get AVPixFmtDescriptor from a format number #84
Comments
this is how other libs use the pixel format and etc to get the plane height: https://docs.rs/ffmpeg-next/5.0.3/src/ffmpeg_next/util/frame/video.rs.html#233 |
By the way, why there's no YUV420P in https://github.com/larksuite/rsmpeg/blob/master/src/avutil/pixfmt.rs? These are the ones there:
but the simples one, for the value 0, isn't there |
Merged
thank you very much, it works, and this lib is amazing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For proper video rendering, we need to know the stride, but that involves having info about the pixel format, which is stored into
https://docs.rs/rsmpeg/0.8.0/rsmpeg/ffi/struct.AVPixFmtDescriptor.html
is there a way to get this information in rsmpeg given a frame.format number?
The text was updated successfully, but these errors were encountered: