本文介绍了屏幕记录Android Wear的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当执行:
adb -s localhost:4444 shell screenrecord /sdcard/dcim/rec.mp4
我得到:
ERROR: unable to create video/avc codec instance
WARNING: failed at 280x280, retrying at 1280x720
ERROR: unable to create video/avc codec instance
是否可以记录在屏幕上Android Wear?
Is it possible to record the screen on Android Wear?
推荐答案
在LG的摹观察,这里有一些命令,你可以用它来捕捉显示的视频上观看与280x280显示屏和MPlayer的:
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
对于320x320起手表FFmpeg中您可以使用此:
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
(编辑2015年七月)此命令应该在所有的Android Wear设备现在 HTTP:/ /www.tinmith.net/wayne/blog/2014/08/android-wear-screenrecord.htm
(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
这篇关于屏幕记录Android Wear的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!