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

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2022-04-14T20:59:04+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2022-04-14T20:59:04+00:00</updated>

		<published>2022-04-14T20:59:04+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3105#p3105</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3105#p3105"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3105#p3105"><![CDATA[
Hi glowingskull ,<br><br>Raspberry Pi's H264 encoder has a limit for the resolution it can encode (~1920x1080). Macroblock is internal term used in H264 encoding. WHen you are trying to set higher resolution, MMAL is trying to increase the H264 encoding level to 4.2 (to support more macroblocks) but fails.<br><br>I.e. you are faced with the hardware limits of the RPi's video encoder.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Thu Apr 14, 2022 8:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-24T15:24:58+00:00</updated>

		<published>2022-03-24T15:24:58+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3088#p3088</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3088#p3088"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3088#p3088"><![CDATA[
At the advice of someone in #raspberrypi on libera.chat, I tried a different monitor. I didn't change any settings in `/boot/config.txt`, so the pi's portrait video output was horribly distorted to fit my monitor's landscape shape. That was expected.<br><div class="codebox"><p>Code: </p><pre><code>root@stereopi:~# cd /opt/Cosmostreamer-NG/root@stereopi:/opt/Cosmostreamer-NG# ./stop.sh /tmp/ffmpeg-transcode: No such file or directoryroot@stereopi:/opt/Cosmostreamer-NG# bin/raspivid -fs -3d tb --level 4.2 -w 1000 -h 2000 -fps 30 -md 7 -b 100000 --flushroot@stereopi:/opt/Cosmostreamer-NG# bin/raspivid -fs -3d tb --level 4.2 -w 1440 -h 2460 -fps 20 -md 7 -b 100000 --flushToo many macroblocks/s: Increasing H264 Level to 4.2mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_encode:in:0(I420): EINVALmmal: mmal_port_enable: failed to enable connected port (vc.ril.video_encode:in:0(I420))0x2d63c0 (EINVAL)mmal: mmal_connection_enable: output port couldn't be enabledmmal: main: Failed to connect camera video port to encoder inputmmal: Argument is invalidmmal: Failed to run camera app. Please check for firmware updates</code></pre></div>In order, from top to bottom:<br>1. kill the usual cosmostreamer setup<br>2. try running at a lower resolution: no problem<br>3. try running at the desired resolution: the macroblocks/second error<br><br>I upgrade the firmware to the latest version earlier this week.<br><br>My questions:<br>- Why is the macroblocks/second upgrade message appearing if I had already specified on the command line that the H264 level was 4.2?<br>- How do I calculate the number of macroblocks/second and optimize for a lower number?<br>- What is the EINVAL about? Which argument is invalid? How do I make that argument valid once more?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Thu Mar 24, 2022 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-22T20:49:06+00:00</updated>

		<published>2022-03-22T20:49:06+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3087#p3087</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3087#p3087"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3087#p3087"><![CDATA[
What I'd really like to do is customize what shows on the attached HDMI screen at boot.<br><br>I found the setting in the web admin Menu &gt; Camera Settings &gt; Camera &gt; 3d Mode &gt; TB, which got the video into the desired top/bottom configuration. There's an option in Menu &gt; Camera Settings &gt; Video &gt; Resolution to change the output stream, and that does sometimes change the aspect ratio of what displays on the screen, but there doesn't seem to be a way to manually set the video resolution that's output to the admin. I dug around in the code and found no way to control that. <br><div class="codebox"><p>Code: </p><pre><code>/opt/Cosmostreamer-NG/run.sh</code></pre></div> appears to activate the screen by running <div class="codebox"><p>Code: </p><pre><code>/opt/Cosmostreamer-NG/bin/display.sh</code></pre></div>, which is a wrapper around the ELF <div class="codebox"><p>Code: </p><pre><code>/opt/Cosmostreamer-NG/bin/display</code></pre></div>.<br><div class="codebox"><p>Code: </p><pre><code>root@stereopi:/opt/Cosmostreamer-NG/bin# ./display --help --verboseDisplay for Cosmostreamer NGUsage:--type | -t &lt;type&gt; - camera app type--hf - flip horizontaly--vf - flip verticaly-a | --aspect - keep aspect ratio-s | --smooth - smooth video-d | --dual - use both HDMI outputs (for RPI4)-v | --verbose - show debug-h | --help - show this help</code></pre></div>This seems like a much less useful set of arguments compared to raspivid in the same directory. What does Cosmostreamer do that raspivid doesn't? Is Cosmostreamer necessary for the web frontend? Dose Cosmostreamer have user-configurable video sizes?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Tue Mar 22, 2022 8:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-18T22:11:58+00:00</updated>

		<published>2022-03-18T22:11:58+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3085#p3085</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3085#p3085"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3085#p3085"><![CDATA[
I was following the instructions in <a href="https://stereopi.com/blog/diy-vr-headset-stereopi-10-ms-latency-just-135" class="postlink">https://stereopi.com/blog/diy-vr-headse ... y-just-135</a> to try to get the rotated display output. Notably, this command:<br><div class="codebox"><p>Code: </p><pre><code>./raspivid -3d tb -w 720 -h 1280 -fs -t 10000</code></pre></div>That command as specified gives me an output on the screen, but it contains heavy green padding and the video doesn't update past the initial image.<br><br>If I update the command to match my screen dimensions, the command doesn't run:<br><div class="codebox"><p>Code: </p><pre><code>root@stereopi:/opt/Cosmostreamer-NG# ./bin/raspivid -3d tb -w 1440 -h 2460 -fs -t 10000mmal: mmal_vc_component_enable: failed to enable component: ENOSPCmmal: camera component couldn't be enabledmmal: main: Failed to create camera componentmmal: Failed to run camera app. Please check for firmware updates</code></pre></div>A command seen elsewhere on this forum did display video on top of the terminal that appears onscreen when you stop the scripts.<br><div class="codebox"><p>Code: </p><pre><code> ./bin/raspivid -3d tb -w 1280 -h 480 -fs -t 10000</code></pre></div>Therefore, I decreased the vertical height of the video output. It works at 897px tall, but not 898px<br><div class="codebox"><p>Code: </p><pre><code>root@stereopi:/opt/Cosmostreamer-NG# ./bin/raspivid -3d tb -w 1440 -h 898 -fs -t 10000mmal: mmal_vc_port_enable: failed to enable port vc.ril.video_encode:in:0(I420): ENOSPCmmal: mmal_port_enable: failed to enable connected port (vc.ril.video_encode:in:0(I420))0x983c0 (ENOSPC)mmal: mmal_connection_enable: output port couldn't be enabledmmal: main: Failed to connect camera video port to encoder inputmmal: Out of resources (other than memory)mmal: Failed to run camera app. Please check for firmware updatesroot@stereopi:/opt/Cosmostreamer-NG# ./bin/raspivid -3d tb -w 1440 -h 897 -fs -t 10000</code></pre></div>So I suspect it's got something to do with the shape and size of the video output? <br><br>Any ideas, @Realizator?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Fri Mar 18, 2022 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-18T21:33:58+00:00</updated>

		<published>2022-03-18T21:33:58+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3083#p3083</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3083#p3083"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3083#p3083"><![CDATA[
<a href="https://learn.adafruit.com/using-weird-displays-with-raspberry-pi/everything-else" class="postlink">https://learn.adafruit.com/using-weird- ... thing-else</a> and the EDID dump at <a href="https://www.edid.tv/edid/1135/" class="postlink">https://www.edid.tv/edid/1135/</a> got me the contents I needed:<br><div class="codebox"><p>Code: </p><pre><code>hdmi_ignore_edid=0xa5000080hdmi_group=2hdmi_mode=87hdmi_cvt=1440 2560 50</code></pre></div>Thankfully, I didn't need to provide a nonstandard aspect ratio or calculate an hdmi_timings line, though the Adafruit guide looks like it would have walked me through that.<br><br>Next up: getting the stereopi's video output to rotate to match the screen's output, so it isn't heavily letterboxed strip in the middle of the screen.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Fri Mar 18, 2022 9:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-18T20:40:05+00:00</updated>

		<published>2022-03-18T20:40:05+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3082#p3082</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3082#p3082"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3082#p3082"><![CDATA[
Okay, so doing that got a different set of options available in the dropdowns, but none of the modes there are actually functional. Even powercycling the screen between mode switches doesn't get me anything other than black screen.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Fri Mar 18, 2022 8:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2022-03-11T21:34:19+00:00</updated>

		<published>2022-03-11T21:34:19+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=3078#p3078</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=3078#p3078"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=3078#p3078"><![CDATA[
The stereopi.local web console doesn't work for this; it's too resource-constrained. I had to ssh in with:<br><div class="codebox"><p>Code: </p><pre><code>username: rootpassword: root</code></pre></div>The screen I have is <a href="https://www.edid.tv/edid/1135/" class="postlink">https://www.edid.tv/edid/1135/</a> which has a few more pixels than the one used on your blog post.<br><br>I was able to get an EDID dump from the monitor, so following <a href="https://www.raspberrypi.com/documentation/computers/config_txt.html#video-options" class="postlink">https://www.raspberrypi.com/documentati ... eo-options</a> I think I should move the edid.dat to /boot and set hdmi_edid_file=1 in /boot/config.txt<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Fri Mar 11, 2022 9:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2021-10-31T16:20:28+00:00</updated>

		<published>2021-10-31T16:20:28+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2915#p2915</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2915#p2915"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2915#p2915"><![CDATA[
The <strong class="text-strong">display_rotate</strong> parameter noted in <a href="https://www.stereopi.com/blog/diy-vr-headset-stereopi-10-ms-latency-just-135" class="postlink">this blog post</a> doesn't seem to work; I've tried it on a couple of different monitors and settings versions and the signal has been displayed the same on both this screen and on a standard desktop monitor. So I'll keep playing with the other options in that file.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Sun Oct 31, 2021 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Realizator]]></name></author>
		<updated>2021-10-20T20:02:07+00:00</updated>

		<published>2021-10-20T20:02:07+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2887#p2887</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2887#p2887"/>
		<title type="html"><![CDATA[Re: Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2887#p2887"><![CDATA[
Hi glowingskull,<br>Wow, you have a tricky task.<br>To say briefly, not all HDMI screens are supported by Raspberry Pi OS out-of-the-box. In some cases, you should manually set the correct scxreen resolution and mode inside the config.txt file. You can take a look at the <a href="https://www.raspberrypi.com/documentation/computers/configuration.html#hdmi-configuration" class="postlink">official documentation from Raspberry Pi Foundation</a>.<br>Most HDMI screens for Raspberry Pi have a list of settings to put in this configuration file. For example, we got a similar issue with the 90-degree rotated image and settings for the 5" AMOLED screen. You can find the details in <a href="https://www.stereopi.com/blog/diy-vr-headset-stereopi-10-ms-latency-just-135" class="postlink">this article on our blog</a>.<br><br>To fix your issue, you need the setting for the Raspberry Pi. It does not matter which board you are using - Raspberry Pi 4 or StereoPi with CM4. They have the same settings.<br><br>p.s. I see some strange note in your screen description on Amazon: "Only Support  Dedicated video card, need GTX960 Graphics"... We decided to keep the current design as-is for this batch.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=2">Realizator</a> — Wed Oct 20, 2021 8:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[glowingskull]]></name></author>
		<updated>2021-10-20T00:42:29+00:00</updated>

		<published>2021-10-20T00:42:29+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2883#p2883</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2883#p2883"/>
		<title type="html"><![CDATA[Customization of HDMI output modes on SLP image]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2883#p2883"><![CDATA[
I've plugged my SLP2 card into my StereoPi2, and used the web admin to configure the board to output a video stream of HDMI 1920x1080@60p (CEA 16:9 mode 16)<br><br>The display I'm using is a 2560x1440 screen sourced off of Amazon: <a href="https://www.amazon.com/gp/product/B0826YHTLM" class="postlink">https://www.amazon.com/gp/product/B0826YHTLM</a><br><br>The problem that I am having is that the stream from the pi is being rotated 90 degrees from the screen orientation, then stacked and output twice and two fractional times on the screen:<br><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=238" class="postimage" alt="photo of screen showing video stream from pi: A thin sliver of the stream is shown atop two copies of the stream, then another sliver of the stream. The horizontal rectangles of the stream are stacked along the long axis of the screen." onclick="viewableArea(this);" /></dt></dl></div>Is there a way to get the StereoPi to output a 2560x1440 stream, or to pass additional information to the screen regarding how the video should be rotated and scaled?<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=1006">glowingskull</a> — Wed Oct 20, 2021 12:42 am</p><hr />
]]></content>
	</entry>
	</feed>
