Many Android users need a reliable way to capture what’s happening on their device – whether it’s a bug demo, a tutorial, or a game highlight. The built‑in screen recorder that ships with recent Android versions is convenient, but it often lacks fine‑grained control over bitrate, resolution, or duration. Using adb (Android Debug Bridge) you can record the screen from a computer, adjust technical parameters, and avoid any need for root access.
Build number seven times, then go to Settings > System > Developer options > enable USB debugging.adb.adb devices. You should see your device’s serial number followed by device.
adb devices
List of devices attached
ABC123456789 device
unauthorized, unlock the phone and tap Allow USB debugging on the prompt.The screenrecord command supports several optional flags. Understanding them helps you avoid common pitfalls such as low‑quality video or premature termination.
--size WIDTHxHEIGHT – Sets the output resolution. If omitted, the device records at its native resolution.--bit-rate BITRATE – Bitrate in bits per second (default 4 Mbps). Higher bitrate improves quality but creates larger files.--time-limit SECONDS – Maximum duration (default 180 seconds). Android caps recordings at 180 seconds unless you use the --time-limit flag (max 1800 seconds on most devices).--rotate – Rotates the video 90° clockwise; useful for portrait‑only apps on a landscape‑oriented device.Example choice for a 1080p, 8 Mbps, 2‑minute capture:
--size 1920x1080 --bit-rate 8000000 --time-limit 120
screenrecord command via ADB shell. The command writes the video file to the device’s /sdcard/ directory.
adb shell screenrecord /sdcard/record.mp4
This starts an indefinite recording (up to the default 180 seconds). To apply custom parameters, include them after screenrecord:
adb shell screenrecord \
--size 1920x1080 \
--bit-rate 8000000 \
--time-limit 120 \
/sdcard/record.mp4
adb shell "screenrecord /sdcard/record.mp4 &"
Later, stop it with adb shell pkill -l2 screenrecord.adb pull /sdcard/record.mp4 ./record.mp4
The file will appear in the current directory.Open the record.mp4 file with your favorite media player (VLC, MPV, etc.). Check for:
screenrecord captures internal audio only on Android 10+; on older versions you’ll get silent video.Most Android 11+ devices ship with a native screen recorder accessed from the Quick Settings panel. The built‑in tool is convenient but lacks the ability to set bitrate or resolution, and it may embed a watermark on some OEM skins. The ADB method described above gives you full control and produces a clean, share‑ready file.
This error means the device’s screenrecord binary is missing – typically on very old Android versions (< 4.4) or custom ROMs that stripped it. In that case, consider using a third‑party screen‑recording app from the Play Store.
Possible causes:
/sdcard/. Free up space or record to a different folder on an external SD card (if available): adb shell screenrecord /storage/XXXX-XXXX/record.mp4.Often caused by a locked screen. Make sure the device stays awake:
adb shell settings put system stay_on_while_plugged_in 1 before starting the capture.If you see no audio despite the OS supporting internal capture, check the following:
This can happen if the device is running Android 11+ with scoped storage restrictions. Use the run-as trick or copy the file to a public directory first:
adb shell cp /sdcard/record.mp4 /storage/emulated/0/Download/record.mp4
Then pull from the Download folder.
screenrecord does not expose a direct frame‑rate flag, but you can approximate it by adjusting --bit-rate and resolution. Higher bitrate yields smoother motion.adb logcat capture and sync timestamps later.
adb logcat -v time > log.txt &
adb shell screenrecord /sdcard/record.mp4
Recording writes a temporary file to the device’s internal storage. Deleting the file before pulling it will lose the video. Always verify the file exists (adb shell ls /sdcard/record.mp4) before pulling.
While the process is safe for the OS, keep the following in mind:
screenrecord while the device is under heavy load (e.g., gaming) may affect performance slightly.Using ADB’s screenrecord tool gives you a lightweight, root‑free way to capture exactly what you need on any Android device. By controlling bitrate, resolution, and duration, you can produce professional‑grade recordings without third‑party apps, and you retain full command over where the file ends up. If you encounter any of the issues covered in the troubleshooting section, follow the suggested fixes, and you’ll have a reliable screen‑recording workflow for tutorials, bug reports, or personal archives.









