<?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/1381" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2023-08-17T04:58:41+00:00</updated>

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

		<entry>
		<author><name><![CDATA[skippy26]]></name></author>
		<updated>2023-08-17T04:58:41+00:00</updated>

		<published>2023-08-17T04:58:41+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3402#p3402</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3402#p3402"/>
		<title type="html"><![CDATA[Purple + White Bar in Right Image With Stereo Side By Side Recording + Streaming]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3402#p3402"><![CDATA[
Hello friends, I'm using a StereoPi v2 Camera Kit and running the OpenCV OS that came with the pi.<br><br>I'm running into an issue where there is a purple and white flickering column in the right image of a side by side stereo recording. This happens with both raspivid, and PiCamera.<br><br>Raspivid command I'm using:<div class="codebox"><p>Code: </p><pre><code>raspivid -o - -t 0 -3d sbs -w 800 -h 600 -fps 12  | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8085/}' :demux=h264</code></pre></div>PiCamera code:<div class="codebox"><p>Code: </p><pre><code>import picameracamera = picamera.PiCamera(stereo_mode="side-by-side")camera.resolution = (1920, 1088)camera.start_recording('my_video.h264')camera.wait_recording(5)camera.stop_recording()</code></pre></div>Raspivid result:<br><a href="https://i.imgur.com/36QQzkG.png" class="postlink">https://i.imgur.com/36QQzkG.png</a><br><br>PiCamera result:<br><a href="https://i.imgur.com/n7e8rUu.png" class="postlink">https://i.imgur.com/n7e8rUu.png</a><br><br>I've also noticed that sometimes the split between the two images flickers to the right, cutting off some of the right image but revealing some of the left image underneath it. It appears as if the right image is shifted to the left, where the right column is raw memory. To me it seems like a memory issue since it happens with both raspivid and picamera, and only while recording. I'd be happy to provide the h264 files if someone wants to look at them more closely.<br><br>Image depicting what I've just described. The shifted part is near the bottom:<br><a href="https://imgur.com/a/znBTPWJ" class="postlink">https://imgur.com/a/znBTPWJ</a><br><br>The stereo image looks completely fine if a still image is taken, these issues only happen when recording in stereo.<br><br>Here's what I've done to try to solve this issue:<br>- Double checked that my camera is indeed enabled<br>- apt-get update/upgrade<br>- updating picamera<br>- increase cma memory in config.txt to 512mb<br>- increase gpu memory through raspi-config to 512mb<br>- swapped cameras left and right through picamera camera_num, but the issues remained on whichever was the right image<br>- fixed <a href="https://github.com/waveform80/picamera/issues/411" class="postlink">this</a> bug in picamera<br><br>Any help is greatly appreciated!<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1198">skippy26</a> — Thu Aug 17, 2023 4:58 am</p><hr />
]]></content>
	</entry>
	</feed>
