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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

762 次查看
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 项奖励
回复
0 回复数