Hi, I am trying to stream webcam camera feed to opencv VideoCapture.
I ran the following: sudo v4l2-ctl -d /dev/video9 --list-formats
and the output is this
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: ‘YU12’
Name : Planar YUV 4:2:0
I had followed the commands from this:
but I am getting the following error while starting the gstreamer:
ERROR: Pipeline doesn’t want to pause.
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1773): gst_xv_image_sink_open (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0:
using this command: gst-launch-1.0 v4l2src device=/dev/video9 ! video/x-raw,format=NV12,width=640,height=512,framerate=30/1 ! videoconvert ! xvimagesink sync=0
Also note that NV12 format may not be correct, I’d suggest to try I420 instead for YU12.
Also note that the framerate property is not correct in the pipeline, if not just a typo when posting here you would correct it.