Skip to content

Exec-Out


adb exec-out screenrecord --output-format=h264 - \
    |mplayer -framedrop -fps 60 -cache 1024 -

Stream device screen via FFmpeg

adb exec-out screenrecord --output-format=h264 - \
    |ffmpeg -i - -f mpegts -codec:v mpeg1video -b:v 1000k -s 1280x720 -r 30 -bf 0 http://localhost:8080/stream

Record device screen to a file

adb exec-out screenrecord --output-format=h264 /sdcard/screen.mp4

Capture a screenshot and save to file

adb exec-out screencap /sdcard/screenshot.png
adb pull /sdcard/screenshot.png