openstf / minicap

Stream real-time screen capture data out of Android devices.
Other
1.72k stars 623 forks source link

Run minicap on set top box without monitor #28

Open varavut opened 8 years ago

varavut commented 8 years ago

Hello,

I have try to use minicap with -s option on Minix (Android set top box) to get a screenshot file, everything work perfectly. It take about 150 ~ 200 ms per image, but when I disconnect a monitor minicap will take more time for a screenshot (500 ~ 600 ms per image).

How can I solve this problem?

Thank you for your awesome works.

sorccu commented 8 years ago

Hmm, I'm not sure. Minicap relies on SurfaceFlinger. Maybe SurfaceFlinger decides that it no longer has to work that much after you disconnect the display? I'm not sure if we can do anything about it. I would have to have one of those boxes, and then the time to work on it. Worst case scenario, you could use a dummy HDMI plug or something, like this.

sorccu commented 8 years ago

By the way is there any reason why you can't just use the built-in screencap utility?

varavut commented 8 years ago

screencap utility take much more time (about 4 s per image) and the image scale is invalid (when disconnect the display). For a screenshot command, it give me a better image than screencap but the screen will blink while a command executing.

I will try to use a dummy HDMI plug, thank you for your kind assistance.