[question]:
~ $ adb shell screenrecord /sdcard/test.mp4
/system/bin/sh: screenrecord: inaccessible or not found
This is because many mobile phones recycle the screenrecord function for safety, so we can’t use the command line for screen recording.
Through the ADB shell LS/system/bin/command, you can see LS:/system/bin// screenrecord: permission denied, indicating that you really don’t have screen recording permission.
Another easy-to-use screen recording method
Installation (MAC OS only):
brew install scrcpy
If there is no ADB, you need to install it first:
brew cask install android-platform-tools
Run scrcpy
After installation, connect the computer to the mobile phone and execute scrcpy to see the real-time projection of the mobile phone on the computer:
scrcpy
Recording screen
If you want to record the screen, execute one of the following two commands:
scrcpy --record test.mp4
scrcpy -r test.mp4
You can also record the screen without turning on the real-time image display:
scrcpy --no-display --record file.mp4
scrcpy -Nr file.mkv
more
For more details, see scrcpy (Chinese version – & gt; scrcpy)
Read More:
- In windows, “cmake” is not an internal or external command, nor a runnable program or batch file.
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- Ant Design ‘cross env’ is not an internal or external command, nor is it an error reporting problem for a runnable program
- [solved] – bash: rabbitmq plugins: command not found or RA bbitmqctl:command not found
- Net prompt is not an internal or external command
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- When Maven hits the jar package, an error is reported when executing install, and the symbol cannot be found in a line
- Error 945 Database cannot be opened due to inaccessible files or insufficient memory or disk space
- An error is reported when executing MVN. The diamond operator is not supported in source-1.5
- [error handling] when logging into MySQL with CentOS command, an error 1045 (28000) is reported
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
- An error was reported on the command line of Vue when it first wrote a small project: expected indentation of 4 spaces but found 6
- The vscode installation plug-in liveserver specified browser reported an error and could not be found
- When centos7 uses the man search command, an error is reported no manual entry for XXXX
- When idea executes the command, an error is reported: CreateProcess error = 2. The system cannot find the specified file
- When the mybatis field contains an expression, an error is reported when it is stored in the database
- In idea, @ slf4j is used to report an error, but log is not found
- The software licensing service reported that the product SKU is not found
- Kotlin reported an error jsonexception using fastjason: default constructor not found
- An error is reported when passing data pages using Ajax: Vue is not defined