loki-47-6F-64 / sunshine

Host for Moonlight Streaming Client
GNU General Public License v3.0
1.77k stars 152 forks source link

Linux:Libx264 doesn't seem to send the stream (high profile error) #57

Open tr1p0p opened 3 years ago

tr1p0p commented 3 years ago

When i try to launch sunshine it worked at a gamestream client, but i can't connect to no stream.

Im my terminal i got :

 x264 [error]: high profile doesn't support a bit depth of 10
[2021:01:05:03:46:17]: Error: Could not send a frame for encoding: Invalid argument
[2021:01:05:03:46:17]: Info: Found encoder software: [libx264]

Any clues for solving that ?

Pop_Os ! 20.04 GTX 970 / i5 / 8go RAM

Nomagno commented 3 years ago

After a good two hours of digging I found this issue, which has a workaround to the bug, tho after the dev's advice and the many dependencies I don't know how to install, I'm not going to try this anytime soon. If you somehow manage to get the output of the card to be 8-bit h264 or even h265 (Which shouldn't be that hard I'm just oblivious to how to do it), it should be fine.

tr1p0p commented 3 years ago

So.. In 2020 Linux gaming community have absolutely NO TOOLS to stream they're games to moonlight ? Somethings that's been around for years now..

And the fact that the only tool available doesn't seem to be upset that when you install it won't work for the majority of people (yeah, i know it's a surprise most people doesn't want to compile a specific version of ffmpeg with arguments, crazy people.)

But the dev say that's it's not hurry right now.. so yeah.

Linux gaming will wait again to have something windows user have for years now, like always...

djibux commented 3 years ago

You have the right to be frustrated, but please show some respect for the people who invest some of their free time to work on this project.

tr1p0p commented 3 years ago

Yeah i know, and i am. I'm not frustrated about the dev that do nothing, i'm frustrated because I can't do nothing. That's what rush in project like that in the linux world. I would like to repair that myself, or like learn to build ffmpeg myself, stuff like that. But it's too blurry, do i have to delete and reinstall ffmpeg ? Do i have to fork the project and see some config files in it ? Add some variables when launching sunrise ?

The stream play in steam work great in my computer, can i take some libs from in and put into sunrise ?

But yeah, i thanks the dev for the works, glad to see some open-source tool for streaming linux-game into, like, my switch. But yeah, kind of frustrated to not being able to do anything for this issues, and just wait..

ademlabs commented 3 years ago

Having exactly the same issue, but on Windows. I also get a list of suggested profiles as well:

[x2021:04:18:03:01:12]: Debug: Source format [DXGI_FORMAT_R10G10B10A2_UNORM]264 [error]: high profile doesn't support a bit depth of 10
[libx264 @ 0000000008c7da80] Error setting profile high.
[libx264 @ 0000000008c7da80] Possible profiles: baseline main high high10 high422 high444

Not sure how to pass the parameter to set the profile to something like high10 which would suggest 10bpp capability?

jimmythreecocks commented 3 years ago

When i try to launch sunshine it worked at a gamestream client, but i can't connect to no stream.

Im my terminal i got :

 x264 [error]: high profile doesn't support a bit depth of 10
[2021:01:05:03:46:17]: Error: Could not send a frame for encoding: Invalid argument
[2021:01:05:03:46:17]: Info: Found encoder software: [libx264]

Any clues for solving that ?

Pop_Os ! 20.04 GTX 970 / i5 / 8go RAM

I get this same error on linux as well. The video seems to work fine despite this, but I get no audio from the client. I check on my PC and the audio is fine, and I can check that sunshine-recording is using the right audio sink, and I can even see the bar moving in the mixer showing that there's sound coming from it. Not sure if this is related to audio or not.

j-mir-prazak commented 2 years ago

I was able to change the profile in to code from main to main_10 and it seems to run - amd apu. weird thing is, that software encoding on my second nvidia machine is fine without this hack.

maybe there is a way to check the bitness of the input and use main or main_10 accordingly?