When executing:
adb -s localhost:4444 shell screenrecord /sdcard/dcim/rec.mp4
I get:
ERROR: unable to create video/avc codec instance
WARNING: failed at 280x280, retrying at 1280x720
ERROR: unable to create video/avc codec instance
Is it possible to record the screen on Android Wear?
Record your phone screenSwipe down twice from the top of your screen. Tap Screen record . You might need to swipe right to find it. If it's not there, tap Edit and drag Screen record to your Quick Settings.
Swipe down from the top of the screen twice and open Quick settings. 2. Tap Screen recording.
Open Play Store and install Record Video With Screen Off app. Tap on Allow to provide all the necessary permissions. Click on the record button to start recording video in the background while your screen is turned off. To turn off the recording, tap on the button again to stop it.
On the LG G Watch, here are some commands you can use to capture a video of the display on a watch with 280x280 display and MPlayer:
adb shell screenrecord --time-limit 30 --o raw-frames --verbose /sdcard/test.raw
adb pull /sdcard/test.raw myfile.raw
mplayer -demuxer rawvideo -rawvideo w=280:h=280:format=rgb24 myfile.raw
For a 320x320 watch with FFMPEG you can use this:
adb shell screenrecord --size 320x320 --o raw-frames /sdcard/test.raw
adb pull /sdcard/test.raw
ffmpeg -f rawvideo -vcodec rawvideo -s 320x320 -pix_fmt rgb24 -r 60 -i test.raw -an -c:v libx264 -filter:v -vf "format=fps=60,yuv420p" test.mp4
(Edited July 2015) This command should work on all Android Wear devices now http://www.tinmith.net/wayne/blog/2014/08/android-wear-screenrecord.htm
On LG G Watch 5.0.1 I use for record:
adb shell screenrecord --time-limit 30 --o raw-frames --verbose /sdcard/test.raw
For pull the video recorded:
adb pull /sdcard/test.raw
And finally convert to mp4 video with ffmpeg 2.5.3:
ffmpeg -f rawvideo -pix_fmt rgb24 -s:v 280x280 -r 25 -i test.raw -c:v libx264 output.mp4
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With