Skip to content

Capture video and screenshots from Android devices and emulators.

License

Notifications You must be signed in to change notification settings

ds300/android-capture

Repository files navigation

android-capture

android-capture demo

android-capture makes it easy to capture video and screenshots from Android devices and emulators.

Quick Reference

  • Take a screenshot directly to the clipboard:

    npx android-capture image --copy

  • Record a video to ./new-scroll-behavior.mp4

    npx android-capture video new-scroll-behavior

Usage

$ npx android-capture video [<output-filename>] [...options]

or

$ npx android-capture image [<output-filename>] [...options]

Videos are limited to 3 minutes.

Prerequisites

You need to have Node and the Android developer tools installed. In particular, adb must be installed and available in your terminal path.

If you want to capture from a physical device, the device must be paired with your computer via USB debugging or Wireless debugging

Options

  • --copy (Screenshots only, macOS only, linux/windows contributions welcome!)

    Copies the screenshot to the clipboard. If no output path is given, no file will be saved.

  • --full-res (Video only)

    Records video in full-resolution. By default android-capture reduces the video resolution by 50%, which still offers great quality screen recording.

    May not work with emulators.

  • --open

    Opens the file after saving.

  • --no-countdown (Video only)

    Skips the '3...2...1...' countdown before starting to record.