Closed LilahCodes closed 2 years ago
Hello! I'm not actually the main dev on Chiaki but I did a lot of the work adding Raspberry Pi capability and a few other things. Apart from that, what precisely do you mean by game data?
I think mainly the data being sent from the PS4/5 is video and audio plus some meta data to do with that. There's feedback to the controllers to make the haptics.
Cheers
By game data i mean being able to pull the video and use it externally, as when i try to take screenshots the game goes black, so i was wondering if just pulling the game data and making my own screenshot script may be the best route
So you mean that the game stream window goes black when you try to screenshot? Are you using raspberry pi? If you are then the window will go black when not 'in focus'. (Due to me having problem figuring out the layering when doing hw decode to screen). What you might be able to do is maximize the window with F11 or DS4 trackpad double tap, then press 'Print Screen' on a keyboard. That should save an image out to your home directory.
If you want to go the hard route you can re-program in the file 'pidecoder.c' to spit out raw h264 or maybe dump frame pixels. But I'm afraid I won't be able to tell you how.
Oh i see! Thanks ill try that first solution asap.
So you mean that the game stream window goes black when you try to screenshot? Are you using raspberry pi? If you are then the window will go black when not 'in focus'. (Due to me having problem figuring out the layering when doing hw decode to screen). What you might be able to do is maximize the window with F11 or DS4 trackpad double tap, then press 'Print Screen' on a keyboard. That should save an image out to your home directory.
If you want to go the hard route you can re-program in the file 'pidecoder.c' to spit out raw h264 or maybe dump frame pixels. But I'm afraid I won't be able to tell you how.
Unfortunately, even when going full screen, when screenshotting the whole image is black
Oh ok. I guess the hardware 'path' the RPi is using for this decode+display is somehow not accessible to regular screenshots. I'm afraid that's not something that I'll be trying to do anything about.
Would it be possible to read game data over the stream? Possibly by intercepting packets or something?