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.

OMX H264 Encoder cropping

Hello,

 I am using Blaze platform.  I want to take a frame from omx_camera gstreamer comopnent (that only supports NV12 YUV-strided format) and  "tee" it to two omx_h264enc where each omx_h264 uses ducati encoder to crop the image before encoding it. 

Can I use ducati h264 encoder to crop befor encoding?

If, so  can somone give me an example on how to use it ?

If not, can someone suggest how I go about implementing it in h264 encoder in ducati?

 How is YUV-strided NV12 format layed out in terms of byte array, maybe, in worst case I can add video cropping to gstreamer's omx_h264enc comopnent?

 What is the best way to do this?

Best Regards

Thank you

janak

                                   

  • Janak,

    Answer to your questions:

    No you can not use ducati h264 encoder to crop before encoding. The only thing you might be able to change is the width and height with assuming your (top,left) is always (0,0). But this has to be checked before making any conclusion.

    To support this feature it may be an effort in the view that omx_h264enc needs a strided NV12 buffer as an input.

    You may consider changing the videocrop component for adding support for NV12-strided support. You can use the components omx_camera and stridetransform as reference. In the virtual space the stride is 4096 for the NV12-strided buffers.

    Regards,

    Chintan