问题
I've been wondering, after trying this command on my Nexus 7:
adb shell screenrecord /sdcard/demo.mp4
Is there a way to record the screen AND audio of the tablet using the factory screenrecord
command? Checking the Android documentation, it says nothing about recording the audio too, but we all know the Android documentation is not that complete
回答1:
I could do it this way :
- connect the Android device to computer with a jack cable (headphone output to microphone input);
- record video with adb shell;
- record audio with Audacity (or anything else)
- then merge video and audio with a video editor (pitivi, openshot, avconv...)
回答2:
Jeff's answer seems to be the only way you can use through adb. But that force you to do some work (merge video + audio).
Another way is to directly use an android app:
- SCR Screen Recorder - official website - XDA - short review
- Mobizen for SAMSUNG - google play
- RecMe - google play
SCR Screen Recorder:
- pros :
- the only app that truly works for recording video + internal audio with all devices
- cons:
- banned from google play because of SELinux policy (see XDA - Google Play ban and "Dangerous app" warning)
- require root for recording internal audio
Mobizen for SAMSUNG:
- pros
- on google play store
- cons
- only the samsung version works for recording internal audio, the general or LG, XIAOMI version can't record internal audio
- still a beta feature
- require root for recording internal audio
RecMe:
- pros
- on google play store
- cons
- internal audio recording doesn't works on most devices
- require root for recording internal audio
Personally I tried a lot of apps and the only working for me is SCR Screen Recorder.
PS : all these apps works without root if not using internal audio.
回答3:
Unfortunately there is no way to do it, according to the documentation:
Note: Audio is not recorded with the video file.
来源:https://stackoverflow.com/questions/24200437/record-tablets-screen-and-audio