mjrgh / PinballY

A table browser and launcher ("front end") for virtual pinball cabinets.
Other
46 stars 22 forks source link

Problem recording pf videos when using OpenGL version of VPX. #234

Open sverrewl opened 8 months ago

sverrewl commented 8 months ago

First, I'm still on Win7 64bit. It seems to me that the OpenGL version of VPX8 is just "better", so I'm using that the most. Problem though, is when I use any of the GL versions, video capture of pf gets created, but, tables comes up without any GI lights captured. Best described as single frame capture, converted to video.

Solution so far: Switch to DX version when capturing.

Not sure if this will work on newer OS, I'm having capture issues if I try pinup popper as well (ffmpeg), IF I try any nvidia acceleration. There, however OpenGL seems to work. I'm not sure if we should call this a bug or not. Maybe it belongs under "known issues with obsoleted Win7 64bit OS" ?

Believe it is a good idea however to report it here, so the information is available for others.

jueank commented 8 months ago

I filed a similar issue for VPX: https://github.com/vpinball/vpinball/issues/1274 I think the issue is fundamentally that the image capturing / video recording is based on windows GDI. The OpenGL output is not exposed to GDI ('visible' from GDI). Therefore you can only - as a workaround - switch away from VPX to another windows application, then switch back. Windows does capture a single image in that moment (maybe to be able to show it as the task switcher thumbnail); and this is what is being saved when doing a snapshot in PinballY. There is no workaround for recording. There is also an alternative screen capturing tool (https://discord.com/channels/652274650524418078/697607905599553596/1187636701028417617) but I haven't tried that myself. The recording would need to be changed / reimplemented.

fernandojconti commented 8 months ago

You can solve it easily using Alt + Tab when using FP. I'm pretty sure that it should work also for the VPX Glide version.

jueank commented 8 months ago

@fernandojconti This is what I wrote in 'switch away from VPX to another windows application, then switch back'

fernandojconti commented 8 months ago

Well, I recorded all my FP videos from PinballY using the Alt+Tab hack with no issues, and not only an image. You must do it twice. I mean, the first time when FP already loaded the table press and hold the Alt key and then the Tab key once, and release both. Then, press and hold the Alt key and press the Tab key several times until reaches the video status capture window to bring it to the front, release both, and wait for the full process to end. That's it. It is not the ideal solution, but it works.