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
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.