thestr4ng3r / chiaki

Moved to https://git.sr.ht/~thestr4ng3r/chiaki - Free and Open Source PS4 Remote Play Client
https://git.sr.ht/~thestr4ng3r/chiaki
2.18k stars 370 forks source link

[SOLVEDish] - Failed to push frame: Invalid data found error #340

Closed Fredrum closed 3 years ago

Fredrum commented 3 years ago

Environment

Describe the bug When I'm running the gui/chiaki program is seems ok at first. It finds and registers my PS4 and I get a tile that seems to indicate that so far its working. But once I double click on the big icon representing the PS connection the big window that pops up just freezes and there's only garbled overdraw pixelated blocks. This does not go away.

This is the bit in the shell output that seems to indicate where it breaks,

 [I] ChiakiOpusDecoder initialized
[E] Audio Format with 2 channels @ 48000 Hz not supported by Audio Device 
[I] Video Profiles:
[I]   0: 1280x720
[I] StreamConnection successfully received streaminfo
[I] Switched to profile 0, resolution: 1280x720
[h264 @ 0x124da00] no frame!
[E] Failed to push frame: Invalid data found when processing input
[E] AVCodec internal buffer is full removing frames before pushing
[E] AVCodec internal buffer is full removing frames before pushing
[E] AVCodec internal buffer is full removing frames before pushing
[E] AVCodec internal buffer is full removing frames before pushing

UPDATE: I'm actually also noticing these errors that seem suspicious,

qt5ct: using qt5ct plugin
QEGLPlatformContext: Failed to create context: 3009
QEGLPlatformContext: Failed to create context: 3009
QOpenGLWidget: Failed to create context
QEGLPlatformContext: Failed to create context: 3009
QOpenGLWidget: Failed to create context

I'll add the full output at the tail of this message.

To Reproduce Steps to reproduce the behavior:

  1. Build as instructed.
  2. cd into build/gui/
  3. run chiaki on commandline
  4. double click on the registered tile/icon
  5. error

Additional context My build is the main repo clone gotten like this:

git clone https://github.com/thestr4ng3r/chiaki.git

Log Files chiaki_err_01.txt

Fredrum commented 3 years ago

Oh scrap that! Iv'e actually got this working on the pi now! :D

I am a noob with Git but I managed to merge the latest official chiaki with the ChalieBanks' RPi-Effort one.

First it crashed out as I started running a game from the menu screen. That happened twice in a row. So then I waited until I had already started a game on the PS4 before 'connecting' (double clicking on the PS4 tile/icon) And now I have the thing running the game on the Raspberry, over LAN and with USB lead PS4 controller into the RPi4.

There's some small amount of lag that's fine in slower games but it would be great to know where the delay might be so I could see if its possible to do something about? Would I be able to tell from the detailed log? I guess I'm rambling a bit now and should open a new 'issue' for those questions.

UPDATE: I now get a much worse frame rate than I had the first time I managed to get this to run. Iv'e tried restarting several times and rebooting both machines but still I now only get about 8-10 fps if I had to guess. Nothing should have changed though so I wonder why this happened.