Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Try to Video Record using adb shell screenrecord Android 4.4

I am try to create a video from terminal but I can't succeed. It gives error on terminal like this.

adb shell screenrecord  /sdcard/screenshotyyyy.mp4
ERROR: unable to create encoder input surface (err=-38)
WARNING: failed at 320x480, retrying at 720x1280
ERROR: unable to create encoder input surface (err=-38)
like image 551
Amit Prajapati Avatar asked Nov 01 '13 09:11

Amit Prajapati


People also ask

Can Android's screen record?

Record your phone screenSwipe down twice from the top of your screen. Tap Screen record . You might need to swipe right to find it. If it's not there, tap Edit and drag Screen record to your Quick Settings.

How do you force record on Android?

If you have a Samsung or LG device, the feature may already exist without having to do anything. If you have Android 10, follow these steps: Swipe down to expand the Quick Settings menu and look for the Screen Recorder tile. It may be on any of the Quick Settings pages, so swipe to see additional pages.


1 Answers

The screenrecord feature doesn't work in the AOSP emulator, because the software AVC encoder doesn't support the necessary features. As noted in this bug, the screenrecord binary will be removed from future emulator distributions to avoid confusion.

I don't expect support to be added in the near future, as this requires a bunch of work in the codec.

like image 133
fadden Avatar answered Sep 26 '22 08:09

fadden