JuliusCode / MP4MUSEUM

MP4MUSEUM.org Media Player
GNU General Public License v3.0
32 stars 8 forks source link

RPI4 component + HDMI switching issue #38

Closed ZiggyLever closed 9 months ago

ZiggyLever commented 10 months ago

Hi Julius,

I discovered a workaround for the fact that on RPI4 enable_tvout is disabled by default, and I thought I'd share it here. When tvout is enabled, this puts the Pi into composite mode for CRT playback etc, however, the automatic switching between composite and HDMI (like on the PI3s and below) doesn't work. This means you must choose either to enable or disable tvout in the code on the RPI4.

To retain the functionality of the RPI3s, where you can select between modes on power up depending on whether the AV cable or HDMI is plugged in, I came up with a hack that used the [EDID *] function without calling a specific monitor/projector EDID number. I've tested this going back and forth on different HDMI destinations and composite in-between, and it works.

Here is the code I added for this to work:

`

enable composite out

enable_tvout=1

[EDID=*]

HDMI force

hdmi_force_hotplug=1

disable composite out

enable_tvout=0

`

I hope this is useful,

All the best

Ziggy

JuliusCode commented 10 months ago

dear ziggy, thanks for your input, by any chance did you try the same config on other raspi like 1-3, a+, w? if it is something that works universally i would be happy to include this into the default config for mp4musem.

cheers! J.

ZiggyLever commented 10 months ago

Hi Julius,

I've tested an RPI3 b, which works already without the extra code I added. I think this is because the RPI4s have enable_tvout disabled by default, where as older Pis have it enabled. If added it could be commented out so those using RPI4s can uncomment it?

Thanks again for writing the MP4Museum code!

Best

Ziggy

On 31/10/2023, at 4:10 AM, Julius @.***> wrote:

dear ziggy, thanks for your input, by any chance did you try the same config on other raspi like 1-3, a+, w? if it is something that works universally i would be happy to include this into the default config for mp4musem.

cheers! J.

— Reply to this email directly, view it on GitHub https://github.com/JuliusCode/MP4MUSEUM/issues/38#issuecomment-1785430118, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDNXNSUI5SNW4YKDJ7F7OKLYB67QDAVCNFSM6AAAAAA6USEQJ2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTOOBVGQZTAMJRHA. You are receiving this because you authored the thread.