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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

764件の閲覧回数
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?

 

ラベル(1)
0 件の賞賛
返信
0 返答(返信)