scrcpy: Error when using scrcpy-server directly
I also want to get the video stream only from the android like #129 . But when I run the command:
➜ /home/yanyang > adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process / com.genymobile.scrcpy.Server 0 800000 true
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: Expecting 5 parameters
at com.genymobile.scrcpy.Server.createOptions(Server.java:71)
at com.genymobile.scrcpy.Server.main(Server.java:132)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:340)
I use it in Ubuntu18.04
scrcpy 1.9
dependencies:
- SDL 2.0.8
- libavcodec 57.107.100
- libavformat 57.83.100
- libavutil 55.78.100
adb version: 1.0.41 Thanks.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15
There are more parameters now:
See: https://github.com/Genymobile/scrcpy/blob/91ecb4f218f9a0f348ed8aee47919d6c2f4779a9/server/src/main/java/com/genymobile/scrcpy/Server.java#L76-L93