<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[gstreamer uyvy camera stream not working on voxl2]]></title><description><![CDATA[<p dir="auto">Hello, I have been trying to use gstreamer to stream video from a usb camera that outputs uyvy but I have been unsuccessful. I am connected to the same network as the voxl2 and I am interacting with it through ssh. Running the following command</p>
<pre><code>gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=UYVY ! videoconvert ! x264enc ! rtph264pay name=pay0 ! udpsink host=192.168.0.149 port=8554

</code></pre>
<p dir="auto">on the voxl2 and</p>
<pre><code>gst-launch-1.0  udpsrc port=8554 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert  ! autovideosink
</code></pre>
<p dir="auto">on my host machine results in the gstreamer on the voxl2 doing nothing and then eventually crashing.</p>
<pre><code>$ gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,format=UYVY ! videoconvert ! x264enc ! rtph264pay name=pay0 ! udpsink host=192.168.0.149 port=8554
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
# it waits here for some time
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not read from resource.
Additional debug info:
gstv4l2bufferpool.c(1040): gst_v4l2_buffer_pool_poll (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
poll error 1: Invalid argument (22)
Execution ended after 0:08:31.639262049
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
</code></pre>
<p dir="auto">However when I run the same commands on my host machine it works. Does anyone know of a way to get this working?</p>
]]></description><link>https://forum.modalai.com/topic/4001/gstreamer-uyvy-camera-stream-not-working-on-voxl2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 09 Sep 2026 12:51:05 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/4001.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 Dec 2024 00:45:17 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to gstreamer uyvy camera stream not working on voxl2 on Fri, 06 Dec 2024 18:56:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cegeyer" aria-label="Profile: cegeyer">@<bdi>cegeyer</bdi></a></p>
<p dir="auto">Here is a command to stream video from VOXL2 camera via ssh X forwading. FPS may be limited due to bandwidth (perhaps this is the command you meant in your reference above).</p>
<pre><code>ssh -X root@&lt;voxl-ip&gt;
gst-launch-1.0 qtiqmmfsrc camera=0 ! "video/x-raw, width=1280,height=720,framerate=30/1" ! autovideoconvert ! autovideosink
</code></pre>
<p dir="auto">This should pop up a window with the stream from the camera. Make sure <code>voxl-camera-server</code> is not running if you are testing one of the mipi cameras connected to voxl2.</p>
<p dir="auto">Alex</p>
]]></description><link>https://forum.modalai.com/post/20015</link><guid isPermaLink="true">https://forum.modalai.com/post/20015</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Fri, 06 Dec 2024 18:56:55 GMT</pubDate></item><item><title><![CDATA[Reply to gstreamer uyvy camera stream not working on voxl2 on Fri, 06 Dec 2024 18:19:38 GMT]]></title><description><![CDATA[<p dir="auto">How are you logged into the VOXL to get the window? I was able to get it by running <code>ssh -X root@&lt;VOXL IP&gt;</code> from a Linxu host were I was logged in with a display.  I don't have any peripheral to get a display directly from the VOXL.</p>
<p dir="auto">You can test my method by connecting to the VOXL via <code>ssh -X</code> then running this <code>gst-launch-1.0 videotestsrc ! autovideosink</code>. You should see a window pop up with a test pattern.</p>
<p dir="auto">Hopefully that fixes the issue, if not, you can try to switch <code>omxh264dec</code> with <code>avdec_h264</code> but it will then use CPU instead of GPU</p>
]]></description><link>https://forum.modalai.com/post/20012</link><guid isPermaLink="true">https://forum.modalai.com/post/20012</guid><dc:creator><![CDATA[cegeyer]]></dc:creator><pubDate>Fri, 06 Dec 2024 18:19:38 GMT</pubDate></item><item><title><![CDATA[Reply to gstreamer uyvy camera stream not working on voxl2 on Thu, 05 Dec 2024 20:15:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/cegeyer" aria-label="Profile: cegeyer">@<bdi>cegeyer</bdi></a> when streaming from the host to the voxl using the command you suggested I get</p>
<pre><code>voxl2:~$ gst-launch-1.0 udpsrc port=8554 num-buffers=1 ! fakesink dump=true
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
00000000 (0x7fa0004e80): 80 60 6f 28 47 41 41 80 bc 30 17 35 09 30        .`o(GAA..0.5.0  
Got EOS from element "pipeline0".
Execution ended after 0:00:00.034007066
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
</code></pre>
<p dir="auto">I assume this means I am able to get data into the voxl. When running the second command I get this</p>
<pre><code>voxl2:~$ gst-launch-1.0  udpsrc port=8554 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! autovideosink sync=false
Setting pipeline to PAUSED ...
gbm_create_device(156): Info: backend name is: msm_drm
Pipeline is live and does not need PREROLL ...
WARNING: from element /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0: Could not initialise Xv output
Additional debug info:
xvimagesink.c(1773): gst_xv_image_sink_open (): /GstXvImageSink:autovideosink0-actual-sink-xvimage:
Could not open display (null)
Setting pipeline to PLAYING ...
New clock: GstSystemClock
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
gbm_create_device(156): Info: backend name is: msm_drm
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0: GStreamer encountered a general supporting library error.
Additional debug info:
../../gst-omx-1.14.4/omx/gstomxvideodec.c(1819): gst_omx_video_dec_loop (): /GstPipeline:pipeline0/GstOMXH264Dec-omxh264dec:omxh264dec-omxh264dec0:
OpenMAX component in error state Hardware (0x80001009)
Execution ended after 0:00:07.897981343
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

</code></pre>
]]></description><link>https://forum.modalai.com/post/20002</link><guid isPermaLink="true">https://forum.modalai.com/post/20002</guid><dc:creator><![CDATA[Samuel Lehman]]></dc:creator><pubDate>Thu, 05 Dec 2024 20:15:19 GMT</pubDate></item><item><title><![CDATA[Reply to gstreamer uyvy camera stream not working on voxl2 on Thu, 05 Dec 2024 18:32:59 GMT]]></title><description><![CDATA[<p dir="auto">Try to run this command on the VOXL-2 and see if it outputs anything when streaming from the host to make sure you actually are getting data into the VOXL:</p>
<pre><code>gst-launch-1.0 udpsrc port=8554 num-buffers=1 ! fakesink dump=true
</code></pre>
<p dir="auto">I also have issues with <code>decodebin</code> receiving an h264 stream as it uses <code>qtivdec</code> to decode the h264 and outputs <code>video/x-raw(memory:GBM)</code> which I have issues working with. You can try this pipeline to use a different decoder:</p>
<pre><code>gst-launch-1.0  udpsrc port=8554 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! autovideosink sync=false
</code></pre>
]]></description><link>https://forum.modalai.com/post/20000</link><guid isPermaLink="true">https://forum.modalai.com/post/20000</guid><dc:creator><![CDATA[cegeyer]]></dc:creator><pubDate>Thu, 05 Dec 2024 18:32:59 GMT</pubDate></item></channel></rss>