15

我嘗試從終端創建視頻,但無法成功。它會給終端帶來這樣的錯誤。嘗試使用adb shell screenrecord進行視頻錄製Android 4.4

adb shell screenrecord /sdcard/screenshotyyyy.mp4 
ERROR: unable to create encoder input surface (err=-38) 
WARNING: failed at 320x480, retrying at 720x1280 
ERROR: unable to create encoder input surface (err=-38) 
+0

可能適合http://android.stackexchange.com/questions/tagged/adb – bummi

回答

14

的screenrecord功能不會在AOSP模擬器上工作,因爲軟件AVC編碼器不支持必要的功能。如this bug所述,screenrecord二進制文件將從未來的仿真器分發中刪除,以避免混淆。

我不希望支持在不久的將來被添加,因爲這需要編解碼器中的一堆工作。