<div dir="ltr"> Hello,<div class="gmail_quote"><div dir="ltr"><div>I am trying to use gstreamer with vivid .<br>the idea is to use vivid to simulate 4 virtaul cameras.<br>Then, use gstreamer to write images to these virtual cameras.<br>when i try writing to the device using gstreamer,i get the following error "device '/dev/video3' is not a output device".<br> I was using the following link to ensure that the devices are set as output devices: <a href="https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/vivid.html">https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/vivid.html</a></div><div>details below.<br></div><div>I will appriviate any advise.<br></div><div>Thanks !<br></div><div><br>1. sudo modprobe -r vivid<br>2. sudo modprobe vivid num_outputs=4 output_types=0x00<br></div><div>3. v4l2-ctl --list-devices <br></div><div> result: <br></div><div> vivid (platform:vivid-000):<br> /dev/video3<br> /dev/video4<br> /dev/video5<br> /dev/video6<br> /dev/radio0<br> /dev/radio1<br> /dev/vbi0<br> /dev/vbi1<br> /dev/swradio0<br> /dev/v4l-touch0<br> /dev/media1<br></div><div>4. <br></div><div> gst-launch-1.0 -v multifilesrc location=./%05d.png loop=1 caps="image/png,framerate=30/1" ! pngdec ! videoconvert ! "video/x-raw,format=YUY2" ! v4l2sink device=/dev/video3 <br></div><div>return error: <br>ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Device '/dev/video3' is not a output device.<br>Additional debug info:<br>../sys/v4l2/v4l2_calls.c(636): gst_v4l2_open (): /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:<br>Capabilities: 0x5230005<br>ERROR: pipeline doesn't want to preroll.<br>Failed to set pipeline to PAUSED.<br></div><div><br></div><div>5. same for video4,5,6<br></div><div><br><br><br></div></div>
</div></div>