Screen record Android Wear

泪湿孤枕 提交于 2019-11-28 17:59:05

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

set r=9 is better

ffmpeg -f rawvideo -pix_fmt rgb24 -s:v 280x280 -r 9 -i test.raw -c:v libx264 output.mp4 -y
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!