Skip to content

Instantly share code, notes, and snippets.

@denyago
Last active April 12, 2021 11:52
Show Gist options
  • Save denyago/9769f2d1b7fb7ef574d11a4f3fe6f2f2 to your computer and use it in GitHub Desktop.
Save denyago/9769f2d1b7fb7ef574d11a4f3fe6f2f2 to your computer and use it in GitHub Desktop.
Screencast from Android

Screancasting from Android

There are 2 ways to capture video streams, but both have the same source adb shell screenrecord.

Important: device must be POWERFULL!

This will use "Raw frames". It can wait for user to continue

adb shell screenrecord --size=360x640 --output-format=raw-frames - | mplayer -demuxer rawvideo -rawvideo w=360:h=640:format=rgb24 -

This will use H264, but when cache is empty, it will quit.

adb shell screenrecord --output-format=h264  - | mplayer -cache 5120 -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment