<?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[read&#x2F;write raw video data in FIFO]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">Do you have an example code to read/write raw video stream in generated FIFO using  voxl-rtsp -m option?</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://forum.modalai.com/topic/269/read-write-raw-video-data-in-fifo</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Mar 2026 13:59:21 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/topic/269.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 05 Jun 2021 14:12:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to read&#x2F;write raw video data in FIFO on Sat, 05 Jun 2021 22:21:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/7">@Alex-Kushleyev</a> great!</p>
<p dir="auto">That’s a point what I need. I’ll try it</p>
<p dir="auto">Thanks,</p>
]]></description><link>https://forum.modalai.com/post/1284</link><guid isPermaLink="true">https://forum.modalai.com/post/1284</guid><dc:creator><![CDATA[shlee853]]></dc:creator><pubDate>Sat, 05 Jun 2021 22:21:32 GMT</pubDate></item><item><title><![CDATA[Reply to read&#x2F;write raw video data in FIFO on Sat, 05 Jun 2021 17:14:53 GMT]]></title><description><![CDATA[<p dir="auto">Hi, you can use the following commands.</p>
<ol>
<li>In first terminal, run voxl-rtsp which will connect to camera and create the fifo and wait for the client to open the fifo</li>
</ol>
<blockquote>
<p dir="auto">voxl-rtsp -m /dev/my_fifo -f h264<br />
voxl-rtsp version 1.0.4<br />
Enabling output fifo /dev/my_fifo<br />
Setting output format to: h264<br />
Connected<br />
Started camera 0<br />
Created session<br />
Video track created<br />
Updated camera parameters<br />
AE Mode: 1, Exposure: 0us, Gain: 0us, AWB Mode: 1<br />
rtsp://&lt;your_voxl_ip_address&gt;:8900/live<br />
Camera Output FIFO starting: /dev/my_fifo .. will block until client is ready<br />
** process will proceed when you start reading the fifo **</p>
</blockquote>
<ol start="2">
<li>then in second terminal (This opens the fifo and sends the raw data from the fifo into a file):</li>
</ol>
<blockquote>
<p dir="auto">cat /dev/my_fifo &gt; raw_video.h264</p>
</blockquote>
<ol start="3">
<li>press control-c in 1st terminal to stop the process, the <code>cat</code> process will also exit since the fifo will be closed.</li>
</ol>
<p dir="auto">Note that using <code>voxl-rtsp</code> you can use <code>-f</code> to specify which format to use for data output, include h264 (Defualt), h265, or even yuv or raw formats.</p>
<p dir="auto">You can also just dump the video to a file without fifo, using <code>voxl-rtsp -o &lt;filename&gt;</code>. From <code>voxl-rtsp -h</code> :</p>
<blockquote>
<p dir="auto">-o &lt;filename&gt;     Save video to filename (No save to file by default). If extension of the file is .mp4, then video will be written in MP4 container, otherwise raw</p>
</blockquote>
<p dir="auto">So if you wanted to just use voxl-rtsp without a fifo to save raw yuv (no mp4 container) to file, then just use <code>voxl-rtsp -f h264 (or h265) -o my_video.h264 (or .h265)</code></p>
<p dir="auto">Did that answer your question?</p>
]]></description><link>https://forum.modalai.com/post/1282</link><guid isPermaLink="true">https://forum.modalai.com/post/1282</guid><dc:creator><![CDATA[Alex Kushleyev]]></dc:creator><pubDate>Sat, 05 Jun 2021 17:14:53 GMT</pubDate></item></channel></rss>