-
-
Notifications
You must be signed in to change notification settings - Fork 943
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find encoder #69
Comments
|
I'm also having this issue, same OS and terminal output, but using a different GPU. (AMD) |
same issue here, Arch and NVIDIA Card |
@hadogenes any thoughts? |
Same issue, same config. I switched to this fork because of an AUR update and now I can't get Sunshine to run. However I tried building the package at its last version targeting the original repo and I still run into this problem, so it might not be a regression. I'm also seeing CMake not detecting any CUDA compiler despite PS: CUDA compiler not being detected happens on both the original repo and this fork. I guess it's worth fixing this repo as it's more reactive to PRs and already being tracked by the AUR package. |
Update: The CMake script actually finds the CUDA install present on my system, although not when being called through makepkg when building the AUR package. Not sure the lack of a CUDA compiler is what's causing the error, but maybe what's causing CMake to not find nvcc could also be causing it to not find an essential library. |
After a bit of debugging it turns out the issue happens here: Both this fork and the original repo are impacted. |
Another note: I don't get this issue on my laptop with Intel integrated graphics. It's possible that it was caused by a libdrm or Nvidia update too. |
OK … so it's not a regression introduced from the fork (so is not due to a code change), is not unique to Nvidia, but may possibly still be connected to something with Arch Linux? I'm quite lost as to what the cause could be. I had the pre-fork version of Sunshine installed an hour before opening this issue, and my system was 100% up-to-date at the time, so the only updates that could've possibly affected things is anything statically-linked to the compiled binary. The fact that it works on Intel is interesting. |
The AUR was recently updated and there were changes in the build besides pointing to this repo. There were 3 commits a few days ago https://aur.archlinux.org/cgit/aur.git/log/?h=sunshine |
The issue points to avcodec, and it is statically linked indeed. I'll have a look at their bug tracker to find out if there's been any sort of regression.
Not 100% sure but as far as I know my 6300U doesn't have any hardware encoder |
And there it is: https://trac.ffmpeg.org/ticket/9666 |
Sorry I just found out I forgot to build Sunshine with ffmpeg 4.4, so I just polluted this issue with something that's already been solved here: #63 I've added the CMake flags to link against ffmpeg 4.4 and I'm back to the |
I fixed my issue by adding |
I can confirm that @cyl3x's solution works. Cheers for that 🍻 |
Back to business indeed. Thanks a lot :) |
This has been resolved in the AUR. Can be closed. |
In my case, I needed to make sure I set the DISPLAY in the systemd unit file. I noticed things would run fine if I didn't launch the app image via systemd
|
do you mind if you elaborate on the solution a little bit I have the code but I don't know where to put it |
@VRKade11 you need to set the |
Well I figured it out it was the output name and adapter name needed to be blank or I messed something up with the name |
Describe the Bug
Having switched from the original repository's version of Sunshine to this fork, Sunshine no longer runs at all, with the process aborting due to a fatal error mere moments after starting it.
Below is the output I get on every run:
Expected Behavior
Sunshine should run and work properly as it did before this forked version was created.
Additional Context
Two other users on the Arch User Repository (AUR) have encountered this very same issue—@JPenuchot and @pogojotz.
Like me, @JPenuchot had switched from the pre-fork version to the version hosted on this GitHub repository. However, @pogojotz had not installed the unmaintained version of Sunshine; this eliminates the possibility that some leftover files from before I made the switch are causing problems.
The other two mentioned are also running Arch Linux with Nvidia GPUs on X11.
Sunshine Host Operating System and Version
Arch Linux
Architecture
x86-64
Sunshine Version
git
GPU Type
Nvidia
GPU Model
GeForce GTX 970
GPU Driver/Mesa Version
510.54
Capture Method (Linux Only)
X11 GNOME Session
The text was updated successfully, but these errors were encountered: