<div dir="ltr"><div>Hello Michael,<br></div><div>Thak you for your replay. <br></div><div>It seems that my vivid video device is an output device, but it still complains it is not.</div><div>any idea ?<br><br><br><br></div>1. The error i get :video2 is not an output device<br><div>gst-launch-1.0 -v multifilesrc location=./%04d.png loop=1 caps="image/png,framerate=30/1" ! pngdec ! videoconvert ! "video/x-raw,format=YUY2" ! v4l2sink device=/dev/video2 <br><br>Setting pipeline to PAUSED ...<br>ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Device '/dev/video2' 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>Setting pipeline to NULL ...<br>Freeing pipeline ...<br><br><br></div><div>2. seems like it is an output device<br><br>v4l2-ctl -D -d /dev/video2<br>Driver Info:<br>       Driver name      : vivid<br>   Card type        : vivid<br>  Bus info         : platform:vivid-000<br>     Driver version   : 6.2.16<br>    Capabilities     : 0x9dbf0df7<br>               Video Capture<br>         Video Output                             ===============================> see here <br>            Video Overlay<br>         VBI Capture<br>           VBI Output<br>            Sliced VBI Capture<br>            Sliced VBI Output<br>             RDS Capture<br>           RDS Output<br>            SDR Capture<br>           Metadata Capture<br>              Metadata Output<br>               Tuner<br>         Touch Device<br>          HW Frequency Seek<br>             Modulator<br>             Audio<br>         Radio<br>         Read/Write<br>            Streaming<br>             Extended Pix Format<br>           Device Capabilities<br>   Device Caps      : 0x05230005<br>              Video Capture<br>         Video Overlay<br>         Tuner<br>         Audio<br>         Read/Write<br>            Streaming<br>             Extended Pix Format<br>Media Driver Info:<br>       Driver name      : vivid<br>   Model            : vivid<br>        Serial           : <br>      Bus info         : platform:vivid-000<br>     Media version    : 6.2.16<br>   Hardware revision: 0x00000000 (0)<br>     Driver version   : 6.2.16<br>Interface Info:<br>   ID               : 0x03000003<br>  Type             : V4L Video<br>Entity Info:<br>      ID               : 0x00000001 (1)<br>      Name             : vivid-000-vid-cap<br>    Function         : V4L2 I/O<br>       Pad 0x01000002   : 0: Sink<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 31, 2023 at 4:38 PM Michael Tretter <<a href="mailto:m.tretter@pengutronix.de">m.tretter@pengutronix.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 27 Aug 2023 23:04:57 +0300, Regine Issan via gstreamer-devel wrote:<br>
> 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<br>
> "device '/dev/video3' is not a output device".<br>
> I was using the following link  to ensure that the devices are set as<br>
> output devices:<br>
> <a href="https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/vivid.html" rel="noreferrer" target="_blank">https://www.kernel.org/doc/html/v4.14/media/v4l-drivers/vivid.html</a><br>
> details below.<br>
> I will appriviate any advise.<br>
> Thanks !<br>
> <br>
> 1.  sudo modprobe -r vivid<br>
> 2.  sudo modprobe vivid num_outputs=4 output_types=0x00<br>
> 3. v4l2-ctl --list-devices<br>
>     result:<br>
>     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>
> 4.<br>
>  gst-launch-1.0 -v multifilesrc location=./%05d.png loop=1<br>
> caps="image/png,framerate=30/1" ! pngdec ! videoconvert !<br>
> "video/x-raw,format=YUY2" ! v4l2sink device=/dev/video3<br>
> return error:<br>
> ERROR: from element /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0: Device<br>
> '/dev/video3' is not a output device.<br>
> Additional debug info:<br>
> ../sys/v4l2/v4l2_calls.c(636): gst_v4l2_open ():<br>
> /GstPipeline:pipeline0/GstV4l2Sink:v4l2sink0:<br>
> Capabilities: 0x5230005<br>
<br>
Your device lacks the "Video Output" Capability. Bit 1 (0x2) should be set<br>
here. Use `v4l2-ctl -D -d /dev/video3` to show the device information in a<br>
readable format.<br>
<br>
Vivid creates 4 capture devices unless the num_inputs parameter is overridden<br>
or input is disabled via the node_types parameter.<br>
<br>
Check that /sys/module/vivid/parameters/node_types has bit 8 set in the first<br>
node (more precisely, (node_type & 0x40300)). If this is not the case, set<br>
node_types when loading vivid to the types that you are expecting.<br>
<br>
Michael<br>
<br>
> ERROR: pipeline doesn't want to preroll.<br>
> Failed to set pipeline to PAUSED.<br>
> <br>
> 5. same for video4,5,6<br>
</blockquote></div>