razumeiko / py-android-viewer Goto Github PK
View Code? Open in Web Editor NEWGet video stream from your android device as numpy array + basic control
Get video stream from your android device as numpy array + basic control
Hi Host,
first thanks a lot for your code, lot of help to me.
I want to know if it's possble to connect two or more devices using this project, how do I do this?
I have no idea, plese give me some tips..
Thanks,
cuntoulishfu
Hi, I reach this project from SCRCPY, it works well in my pc and your code is great.
But I had a little problem, when I adjust max_width to 0, the resolution changed to 1080*2160, and then the screen updates very slowly. If I only use the latest frame(Queue(maxsize=1)), the update speed is back to normal, but the screen is blurry.
So, could you give me some support? I'm looking forward to your reply soon.
Hey dude, its amazing, may i use part of your code in my personal project(for fun, non-profiting)?
I am using windows 7 64 bit. I already set the adb/scrcpy path in viewer.py after an error came up. Now, it shows the following error. I tried to open using admin, but still the same.
2020-05-22 19:01:55.013 INFO: Upload JAR...
Traceback (most recent call last):
File "E:/Pycharm_Projects/make_them_jump/test.py", line 3, in
a = viewer.AndroidViewer()
File "E:\Pycharm_Projects\make_them_jump\viewer\viewer.py", line 43, in init
assert self.deploy_server(max_width, bitrate, max_fps)
File "E:\Pycharm_Projects\make_them_jump\viewer\viewer.py", line 96, in deploy_server
adb_push = subprocess.Popen([self.adb_path, 'push', server_file_path, '/data/local/tmp/'],
File "C:\Users\Oliver\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 854, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\Oliver\AppData\Local\Programs\Python\Python38-32\lib\subprocess.py", line 1307, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] Access is denied
cmd
adb shell CLASSPATH=/data/local/tmp/scrcpy-server.jar app_process /com.genymobile.scrcpy.Server 0 8000000 true
error info
[server] ERROR: Exception on thread Thread[main,5,main]
java.lang.IllegalArgumentException: The server version (0) does not match the client (1.12.1)
at com.genymobile.scrcpy.Server.createOptions(Server.java:78)
at com.genymobile.scrcpy.Server.main(Server.java:162)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:388)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.