0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

adbコマンドを使用してスクショ・画面録画

Posted at

スクショを端末内に保存

adb shell screencap -p /sdcard/screenshot.png

PC に直接スクショ取り出す

カレントディレクトリに screenshot.png が保存
adb shell screencap -p /sdcard/screenshot.png
adb pull /sdcard/screenshot.png
撮ったスクショをデスクトップに配置したい場合
adb exec-out screencap -p > ~/Desktop/screenshot.png

個人的には手っ取り早く実用的なのでこれをよく使う。

動画を端末内に保存

adb shell screenrecord /sdcard/demo.mp4
オプション
# 最大60秒録画
adb shell screenrecord --time-limit 60 /sdcard/demo.mp4

# 画面サイズを指定(解像度)
adb shell screenrecord --size 1280x720 /sdcard/demo.mp4

# ビットレートを指定(デフォルト4Mbps)
adb shell screenrecord --bit-rate 8000000 /sdcard/demo.mp4

# 横向き録画
adb shell screenrecord --rotate /sdcard/demo.mp4

PCに直接動画を取り出す

adb pull /sdcard/demo.mp4

デスクトップに配置するには

adb pull /sdcard/demo.mp4 ~/Desktop/demo.mp4
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?