lgx2userspace icon indicating copy to clipboard operation
lgx2userspace copied to clipboard

Video Pass-through & Video format.

Open Baoulettes opened this issue 3 years ago • 2 comments

Hello. So first let tell device and configuration: GC550 LGX Ubuntu 20.04 Gamecube with Prism hdmi adapter that goes in Digital out.

So for video pass-through it just do not work, I did setup a Nintendo Gamecube with HDMI out that work fine direction on monitor it work perfectly. If I try to use video pass-through it just give no signal is it something know ? (I wanted it to do fast debuging without having to plug unplug hdmi from one monitor LGX.)


Now about the hard part of video format and frame size. So far it work "good" I mean by default your source accept only 1920x1080 yet LGX do support just anything (on windows I remember it switch resolution itself to adapt what was in port "IN" is there) anything like that possible to do ?

Note: I tweaked sources, no idea if you can see the fork I made ( I have no idea if these are public or not ) but I made all the texts and frame size as variable for testing purpose to tweak Frame Height and Width. and doing it to adapt to the formatI ahve in port "IN" work fine but what a pain to plug off and reload the script just for that (even more when you know Gamecube suck and send one different format for Boot, in game 50hz and another one for 60hz. (Pal console what a pain.) So here I have a tiny request no idea how it would work I have no idea how SDL work but is it possible to create menu or even second window to change on the fly the frame size (not Window size but your size in SDL_CreateTexture(), SdlFrameOutput::videoFrameAvailable() and the one used in V4LFrame) ?

I am trying to learn how to do it myself but meh my brain melt a bit by trying lol

Baoulettes avatar Feb 24 '22 03:02 Baoulettes

Hi @Baoulettes, apologies for taking so long to get back to you! It might be surprising for you to learn that I have a gamecube and I am fairly certain I have a similar HDMI setup, so if I get some time I can look into this.

Since I'm in a PAL region, and I have a PAL gamecube, I think it would boot up in 576i and then go to 480p, so I should be able to test this.

If I recall though, the LGX always pumps out 1080p, and handles resizing the input to fit its own framebuffer, so I'm not certain this will be required, but I'll see if I can get capture working from a gamecube and will submit any changes that are required.

It'll likely be a command argument for setting a particular video mode if it is actually required.

ChrisAJS avatar Jul 22 '22 16:07 ChrisAJS