Skip to content

Instantly share code, notes, and snippets.

@nearsyh
Created December 1, 2013 19:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nearsyh/7739510 to your computer and use it in GitHub Desktop.
Save nearsyh/7739510 to your computer and use it in GitHub Desktop.
Capture screen of android device
#! /bin/sh
adb pull /dev/graphics/fb0 fb0
dd bs=1920 count=800 if=fb0 of=fb0b
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 480x800 -i fb0b -f image2 -vcodec png $1
@nearsyh
Copy link
Author

nearsyh commented Dec 1, 2013

Usage : ./screencapture.sh filename

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment