In imx8QM, Is appsrc capable of NV12 input using opencv VideoWriter?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

In imx8QM, Is appsrc capable of NV12 input using opencv VideoWriter?

471 Views
hsaito
Contributor I

operating environment:

  • imx-yocto-L5.4.47_2.2.0
  • imx8QM

I use openCV VideoWriter and it call gstreamer.

This is my implement e.g. and it occured " Error pushing buffer to GStreamer pipeline".

VideoWriter writer;
cmd = "appsrc ! video/x-raw,format=(string)NV12 ! v4l2h264enc ! h264parse ! mp4mux filesink location=test.mp4 sync=false";
writer.open(cmd, 0, 30, cv::Size(camera_width, camera_height));

I think VideoWriter only enable format=(string)BGR. 

Is appsrc capable of NV12 input using opencv VideoWriter?

If so, could you please provide an example implementation?

 

0 Kudos
Reply
0 Replies