This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to use/fill buffers for video encoding?

Other Parts Discussed in Thread: OMAP3530

Hello!

When writing an application for video encoding, some questions came up which couldn't be answered by myself. Maybe you can assist.

For video encoding, you need a graphics buffer (BufferGfx) as input buffer. How do I fill this buffer with data from the raw video file (e.g. UYVY) ?
In the DMAI example "video_encode_io1", some functions like "readFrame420P()" are used. These function use some calculations. Do I need to do it like this, too? I don't know, what these calculations are for, because I'm not yet into colorspaces right now. Or is it possible to simply load the data via fread() or the Loader module into the graphics buffer?

Another question: is the DMAI API intended for writing demo applications only or can this API also be used for production code?

Best regards,

Andreas

  • Andreas,

    This thread was moved (by someone) to the BIOS forum but I can't tell from where.  I think this question is actually inappropriate to be on the BIOS forum and I would like to move it someplace more appropriate so you have more of a chance of getting a good answer.  It appears that you are using the DVSDK?  Which device are you using?

    Dave

  • Hi,

    I don't know, why it was moved here, but I could answer my question by myself in the meantime.
    I had a closer look at the "video_encode_io1" example and then I discovered the readFrameUYVY() function, which does exactly, what I needed.

    Andreas

    PS:

    Yes, I am using DVSDK4 and an OMAP3530 (not the EVM).