How to dump frames in YUV format? #123
Unanswered
ThatNerdUKnow
asked this question in
Q&A
Replies: 2 comments
-
Also, I think the struct of interest here is |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think i mightve figured it out, as it turns out the dump-frames example uses a scaler to transform the video format to RGB24, so Instead of doing that I would either keep the pixel format in the event it was already yuv or use a scaler to convert it to yuv Then I have to figure out how to get the actual data out of the dang thing :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm wanting to use ffmpeg-next to feed another library that takes frame data in the following format:
I'm using this type over FFI, but this is the C definition
And here's the bindgen type
I'm thinking that I should be able to just copy the memory of a YUV frame directly to the address of *data[0]
Now in the examples for this repo I see dump-frames. I ran this example but it seems to output in some other format than YUV. I believe it was PPM. Is there a way to convert whatever pixel format a single AVFrame decodes to into YUV?
Beta Was this translation helpful? Give feedback.
All reactions