minicap
minicap copied to clipboard
Android emulator
Hi guys
Even if I know running in emulator isn't officially supported, I wonder why some people could make minicap work with emulator running on API 23. I have an Intel Atom x86 image with sdk 23, but when running minicap to grab a screenshot, I get
nico@nico:~/dev/stf (master)$ adb shell LD_LIBRARY_PATH=/data/local/tmp /data/local/tmp/minicap -P 720x1280@720x1280/0 -s
WARNING: linker: /data/local/tmp/minicap has text relocations. This is wasting memory and prevents security hardening. Please fix.
PID: 2290
INFO: Using projection 720x1280@720x1280/0
INFO: (external/MY_minicap/src/minicap_23.cpp:240) Creating SurfaceComposerClient
INFO: (external/MY_minicap/src/minicap_23.cpp:243) Performing SurfaceComposerClient init check
INFO: (external/MY_minicap/src/minicap_23.cpp:250) Creating virtual display
INFO: (external/MY_minicap/src/minicap_23.cpp:256) Creating buffer queue
INFO: (external/MY_minicap/src/minicap_23.cpp:261) Creating CPU consumer
INFO: (external/MY_minicap/src/minicap_23.cpp:265) Creating frame waiter
INFO: (external/MY_minicap/src/minicap_23.cpp:269) Publishing virtual display
INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 2766852 bytes for JPG encoder
terminate called after throwing an instance of 'std::runtime_error'
what(): Unsupported pixel format
Aborted
Minicap info cmd shows
WARNING: linker: /data/local/tmp/minicap has text relocations. This is wasting memory and prevents security hardening. Please fix.
{
"id": 0,
"width": 720,
"height": 1280,
"xdpi": 320.00,
"ydpi": 320.00,
"size": 4.59,
"density": 2.00,
"fps": 60.00,
"secure": true,
"rotation": 0
}
And I'm running following emulator
Available Android Virtual Devices:
Name: android-23
Device: Galaxy Nexus (Google)
Path: /home/nico/.android/avd/android-23.avd
Target: Android 6.0 (API level 23)
Tag/ABI: default/x86
Skin: 720x1280
Please advise which is the right emulator setup to make minicap work.
Thanks