Thicket data repository for the EEG
at main 2.1 kB view raw
1{ 2 "id": "https://www.tunbury.org/2020/06/04/raspberry-pi-as-rtsp-source-for-obs", 3 "title": "Raspberry PI as RTSP source for OBS", 4 "link": "https://www.tunbury.org/2020/06/04/raspberry-pi-as-rtsp-source-for-obs/", 5 "updated": "2020-06-04T12:41:29", 6 "published": "2020-06-04T12:41:29", 7 "summary": "Using the new Raspberry Pi Imager I’ve installed the latest Raspberry Pi OS Lite (32 bit).", 8 "content": "<p>Using the new <a href=\"https://www.raspberrypi.org/downloads/\">Raspberry Pi Imager</a> I’ve installed the latest Raspberry Pi OS Lite (32 bit).</p>\n\n<p>Boot the Pi and enable the camera module and SSH both under Interfaces in <code>raspi-config</code>. You need to reboot before the camera is activated.</p>\n\n<p>Sign in as root and run <code>sudo -Es</code> to get an elevated prompt.</p>\n\n<p>Install <code>cmake</code> and <code>git</code>.</p>\n\n<div><div><pre><code>apt update &amp;&amp; apt install git cmake\n</code></pre></div></div>\n\n<p>Download the code from GitHub</p>\n\n<div><div><pre><code>git clone https://github.com/mpromonet/v4l2rtspserver.git\n</code></pre></div></div>\n\n<p>Build the application and install it</p>\n\n<div><div><pre><code>cd v4l2rtspserver &amp;&amp; cmake . &amp;&amp; make &amp;&amp; make install\n</code></pre></div></div>\n\n<p>Edit <code>/etc/rc.local</code> and add this line before the final line <code>exit 0</code> and reboot.</p>\n\n<div><div><pre><code>v4l2rtspserver -P 554 -W 1920 -H 1080 /dev/video0 &amp;\n</code></pre></div></div>\n\n<p>For testing install VLC Media Player and open a network stream to the following path:</p>\n\n<div><div><pre><code>rtsp://&lt;pi_ip_address&gt;/unicast\n</code></pre></div></div>\n\n<p>In Open Broadcast Studio (OBS) create a new Media Source and untick the check box for Local File and enter the RTSP URL in the input box.</p>", 9 "content_type": "html", 10 "author": { 11 "name": "Mark Elvers", 12 "email": "mark.elvers@tunbury.org", 13 "uri": null 14 }, 15 "categories": [ 16 "raspberrypi" 17 ], 18 "source": "https://www.tunbury.org/atom.xml" 19}