adb shell screenrecord command can be used to record Android phone videos
Screenrecord is a shell command that supports Android4.4 (API level 19) and supports video formats: MP4
adb shell Screenrecord--help can see the relevant help information
ADB Shell Screenrecord/sdcard/demo.mp4
Record phone screen, video format mp4, stored in the phone SD card, the default recording time is 180s
adb shell Screenrecord--bit-rate 6000000/sdcard/demo.mp4
Specifies that the video has a bit rate of 6Mbps, and if not specified, the default is 4Mbps
ADB shell Screenrecord--size 1280*720 /sdcard/demo.mp4
Record video with resolution of 1280*720, if you do not specify the default phone resolution
adb shell Screenrecord--time-limit 10/sdcard/demo.mp4
Limit video recording time to 10s, if not limited, default 180s
adb shell Screenrecord--time-limit--verbose/sdcard/demo.mp4
Limit video recording time to 10s and display relevant log information at the command line
ADB pull /sdcard/demo.mp4 d:/
Export Video to D-Drive
Record your phone's screen video using adb