Skip to content

Instantly share code, notes, and snippets.

@jpwain
Last active October 23, 2022 12:23
Show Gist options
  • Save jpwain/3d1ee8136a8652b17328fa8a792671d6 to your computer and use it in GitHub Desktop.
Save jpwain/3d1ee8136a8652b17328fa8a792671d6 to your computer and use it in GitHub Desktop.
Pipe Android device display to local Mac display using ffmpeg

On the Android device, enable Developer options, and enable USB debugging.

On the Mac:

$ brew install ffmpeg --with-ffplay

$ adb shell screenrecord --output-format=h264 - | ffplay - -x 720 -y 1280

Replace the 720 and 1280 with other values to scale the output as desired.

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