Skip to content

Instantly share code, notes, and snippets.

@shikajiro
Created November 19, 2013 05:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shikajiro/7540890 to your computer and use it in GitHub Desktop.
Save shikajiro/7540890 to your computer and use it in GitHub Desktop.
Androidで5秒間のデモ動画を撮るときのスクリプト。撮った映像はdropboxの公開フォルダに入れてリンクをクリップボードにコピーします。
echo "start adb shell capture"
DATE=$(date +%Y%m%d%H%M%S)
FILENAME=${DATE}.mp4
DROPBOX_ID=462856
adb shell screenrecord --verbose --time-limit 5 --size 540x960 /sdcard/demo.mp4
adb pull /sdcard/demo.mp4 ~/Dropbox/Public/capture/${FILENAME}
adb shell rm /sdcard/temp.png
DROPBOX_URL=https://dl.dropboxusercontent.com/u/${DROPBOX_ID}/capture/${FILENAME}
echo ${DROPBOX_URL} | pbcopy
echo "clip board copy ${DROPBOX_URL}
@shikajiro
Copy link
Author

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