<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/966" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2021-03-23T15:27:43+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/966</id>

		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-03-23T15:27:43+00:00</updated>

		<published>2021-03-23T15:27:43+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2551#p2551</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2551#p2551"/>
		<title type="html"><![CDATA[Re: Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2551#p2551"><![CDATA[
Zoldaten, unfortunately Stereomii <a href="https://forum.stereopi.com/viewtopic.php?f=13&amp;t=1007&amp;p=2235#p2235" class="postlink">can't answer our questions anymore</a>...<br>We already added video and photo recording options to the latest SLP 1 (published now), and will publish a new SLP2 soon (hope this week) for the mass-tests.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Tue Mar 23, 2021 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-23T13:58:45+00:00</updated>

		<published>2021-03-23T13:58:45+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2550#p2550</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2550#p2550"/>
		<title type="html"><![CDATA[Re: Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2550#p2550"><![CDATA[
Why is so complicated solution ? It`s hard to follow.<br>Isn`t more easy to stop all raspivid as make_photo.php does and <br>then just start the same raspivid script with sintax something like this:  &gt; file <br><br>And where you add button ? To left-slide menu ?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Tue Mar 23, 2021 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomii]]></name></author>
		<updated>2020-06-12T16:13:10+00:00</updated>

		<published>2020-06-12T16:13:10+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2063#p2063</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2063#p2063"/>
		<title type="html"><![CDATA[Re: Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2063#p2063"><![CDATA[
There are still some minor flaws in this solution. <br><br>If StereoPi boots up with <strong class="text-strong">recording enabled</strong> sometimes loop_record does not read the correct date-time. Recording starts, recording status is correctly dispayed (red button) but the record-[date-time].mp4 has an old timestamp, making it difficult to find if you have a lot of recordings.<br><br>This wrong date-time could well be present in the  original 0.2.3 version. I am not able to quickly check this at this moment.<br><br>Note: to change recording enabled in /boot/stereopi.conf you have to use [SAVE] in settings menu. The toggle button <em class="text-italics">does not</em> save state in  /boot/stereopi.conf<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=93">stereomii</a> — Fri Jun 12, 2020 4:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomii]]></name></author>
		<updated>2020-06-10T21:56:01+00:00</updated>

		<published>2020-06-10T21:56:01+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2050#p2050</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2050#p2050"/>
		<title type="html"><![CDATA[Re: Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2050#p2050"><![CDATA[
<blockquote class="uncited"><div>..., but if this subprocess is broken, the system does not know it, and still shows you "Recording is in a process". ...!</div></blockquote>That is the reason why I added a link to the last recorded video after stopping recording.<br>At least I now have a quick way to check my recording <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_smile.gif" width="15" height="17" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=93">stereomii</a> — Wed Jun 10, 2020 9:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2020-06-10T21:29:58+00:00</updated>

		<published>2020-06-10T21:29:58+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2049#p2049</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2049#p2049"/>
		<title type="html"><![CDATA[Re: Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2049#p2049"><![CDATA[
Whoa, great tutorial, thank you!<br>We did not yet add a record button because of the very simple reason: with the current software configuration, we have no real control of a recording process. I.e. we can initiate a record, but if this subprocess is broken, the system does not know it, and still shows you "Recording is in a process". In the updated SLP we will control this at the low level. But, with your previously suggested improvement (to avoid broken video files), your current solution can be very stable!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Jun 10, 2020 9:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stereomii]]></name></author>
		<updated>2020-06-10T20:09:54+00:00</updated>

		<published>2020-06-10T20:09:54+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2047#p2047</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2047#p2047"/>
		<title type="html"><![CDATA[Add a Record button to SLP]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2047#p2047"><![CDATA[
Add a Record button to SLP<br><br>Recording a video is rather complicated in SLP 0.2.4, 06-12 correction:0.2.3, latest image.<br>Next steps must be performed to start/stop recording:<br><ul><li>open settings menu<br>(sometimes) scroll to "Recording" checkbox<br>click checkbox<br>scroll to "Save" button<br>click button<br>click screen to dismiss settings menu</li></ul>And to check recorded video:<br><ul><li>click "Video Records" button<br>(sometimes) scroll to last recording<br>click recorded file name</li></ul>and to return:<ul><li>click "back"<br>click "back"</li></ul>So I added a "Record" button showing and toggling recording state. Also added displaying a link the last recorded video in the same way as make photo does.<br><br>There are quite a numer of changes to make. Maybe there are better and more structured ways but this implementation works.<br><br>Basically the solution consists of replacing the stereopi logo with a new button, linked to a new javascript function "toggle_recording()" (copied for a great deal from "make_photo()". I removed the stereopi logo so it can not accidentally be hit if we toggle recording state.<br>toggle_recording calls /var/www/html/toggle_recording.php.<br>Added two images to /var/www/html/imgs: record0.png and record1.png as inactive/active state image.<br><img src="http://doserver.jvonline.nl/stereopi/20200610/imgs/record0.png" class="postimage" alt="Image"> and <img src="http://doserver.jvonline.nl/stereopi/20200610/imgs/record1.png" class="postimage" alt="Image"><br><br><br>To get consistent information aboute recording state after a refesh op the main web page a link to /run/record.png is used, loop-record.sh copies active or inactive button image here depending on recording state.<br><br>The solution presented here incorporates "Unreadeable recorded video in SLP" <a href="https://forum.stereopi.com/viewtopic.php?f=10&amp;t=965" class="postlink">https://forum.stereopi.com/viewtopic.php?f=10&amp;t=965</a><br><br>Step-by-step instruction (mount filesystems rw first):<br><br>step1: dowload record0.png and record1.png (from the links above), place them in /var/www/html/imgs<br>step2: copy record0.png to /run (via ssh in live SLP system or else you will not find /run)<br>step3: rename /run/record0.png to /run/record.png<br>step4: via ssh in live SLP cd to /var/www/html/imgs and create a symlink to record0.png: ln -s record.png /run/<br>step5: create new file /var/www/html/toggle_recording.php with following content:<div class="codebox"><p>Code: </p><pre><code>&lt;?php$path = '/media/DCIM/';$filename = file('/run/RECFILE');/// Load config file$config_strings = file('/opt/StereoPi/config.conf');/// Parse config file$config = array();foreach ($config_strings as $k =&gt; $v) {$tmp = explode("=", trim($v));$config[$tmp[0]] = $tmp[1];        /// shell_exec("echo $tmp[0] $tmp[1] &gt;&gt; /media/message");}if ($config['record_enabled'] == "0") {    $config['record_enabled'] = "1";system("sudo cp imgs/record1.png imgs/record.png &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");} else {$config['record_enabled'] = "0";system("sudo cp imgs/record0.png imgs/record.png &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");}$config_string = "";foreach ($config as $k =&gt; $v ) {$config_string = $config_string . $k . "=" .  $v . "\n";}        system("sudo killall -q sleep &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q rtsp-server &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q splitter &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q raspivid &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q gst-launch-1.0 &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q nodejs index.js &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");$file = fopen('/opt/StereoPi/config.conf',"w");fwrite($file , $config_string);fclose($file);$res['status'] = $config['record_enabled'];///$res['filename'] = $filename;$res['filename'] = $filename;echo json_encode($res);?&gt;</code></pre></div>step6: open /var/www/html/index.php<br>step7: add after following lines:<div class="codebox"><p>Code: </p><pre><code>&lt;body&gt;&lt;canvas id="video_canvas"&gt;&lt;/canvas&gt;</code></pre></div>(around line 58) the following:<div class="codebox"><p>Code: </p><pre><code>&lt;!-- JV : add record button --&gt;                &lt;img style="position:absolute;right:20px;top:20px;z-index:500;display:block;" id="record_icon" alt="" src="imgs/record.png" width="50" title="Toggle recording"                     /&gt;</code></pre></div>step8: comment-out logo_icon (around line 69)<div class="codebox"><p>Code: </p><pre><code>&lt;!--JV : remove logo icon, too much chanche to hit it accidentally if we want to toggle recording&lt;div class="fw_hide" id="logo_icon"&gt;&lt;a href="http://stereopi.com" target="_blank"&gt;&lt;img src="imgs/stereopi_logo1.png" width="50" title="StereoPi site"&gt;&lt;/a&gt;&lt;/div&gt;JV --&gt;</code></pre></div>step9: I added two addition fps rates in video_fps around line 213, included here to keep line numbers in this description consistent<div class="codebox"><p>Code: </p><pre><code>&lt;option&gt;24&lt;/option&gt;&lt;option&gt;25&lt;/option&gt;</code></pre></div>step10: after <div class="codebox"><p>Code: </p><pre><code>$('#save_button').on('click', function() {.....             var record_time = $("#record_time").val();</code></pre></div>(around line 525) add:<div class="codebox"><p>Code: </p><pre><code>                       // JV : manage recording button state                                ///window.alert(document.getElementById("record_icon").src);                                if (record_enabled == "0") {                                        document.getElementById("record_icon").src = "imgs/record0.png";                                    } else {                                        document.getElementById("record_icon").src = "imgs/record1.png";                                }</code></pre></div>step11: after function make_photo()<div class="codebox"><p>Code: </p><pre><code>function make_photo() {show_status_message('making a photo...');                            . . . . .} else {show_status_message('failed');}});}</code></pre></div>(around line 607) add:<div class="codebox"><p>Code: </p><pre><code>                        // JV : toggle recording function, most stolen from make_photo;)                        function toggle_recording() {                                //window.alert(document.getElementById("record_icon").src.slice(-5));                                //show_status_message('toggle recording...');                                $.post("toggle_recording.php", {                                } , function(data) {                                        var json;                                        try {                                                json = JSON.parse(data);                                        } catch (e) {                                                show_status_message('failed');                                                return;                                        }                                        ///page_reload();                                        if (json.status == 0) {                                                document.getElementById("record_icon").src = "imgs/record0.png"                                                show_status_message('&lt;a href="/records/' + json.filename + '" target="_blank"&gt;' + json.filename + '&lt;/a&gt;');                                        } else {                                                document.getElementById("record_icon").src = "imgs/record1.png"                                        }                                    })                        }</code></pre></div>step12: save index.php<br>step13: open \opt\StereoPi\scripts\loop-record.sh in your favorite editor<br>step13: after<div class="codebox"><p>Code: </p><pre><code>mkdir -p $RECPATH</code></pre></div>add (line 7)<div class="codebox"><p>Code: </p><pre><code>#JV create /run/record.png at startupif [ -f ./config.conf ] ; then    . ./config.conffi#JV create /run/record.png at startupif [ "$record_enabled" = "1" ] ; then                cp /var/www/html/imgs/record1.png  /run/record.pngelse                cp /var/www/html/imgs/record0.png  /run/record.pngfi</code></pre></div>after <div class="codebox"><p>Code: </p><pre><code>    if [ "$record_enabled" = "1" ] ; then</code></pre></div>(line 27) add<div class="codebox"><p>Code: </p><pre><code>                #JV manage record button                cp /var/www/html/imgs/record1.png  /run/record.png</code></pre></div>add BEFORE!<div class="codebox"><p>Code: </p><pre><code>    if [ "$audio_enabled" = "1" ] ; then</code></pre></div>(line 44) add BEFORE!<div class="codebox"><p>Code: </p><pre><code> #JV do signal here    killall -q -INT recorder    sleep 2 #JV save last vid id    RECFILE="record-`date +%Y%m%d-%H%M%S`.mp4"    echo -n $RECFILE &gt; /run/RECFILE    echo "RECFILE = " $RECPATH/`echo -n $RECFILE`</code></pre></div>change filesink location in next block so it reads:<div class="codebox"><p>Code: </p><pre><code>    if [ "$audio_enabled" = "1" ] ; thenecho "Recording with audio"amixer -D hw:1 set "Auto Gain Control" offamixer -D hw:1 set "Mic" 100#JV filesink location#./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! mux.video_0 alsasrc device=plughw:1,0 ! "audio/x-raw,channels=1,depth=16,width=16,rate=44100" ! voaacenc bitrate=128000 ! aacparse ! queue ! mux.audio_0 qtmux name=mux ! filesink location="$RECPATH/record-`date +%Y%m%d-%H%M%S`.mp4" sync=true./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! mux.video_0 alsasrc device=plughw:1,0 ! "audio/x-raw,channels=1,depth=16,width=16,rate=44100" ! voaacenc bitrate=128000 ! aacparse ! queue ! mux.audio_0 qtmux name=mux ! filesink location="$RECPATH/$RECFILE" sync=true    elseecho "Recording without audio"#JV filesink location#./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! qtmux ! filesink location="$RECPATH/record-`date +%Y%m%d-%H%M%S`.mp4" sync=true./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! qtmux ! filesink location="$RECPATH/$RECFILE" sync=true    fi</code></pre></div>Step 14: save loop_record.sh<br><br>Done! reboot your StereoPi and enjoy your record button. <br>[*]Allthough I double-checked the correct inclusion of all changed code I think you should test it out on a copy of your SD-card. At least until I get confirmation that this description indeed works and thus is complete <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_e_wink.gif" width="15" height="17" alt=";)" title="Wink"> <br><br><br><br>From here I include all changed files, instead of copying you can also overwrite them if you trust me (or diff them with the originals) (:<br><strong class="text-strong">/var/www/html/toggle_recording.php contents</strong><div class="codebox"><p>Code: </p><pre><code>&lt;?php$path = '/media/DCIM/';$filename = file('/run/RECFILE');/// Load config file$config_strings = file('/opt/StereoPi/config.conf');/// Parse config file$config = array();foreach ($config_strings as $k =&gt; $v) {$tmp = explode("=", trim($v));$config[$tmp[0]] = $tmp[1];        /// shell_exec("echo $tmp[0] $tmp[1] &gt;&gt; /media/message");}if ($config['record_enabled'] == "0") {    $config['record_enabled'] = "1";system("sudo cp imgs/record1.png imgs/record.png &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");} else {$config['record_enabled'] = "0";system("sudo cp imgs/record0.png imgs/record.png &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");}$config_string = "";foreach ($config as $k =&gt; $v ) {$config_string = $config_string . $k . "=" .  $v . "\n";}        system("sudo killall -q sleep &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q rtsp-server &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q splitter &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q raspivid &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q gst-launch-1.0 &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");        system("sudo killall -q nodejs index.js &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");///$file = fopen('/media/config.conf',"w");$file = fopen('/opt/StereoPi/config.conf',"w");fwrite($file , $config_string);fclose($file);//JV        //sleep (3);        //system("sudo killall -q -INT recorder &gt;&gt; /dev/null 2&gt;&amp;1 &amp;");$res['status'] = $config['record_enabled'];///$res['filename'] = $filename;$res['filename'] = $filename;echo json_encode($res);?&gt;</code></pre></div><strong class="text-strong">file /var/www/html/index.php</strong><div class="codebox"><p>Code: </p><pre><code>&lt;html&gt;&lt;head&gt;&lt;title&gt;StereoPi : &lt;?php echo $_SERVER['SERVER_ADDR'];  ?&gt;&lt;/title&gt;&lt;link rel="apple-touch-icon" sizes="57x57" href="/icons/apple-icon-57x57.png"&gt;&lt;link rel="apple-touch-icon" sizes="60x60" href="/icons/apple-icon-60x60.png"&gt;&lt;link rel="apple-touch-icon" sizes="72x72" href="/icons/apple-icon-72x72.png"&gt;&lt;link rel="apple-touch-icon" sizes="76x76" href="/icons/apple-icon-76x76.png"&gt;&lt;link rel="apple-touch-icon" sizes="114x114" href="/icons/apple-icon-114x114.png"&gt;&lt;link rel="apple-touch-icon" sizes="120x120" href="/icons/apple-icon-120x120.png"&gt;&lt;link rel="apple-touch-icon" sizes="144x144" href="/icons/apple-icon-144x144.png"&gt;&lt;link rel="apple-touch-icon" sizes="152x152" href="/icons/apple-icon-152x152.png"&gt;&lt;link rel="apple-touch-icon" sizes="180x180" href="/icons/apple-icon-180x180.png"&gt;&lt;link rel="icon" type="image/png" sizes="192x192"  href="/icons/android-icon-192x192.png"&gt;&lt;link rel="icon" type="image/png" sizes="32x32" href="/icons/favicon-32x32.png"&gt;&lt;link rel="icon" type="image/png" sizes="96x96" href="/icons/favicon-96x96.png"&gt;&lt;link rel="icon" type="image/png" sizes="16x16" href="/icons/favicon-16x16.png"&gt;&lt;link rel="manifest" href="/icons/manifest.json"&gt;&lt;meta name="msapplication-TileColor" content="#ffffff"&gt;&lt;meta name="msapplication-TileImage" content="/icons/ms-icon-144x144.png"&gt;&lt;meta name="theme-color" content="#ffffff"&gt;&lt;/head&gt;&lt;style&gt;html,body {background-color:white; padding:0; margin:0; width:100%; height:100%; font-family:Arial; -webkit-user-select: none; -moz-user-select: -moz-none; -ms-user-select: none; user-select: none;}#version_block { position:absolute; bottom:10px; left:10px; font-color:black; font-family:Arial;}#video_canvas {width:100%; height:100%; background-image:url(imgs/stereopi_bg2.jpg); background-repeat:no-repeat; background-size:contain; background-position: 50% 50%;}#settings_window { position:absolute; left:0px; top:0px; bottom:0px; width:0px; background-color:black; display:block; overflow:hidden; color:white; z-index:510 }#toggle_settings { position:absolute;left:20px;top:20px;z-index:500;display:block; }#photo_icon { position:absolute;left:25px;top:100px;z-index:500;display:block; }#records_icon { position:absolute;left:25px;top:180px;z-index:500;display:block; }#filemanager_icon { position:absolute;left:25px;top:260px;z-index:500;display:block; }#console_icon { position:absolute;left:25px;top:340px;z-index:500;display:block; }#fwupdate_icon { position:absolute;left:25px;top:420px;z-index:500;display:block; }#logo_icon { position:absolute;right:20px;top:20px;z-index:500;display:block; }.input_box { padding:4px 10px 4px 4px;}input, select { padding:4px 10px 4px 4px; }#hellomessage { position:absolute; top:10%; left:30%; right:30%; width:auto; height:auto; margin:0; padding:10px; text-align:center; color:white; background-color:gray; font-size:1.4em; display:none; }#status_message { position:absolute; top:20px; left:220px; padding:5px; display:none; color:white; background-color:black; }#status_message a { color:white; }::-webkit-scrollbar {    width: 0px;  /* remove scrollbar space */    background: transparent;  /* optional: just make scrollbar invisible */}/* optional: show position indicator in red */::-webkit-scrollbar-thumb {    background: #FF0000;}&lt;/style&gt;&lt;body&gt;&lt;canvas id="video_canvas"&gt;&lt;/canvas&gt;&lt;!-- JV : add record button --&gt;                &lt;img style="position:absolute;right:20px;top:20px;z-index:500;display:block;" id="record_icon" alt="" src="imgs/record.png" width="50" title="Toggle recording"                     /&gt;&lt;div class="fw_hide" id="version_block"&gt;&lt;?phpecho 'version ' . file_get_contents('/opt/StereoPi/version');?&gt;&lt;/div&gt;&lt;!--JV : remove logo icon, too much chanche to hit it accidentally if we want to toggle recording&lt;div class="fw_hide" id="logo_icon"&gt;&lt;a href="http://stereopi.com" target="_blank"&gt;&lt;img src="imgs/stereopi_logo1.png" width="50" title="StereoPi site"&gt;&lt;/a&gt;&lt;/div&gt;JV --&gt;&lt;input class="fw_hide" id="toggle_settings" type="image" src="imgs/settings1.png" width="50" title="Settings"/&gt;&lt;div class="fw_hide" id="photo_icon"&gt;&lt;a href="#" &gt;&lt;img src="imgs/photo1.png" width="50" title="Make a photo"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="fw_hide" id="records_icon"&gt;&lt;a href="/records"&gt;&lt;img src="imgs/files1.png" width="50" title="Video records"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="fw_hide" id="filemanager_icon"&gt;&lt;a href="/files"&gt;&lt;img src="imgs/filemanager1.png" width="50" title="File manager"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="fw_hide" id="console_icon"&gt;&lt;a href="/console"&gt;&lt;img src="imgs/console1.png" width="50" title="Console"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="fw_hide" id="fwupdate_icon"&gt;&lt;a href="/update.html"&gt;&lt;img src="imgs/firmware_update1.png" width="50" title="Firmware update"&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="fw_hide" id="status_message"&gt;&lt;/div&gt;&lt;div id="settings_window"&gt;&lt;div style="height:100%; padding:20px; overflow:auto; y-scroll:hidden;"&gt;&lt;p&gt;Image mode    &lt;select id="video_mode" style="width:100%;"&gt;&lt;option&gt;2D&lt;/option&gt;&lt;option&gt;3D&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="updown_enabled"&gt;&lt;label for="updown_enabled"&gt;Upside/down&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="swapcams_enabled"&gt;&lt;label for="swapcams_enabled"&gt;Swap cams&lt;/label&gt;&lt;/p&gt;&lt;p&gt;Photo resolution    &lt;select id="photo_resolution" style="width:100%;"&gt;&lt;option&gt;default&lt;/option&gt;&lt;option&gt;V1-full-size&lt;/option&gt;&lt;option&gt;V2-full-size&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Video resolution    &lt;select id="video_resolution" style="width:100%;"&gt;&lt;option&gt;640x480&lt;/option&gt;&lt;option&gt;1280x600&lt;/option&gt;&lt;option&gt;1280x720&lt;/option&gt;&lt;option&gt;1280x800&lt;/option&gt;&lt;option&gt;1280x960&lt;/option&gt;&lt;option&gt;1640x922&lt;/option&gt;&lt;option&gt;1920x1080&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr /&gt;&lt;p style="color:yellow;"&gt;Rec settings&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="record_enabled"&gt;&lt;label for="record_enabled"&gt;Recording&lt;/label&gt;&lt;/p&gt;&lt;p&gt;Max rec duration    &lt;select id="record_time" style="width:100%;"&gt;&lt;option value="30"&gt;30 sec&lt;/option&gt;&lt;option value="60"&gt;1 min&lt;/option&gt;&lt;option value="300"&gt;5 min&lt;/option&gt;&lt;option value="600"&gt;10 min&lt;/option&gt;&lt;option value="1200"&gt;20 min&lt;/option&gt;&lt;option value="1800"&gt;30 min&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr /&gt;&lt;p style="color:yellow;"&gt;Stream settings&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="ws_enabled"&gt;&lt;label for="ws_enabled"&gt;Browser stream&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="udp_enabled"&gt;&lt;label for="udp_enabled"&gt;Stream UDP&lt;/label&gt;&lt;/p&gt;&lt;p&gt;UDP clients    &lt;input type="text" id="udp_clients" class="input_box" style="width:100%;"/&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="usb_enabled"&gt;&lt;label for="usb_enabled"&gt;USB enabled&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="rtmp_enabled"&gt;&lt;label for="rtmp_enabled"&gt;RTMP enabled&lt;/label&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="audio_switch"&gt;&lt;label for="audio_switch"&gt;Audio enabled&lt;/label&gt;&lt;/p&gt;&lt;p&gt;RTMP URL    &lt;input type="text" id="rtmp_url" class="input_box" style="width:100%;"/&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="mpegts_enabled"&gt;&lt;label for="mpegts_enabled"&gt;MPEG-TS enabled&lt;/label&gt;&lt;/p&gt;&lt;p&gt;MPEG-TS clients    &lt;input type="text" id="mpegts_clients" class="input_box" style="width:100%;"/&gt;&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="rtsp_enabled"&gt;&lt;label for="rtsp_enabled"&gt;RTSP enabled&lt;/label&gt; &lt;br&gt;&lt;p style="color:gray;"&gt;All other streams disabled when RTSP enabled!&lt;/p&gt;&lt;p&gt;&lt;a href="rtsp://&lt;?php echo $_SERVER['SERVER_ADDR'];?&gt;:554/h264" target="_blank"&gt;RTSP link&lt;/a&gt;&lt;/p&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr /&gt;&lt;p style="color:yellow;"&gt;Video settings&lt;/p&gt;&lt;p&gt;&lt;input type="checkbox" id="dec_enabled"&gt;&lt;label for="dec_enabled"&gt;Decimation&lt;/label&gt;&lt;/p&gt;&lt;p&gt;FPS    &lt;select id="video_fps" style="width:100%;"&gt;&lt;option&gt;10&lt;/option&gt;&lt;option&gt;20&lt;/option&gt;&lt;option&gt;24&lt;/option&gt;&lt;option&gt;25&lt;/option&gt;&lt;option&gt;30&lt;/option&gt;&lt;option&gt;40&lt;/option&gt;&lt;option&gt;42&lt;/option&gt;&lt;option&gt;48&lt;/option&gt;&lt;option&gt;60&lt;/option&gt;&lt;option&gt;90&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Bitrate    &lt;select id="video_bitrate" style="width:100%;"&gt;&lt;option&gt;500000&lt;/option&gt;&lt;option&gt;1000000&lt;/option&gt;&lt;option&gt;2000000&lt;/option&gt;&lt;option&gt;3000000&lt;/option&gt;&lt;option&gt;4000000&lt;/option&gt;&lt;option&gt;5000000&lt;/option&gt;&lt;option&gt;6000000&lt;/option&gt;&lt;option&gt;7000000&lt;/option&gt;&lt;option&gt;8000000&lt;/option&gt;&lt;option&gt;9000000&lt;/option&gt;&lt;option&gt;10000000&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Profile    &lt;select id="video_profile" style="width:100%;"&gt;&lt;option&gt;baseline&lt;/option&gt;&lt;option&gt;main&lt;/option&gt;&lt;option&gt;high&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;White balance    &lt;select id="video_wb" style="width:100%;"&gt;&lt;option&gt;off&lt;/option&gt;&lt;option&gt;auto&lt;/option&gt;&lt;option&gt;sun&lt;/option&gt;&lt;option&gt;cloud&lt;/option&gt;&lt;option&gt;shade&lt;/option&gt;&lt;option&gt;tungsten&lt;/option&gt;&lt;option&gt;fluorescent&lt;/option&gt;&lt;option&gt;incandescent&lt;/option&gt;&lt;option&gt;flash&lt;/option&gt;&lt;option&gt;horizon&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Exposure    &lt;select id="exposure" style="width:100%;"&gt;&lt;option&gt;off&lt;/option&gt;&lt;option&gt;auto&lt;/option&gt;&lt;option&gt;night&lt;/option&gt;&lt;option&gt;nightpreview&lt;/option&gt;&lt;option&gt;backlight&lt;/option&gt;&lt;option&gt;spotlight&lt;/option&gt;&lt;option&gt;sports&lt;/option&gt;&lt;option&gt;snow&lt;/option&gt;&lt;option&gt;beach&lt;/option&gt;&lt;option&gt;verylong&lt;/option&gt;&lt;option&gt;fixedfps&lt;/option&gt;&lt;option&gt;antishake&lt;/option&gt;&lt;option&gt;fireworks&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Contrast    &lt;select id="contrast" style="width:100%;"&gt;&lt;option&gt;100&lt;/option&gt;&lt;option&gt;90&lt;/option&gt;&lt;option&gt;80&lt;/option&gt;&lt;option&gt;70&lt;/option&gt;&lt;option&gt;60&lt;/option&gt;&lt;option&gt;50&lt;/option&gt;&lt;option&gt;40&lt;/option&gt;&lt;option&gt;30&lt;/option&gt;&lt;option&gt;20&lt;/option&gt;&lt;option&gt;15&lt;/option&gt;&lt;option&gt;10&lt;/option&gt;&lt;option&gt;5&lt;/option&gt;&lt;option&gt;0&lt;/option&gt;&lt;option&gt;-5&lt;/option&gt;&lt;option&gt;-10&lt;/option&gt;&lt;option&gt;-15&lt;/option&gt;&lt;option&gt;-20&lt;/option&gt;&lt;option&gt;-30&lt;/option&gt;&lt;option&gt;-40&lt;/option&gt;&lt;option&gt;-50&lt;/option&gt;&lt;option&gt;-60&lt;/option&gt;&lt;option&gt;-70&lt;/option&gt;&lt;option&gt;-80&lt;/option&gt;&lt;option&gt;-90&lt;/option&gt;&lt;option&gt;-100&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Sharpness    &lt;select id="sharpness" style="width:100%;"&gt;&lt;option&gt;100&lt;/option&gt;&lt;option&gt;90&lt;/option&gt;&lt;option&gt;80&lt;/option&gt;&lt;option&gt;70&lt;/option&gt;&lt;option&gt;60&lt;/option&gt;&lt;option&gt;50&lt;/option&gt;&lt;option&gt;40&lt;/option&gt;&lt;option&gt;30&lt;/option&gt;&lt;option&gt;20&lt;/option&gt;&lt;option&gt;15&lt;/option&gt;&lt;option&gt;10&lt;/option&gt;&lt;option&gt;5&lt;/option&gt;&lt;option&gt;0&lt;/option&gt;&lt;option&gt;-5&lt;/option&gt;&lt;option&gt;-10&lt;/option&gt;&lt;option&gt;-15&lt;/option&gt;&lt;option&gt;-20&lt;/option&gt;&lt;option&gt;-30&lt;/option&gt;&lt;option&gt;-40&lt;/option&gt;&lt;option&gt;-50&lt;/option&gt;&lt;option&gt;-60&lt;/option&gt;&lt;option&gt;-70&lt;/option&gt;&lt;option&gt;-80&lt;/option&gt;&lt;option&gt;-90&lt;/option&gt;&lt;option&gt;-100&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Digital gain    &lt;select id="digitalgain" style="width:100%;"&gt;&lt;option&gt;10.0&lt;/option&gt;&lt;option&gt;9.0&lt;/option&gt;&lt;option&gt;8.0&lt;/option&gt;&lt;option&gt;7.0&lt;/option&gt;&lt;option&gt;6.0&lt;/option&gt;&lt;option&gt;5.0&lt;/option&gt;&lt;option&gt;4.0&lt;/option&gt;&lt;option&gt;3.0&lt;/option&gt;&lt;option&gt;2.0&lt;/option&gt;&lt;option&gt;1.5&lt;/option&gt;&lt;option&gt;1.0&lt;/option&gt;&lt;option&gt;0.5&lt;/option&gt;&lt;option&gt;0.0&lt;/option&gt;&lt;option&gt;-0.5&lt;/option&gt;&lt;option&gt;-1.0&lt;/option&gt;&lt;option&gt;-1.5&lt;/option&gt;&lt;option&gt;-2.0&lt;/option&gt;&lt;option&gt;-3.0&lt;/option&gt;&lt;option&gt;-4.0&lt;/option&gt;&lt;option&gt;-5.0&lt;/option&gt;&lt;option&gt;-6.0&lt;/option&gt;&lt;option&gt;-7.0&lt;/option&gt;&lt;option&gt;-8.0&lt;/option&gt;&lt;option&gt;-9.0&lt;/option&gt;&lt;option&gt;-10.0&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr/&gt;&lt;p style="color:yellow;"&gt;Wi-Fi settings&lt;/p&gt;&lt;p&gt;Wi-Fi interface    &lt;select id="wifi_iface" style="width:100%;"&gt;&lt;option&gt;&lt;/option&gt;&lt;option&gt;wifi0&lt;/option&gt;&lt;option&gt;wlan0&lt;/option&gt;&lt;option&gt;wlan1&lt;/option&gt;&lt;/select&gt;&lt;/p&gt;&lt;p&gt;Wi-Fi SSID   &lt;input type="text" id="wifi_ssid" class="input_box" style="width:100%;"/&gt;&lt;/p&gt;&lt;p&gt;Wi-Fi password    &lt;input type="password" id="wifi_psk" class="input_box" style="width:100%;"/&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;input type="button" id="save_button" value="Save" style="width:100%;background-color:lightgreen;"&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div id="hellomessage"&gt;Double tap for fullsreen toggle&lt;/div&gt;&lt;script type="text/javascript" src="js/jquery.min.js"&gt;&lt;/script&gt;&lt;script type="text/javascript" src="js/http-live-player.js"&gt;;&lt;/script&gt;&lt;script type="text/javascript" src="js/player.js"&gt;;&lt;/script&gt;&lt;script type="text/javascript" src="js/screen.js"&gt;;&lt;/script&gt;&lt;script type="text/javascript"&gt;$('#toggle_settings').on('click', function(){toggle_settings_window();});function is_settings_opened() {var state = $("#settings_window").css("width") == "0px" ? false : true;return state;}function toggle_settings_window() {if (!is_settings_opened()) {load_config();$('#toggle_settings').css("display","none");$("#settings_window").animate({width:"200px"}, 100);} else {$("#settings_window").animate({width:"0px"}, 100);$('#toggle_settings').css("display","block");}}function load_config() {$.post("getconfig.php", function( data ) {parse_config(data);});}function parse_config(data) {var json;try {json = JSON.parse(data);} catch (e) { return; }$("#photo_resolution").val(json.photo_resolution);$("#video_resolution").val(json.video_width + "x" + json.video_height);$("#video_mode").val(json.video_mode);$("#video_fps").val(json.video_fps);$("#video_bitrate").val(json.video_bitrate);$("#video_profile").val(json.video_profile);$("#rtmp_url").val(json.rtmp_url);$("#audio_switch").prop( "checked", json.audio_enabled == "1" ? true : false);$("#rtmp_enabled").prop( "checked", json.rtmp_enabled == "1" ? true : false);$("#mpegts_enabled").prop( "checked", json.mpegts_enabled == "1" ? true : false);$("#mpegts_clients").val(json.mpegts_clients);$("#rtsp_enabled").prop( "checked", json.rtsp_enabled == "1" ? true : false);$("#usb_enabled").prop( "checked", json.usb_enabled == "1" ? true : false);$("#video_wb").val(json.video_wb);$("#exposure").val(json.exposure);$("#sharpness").val(json.sharpness);$("#contrast").val(json.contrast);$("#digitalgain").val(json.digitalgain);$("#wifi_iface").val(json.wifi_iface);$("#wifi_ssid").val(json.wifi_ssid);$("#wifi_psk").val(json.wifi_psk);$("#record_enabled").prop( "checked", json.record_enabled == "1" ? true : false);$("#dec_enabled").prop( "checked", json.dec_enabled == "1" ? true : false);$("#updown_enabled").prop( "checked", json.up_down == "1" ? true : false);$("#swapcams_enabled").prop( "checked", json.swapcams == "1" ? true : false);$("#udp_enabled").prop( "checked", json.udp_enabled == "1" ? true : false);$("#ws_enabled").prop( "checked", json.ws_enabled == "1" ? true : false);$("#udp_clients").val(json.udp_clients);$("#record_time").val(json.record_time);}$('#save_button').on('click', function() {var photo_resolution = $("#photo_resolution").val();var video_resolution = $("#video_resolution").val();var video_mode = $("#video_mode").val();var video_width = video_resolution.split('x')[0];var video_height = video_resolution.split('x')[1];var video_fps = $("#video_fps").val();var video_bitrate = $("#video_bitrate").val();var video_profile = $("#video_profile").val();var rtmp_url = $("#rtmp_url").val();var audio_enabled = $("#audio_switch").prop("checked") ? "1" : "0";var rtmp_enabled = $("#rtmp_enabled").prop("checked") ? "1" : "0";var mpegts_clients = $("#mpegts_clients").val();var mpegts_enabled = $("#mpegts_enabled").prop("checked") ? "1" : "0";var rtsp_enabled = $("#rtsp_enabled").prop("checked") ? "1" : "0";var usb_enabled = $("#usb_enabled").prop("checked") ? "1" : "0";var video_wb = $("#video_wb").val();var exposure = $("#exposure").val();var contrast = $("#contrast").val();var sharpness = $("#sharpness").val();var digitalgain = $("#digitalgain").val();var wifi_iface = $("#wifi_iface").val();var wifi_ssid = $("#wifi_ssid").val();var wifi_psk = $("#wifi_psk").val();var record_enabled = $("#record_enabled").prop("checked") ? "1" : "0";var dec_enabled = $("#dec_enabled").prop("checked") ? "1" : "0";var updown_enabled = $("#updown_enabled").prop("checked") ? "1" : "0";var swapcams_enabled = $("#swapcams_enabled").prop("checked") ? "1" : "0";var udp_enabled = $("#udp_enabled").prop("checked") ? "1" : "0";var ws_enabled = $("#ws_enabled").prop("checked") ? "1" : "0";var udp_clients = $("#udp_clients").val();var record_time = $("#record_time").val();                       // JV : manage recording button state                                ///window.alert(document.getElementById("record_icon").src);                                if (record_enabled == "0") {                                        document.getElementById("record_icon").src = "imgs/record0.png";                                    } else {                                        document.getElementById("record_icon").src = "imgs/record1.png";                                }/// Only baseline profile available if WebSockets enabledif (ws_enabled == "1") {if (video_profile != "baseline") {alert('Only "baseline" profile allowed if "Browser stream" enabled');return;}}$.post("saveconfig.php", {photo_resolution:photo_resolution,video_width:video_width,video_mode:video_mode,video_height:video_height,video_fps:video_fps,video_bitrate:video_bitrate,video_profile:video_profile,rtmp_url:rtmp_url,rtmp_enabled:rtmp_enabled,mpegts_clients:mpegts_clients,mpegts_enabled:mpegts_enabled,rtsp_enabled:rtsp_enabled,usb_enabled:usb_enabled,audio_enabled:audio_enabled,video_wb:video_wb,exposure:exposure,contrast:contrast,sharpness:sharpness,digitalgain:digitalgain,wifi_iface:wifi_iface,wifi_ssid:wifi_ssid,wifi_psk:wifi_psk,record_enabled:record_enabled,record_time:record_time,dec_enabled:dec_enabled,up_down:updown_enabled,swapcams:swapcams_enabled,udp_clients:udp_clients,udp_enabled:udp_enabled,ws_enabled:ws_enabled} , function(data) {if (data != "") alert(data);});});function page_reload() {location.reload();}function make_photo() {show_status_message('making a photo...');$.post("make_photo.php", { } , function(data) {var json;try {json = JSON.parse(data);} catch (e) {show_status_message('failed');return;}if (json.status == 0) {show_status_message('&lt;a href="/records/' + json.filename + '" target="_blank"&gt;' + json.filename + '&lt;/a&gt;');} else {show_status_message('failed');}});}                        // JV : toggle recording function, most stolen from make_photo;)                        function toggle_recording() {                                //window.alert(document.getElementById("record_icon").src.slice(-5));                                //show_status_message('toggle recording...');                                $.post("toggle_recording.php", {                                } , function(data) {                                        var json;                                        try {                                                json = JSON.parse(data);                                        } catch (e) {                                                show_status_message('failed');                                                return;                                        }                                        ///page_reload();                                        if (json.status == 0) {                                                document.getElementById("record_icon").src = "imgs/record0.png"                                                show_status_message('&lt;a href="/records/' + json.filename + '" target="_blank"&gt;' + json.filename + '&lt;/a&gt;');                                        } else {                                                document.getElementById("record_icon").src = "imgs/record1.png"                                        }                                    })                        }function show_status_message(message) {if (message != null) {$('#status_message').css('display', 'block');$('#status_message').html(message);} else {$('#status_message').css('display', 'none');$('#status_message').html('');}}    &lt;/script&gt;  &lt;/body&gt;&lt;/html&gt;</code></pre></div><strong class="text-strong">\opt\StereoPi\scripts\loop-record.sh</strong><div class="codebox"><p>Code: </p><pre><code>#!/bin/shRECPATH=/media/DCIMmkdir -p $RECPATH#JV create /run/record.png at startupif [ -f ./config.conf ] ; then    . ./config.conffiif [ "$record_enabled" = "1" ] ; then                cp /var/www/html/imgs/record1.png  /run/record.pngelse                cp /var/www/html/imgs/record0.png  /run/record.pngfiwhile [ 1 ] ; do    if [ -f ./config.conf ] ; then. ./config.conf    elsesleep 1continue    fi    if [ "$record_enabled" = "1" ] ; then                #JV manage record button                cp /var/www/html/imgs/record1.png  /run/record.pngecho "Recording enabled"elsesleep 1continue    fi #JV do signal here    killall -q -INT recorder    sleep 2 #JV save last vid id    RECFILE="record-`date +%Y%m%d-%H%M%S`.mp4"    echo -n $RECFILE &gt; /run/RECFILE    echo "RECFILE = " $RECPATH/`echo -n $RECFILE`    if [ "$audio_enabled" = "1" ] ; thenecho "Recording with audio"amixer -D hw:1 set "Auto Gain Control" offamixer -D hw:1 set "Mic" 100#JV filesink location#./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! mux.video_0 alsasrc device=plughw:1,0 ! "audio/x-raw,channels=1,depth=16,width=16,rate=44100" ! voaacenc bitrate=128000 ! aacparse ! queue ! mux.audio_0 qtmux name=mux ! filesink location="$RECPATH/record-`date +%Y%m%d-%H%M%S`.mp4" sync=true./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! mux.video_0 alsasrc device=plughw:1,0 ! "audio/x-raw,channels=1,depth=16,width=16,rate=44100" ! voaacenc bitrate=128000 ! aacparse ! queue ! mux.audio_0 qtmux name=mux ! filesink location="$RECPATH/$RECFILE" sync=true    elseecho "Recording without audio"#JV filesink location#./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! qtmux ! filesink location="$RECPATH/record-`date +%Y%m%d-%H%M%S`.mp4" sync=true./bin/recorder -e udpsrc port=3003 buffer-size=200000 ! h264parse ! queue ! qtmux ! filesink location="$RECPATH/$RECFILE" sync=true    fiecho "Recording stopped"    sleep 1done</code></pre></div><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=93">stereomii</a> — Wed Jun 10, 2020 8:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
