Scrcpy ::: Recording Video And Taking Screen Shots

In order to record a video using scrcpy, type:

$ scrcpy --record file.mp4

For screenshots, type:

$ adb exec-out sreencap -p > screenshot.png