-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Error when using scrcpy-server directly #613
Comments
There are more parameters now:
See: scrcpy/server/src/main/java/com/genymobile/scrcpy/Server.java Lines 76 to 93 in 91ecb4f
|
Thanks for your reply. It is the parameters problem. |
Are there any relevant messages in |
Oh, of course it does not work anymore, now there are two sockets: ec71a3f. adb push scrcpy-server.jar /data/local/tmp/scrcpy-server.jar
adb forward tcp:8080 localabstract:scrcpy
adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 0 800000 true - true true Then you need to connect two sockets successively: # video socket
nc localhost 8080 Then, in another terminal: # control socket
nc localhost 8080 (the protocol between the server and the client is internal and can change at any time, I really need to expose a libscrcpy…) |
Thank you so much !! |
I'm having the same problem when following the common steps of build.md.
|
You must use the same version for the client and the server. So |
Using the prebuilt server worked, thanks. |
God I hope this thread isn't dead, I'm now facing an issue where after pushing the scrcpy-server file and adding classpath, I'm seeing that the client and server version doesn't match. [server] ERROR: Exception on thread Thread[main,5,main] Same commands were ran from above. I'm using scrcpy version 1.24, and downloaded the proper prebuilt server (scrcpy-server-v1.24) from the repo. Still the client version seems to show (0). What can I do? |
You must pass the paramters expected by |
This is what I'm using, is there something wrong with the parameters I'm passing? |
Yes, this is wrong. Check how the parameters are passed: https://github.com/Genymobile/scrcpy/blob/v1.24/app/src/server.c#L163-L258
is probably sufficient. |
After running the code, I'm getting this error now,
[server] INFO: Device: Google AOSP on IA Emulator (Android 9) I'm having a really hard time understanding the code you provided unfortunately. What can I do now? An example would really help a lot . |
@siam-titan This post might help you: https://code.videolan.org/rom1v/vlc/-/merge_requests/20 |
@rom1v thank you so much man, issues related to scrcpy was solved by that link. The stream works properly when I'm playing it with vlc/ffplay. But dunno why in the browser the video is corrupted. It's surely live because I can see the colors change when I interact with the emulator. I'm using h264-live-player library to decode the stream. Is there anything I can do now? |
I also want to get the video stream only from the android like #129 .
But when I run the command:
I use it in Ubuntu18.04
adb version: 1.0.41
Thanks.
The text was updated successfully, but these errors were encountered: