-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
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
scrcpy not working after upgrading to latest version v2.3 #4477
Comments
EDIT: the below steps should not be required and are discouraged from being performed. The issue identified was fixed and merged into the latest release thus requiring no additional fix from users. Thanks @rom1v, your comment helped me fix this in the right direction (hopefully). I was able to fix this through the follow commands: Based on what I see, the issue isn't likely because of scrcpy upgrade but rather with the system installed version of SDL
Profit! scrcpy should now work fine without reporting any errors from SDL. If you're segfaulting, a system restart might help, or additionally try Please note that the above PPA includes updated SDL packages only for x86_64 arch but not for arm64 (so if you have a Raspberry Pi or similar arm64 device, you'll need to build from source to get the latest build of SDL). This would've been painfully hard if not for Rob Savoury's PPA, cheers to them! Hopefully this helps! PS: another gripe with Canonical for shipping ancient versions of packages in standard repos, about time to switch to Fedora! Closing the issue for now, thanks @rom1v for all your help here! |
You should not need a PPA. The version you were using was sufficient:
i don't know why you had a problem with it (especially if it worked beforehand). |
@rom1v That's what has been baffling me too, the version shipped in the repos (although very old) should be sufficient. It has never done this before and the SDL errors were out of the blue (probably has nothing to do with upgrading scrcpy) |
@rom1v I would like to re-open this issue I have a Raspberry Pi 4b running on Ubuntu 22.04.3 LTS (arm64), upgrading scrcpy from v2.2 to v2.3 seems to break SDL with the same error described in the original post (SDL No available video device). I manually uninstalled 2.3 and downgraded to 2.2 and it works just fine without any SDL errors. I suspect that the usage of SDL library might've changed in v2.3 leading to the error, would you please see if such is the case? scrcpy v2.2 works fine here but not v2.3:
Ubuntu 22.04.3 LTS running on Raspberry Pi 4B with SDL 2.0.20 installed from the standard repos |
Check without this commit (introduced between 2.2 and 2.3): 5e59ed3 |
Did it work with scrcpy v2.2 without |
@rom1v yep, this commit is likely the reason for the issue as my command does not work with this commit (works fine before this commit was introduced). Command: since I'm passing
Unfortunately I'm on a headless VM so removing |
Please test branch
Either of one would fix your specific issue, but I think both should be applied. |
@rom1v Working fine in the branch, hoping it will be merged in master! I agree that both of the fixes should be applied Thanks for all your help here! Really appreciate it! |
Yes, I merged the commits into |
Environment
Describe the bug
On a Linux shared VM (Digital Ocean Droplet), after upgrading to the latest version (2.3) from v2.2 last night, attempting to connect to the device throws an error from scrcpy with below message:
Command:
scrcpy --tcpip=192.168.0.129:5555 --no-control --no-playback --video-source=display --audio-source=mic --display-buffer=200 --audio-buffer=200 --max-size=1024 --video-codec=h264 --audio-bit-rate=64000 --video-bit-rate=1M --no-clipboard-autosync --lock-video-orientation=0 --time-limit=1800 --record="test.mp4" --record-format=mp4
Output:
Scrcpy Version:
Note: This does not happen in previous version v2.2 where the above command had worked fine.
I have tried to update the APT packages just to see if SDL has upgrades but all packages are up-to-date as reported by APT. Have tried rebooting but to no avail.
The text was updated successfully, but these errors were encountered: