Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't capture video from Samsung S5 using adb screenrecord

Tags:

android

adb

Here is my command and the output:

shell@kltexzy:/sdcard $ screenrecord --verbose tmp.mp4                         
Main display is 1080x1920 @44.70fps (orientation=0)
Configuring recorder for 1080x1920 video at 4.00Mbps
ERROR: unable to configure codec (err=-2147483648)
WARNING: failed at 1080x1920, retrying at 720x1280
Configuring recorder for 720x1280 video at 4.00Mbps
Aborted
shell@kltexzy:/sdcard $

The "Aborted" message is displayed after about 10 seconds.

This is not the problem because I am not using an emulator.

This is a different error code.

The Galaxy S5 is brand new, just out of the box.

I tried different bit-rates and different screen sizes but that did not work.

Is adb screenrecord supported on this device? Everything I has so far read says that the only requirement for screenrecord is KitKat, which this device has.

like image 382
jsp Avatar asked Dec 31 '25 05:12

jsp


1 Answers

Turning off power save mode fixes it. Power save lowers the screen's frame rate, causing screenrecord binary to fail.

Hope this helps.

like image 109
Aaron Gillion Avatar answered Jan 02 '26 18:01

Aaron Gillion