Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Screen record Android Wear

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?

like image 547
powder366 Avatar asked Aug 25 '14 17:08

powder366


People also ask

Can Android's screen record?

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.

Can you screen record on Android LG?

Swipe down from the top of the screen twice and open Quick settings. 2. Tap Screen recording.

How can I record my Android phone if its off?

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.


2 Answers

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

like image 89
Wayne Piekarski Avatar answered Oct 17 '22 23:10

Wayne Piekarski


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
like image 26
olidroide Avatar answered Oct 18 '22 01:10

olidroide