柚子快報(bào)激活碼778899分享:adb 截屏和錄屏命令
柚子快報(bào)激活碼778899分享:adb 截屏和錄屏命令
### 開(kāi)始錄制命令:
adb shell screenrecord /sdcard/demo.mp4
說(shuō)明:錄制手機(jī)屏幕,視頻格式為mp4,存放到手機(jī)sd卡里,默認(rèn)錄制時(shí)間為180s
限制錄制時(shí)間:
參數(shù): --time-limit
adb shell screenrecord --time-limit 10 /sdcard/demo.mp4
說(shuō)明:限制視頻錄制時(shí)間為10s,如果不限制,默認(rèn)180s
指定視頻分辨率大?。?/p>
參數(shù): --size
adb shell screenrecord --size 1280*720 /sdcard/demo.mp4
說(shuō)明:錄制視頻,分辨率為1280*720,如果不指定默認(rèn)使用手機(jī)的分辨率,為獲得最佳效果,請(qǐng)使用設(shè)備上的高級(jí)視頻編碼(AVC)支持的大小
指定視頻的比特率
參數(shù): --bit-rate
adb shell screenrecord --bit-rate 6000000 /sdcard/demo.mp4
說(shuō)明:指定視頻的比特率為6Mbps,如果不指定,默認(rèn)為4Mbps. 你可以增加比特率以提高視頻質(zhì)量或?yàn)榱俗屛募《档捅忍芈?/p>
在命令行顯示log
參數(shù): --verbose
adb shell screenrecord --time-limit 10 --verbose /sdcard/demo.mp4
輸入以上命令,將可以看到這些信息。
Main display is 1080x1920 @59.16fps (orientation=0)
The max width/height supported by codec is 1920x1088
Configuring recorder for 1088x1920 video/avc at 4.00Mbps
Content area is 1080x1920 at offset x=4 y=0
Time limit reached
Encoder stopping; recorded 133 frames in 10 seconds
Stopping encoder and muxer
柚子快報(bào)激活碼778899分享:adb 截屏和錄屏命令
好文鏈接
本文內(nèi)容根據(jù)網(wǎng)絡(luò)資料整理,出于傳遞更多信息之目的,不代表金鑰匙跨境贊同其觀點(diǎn)和立場(chǎng)。
轉(zhuǎn)載請(qǐng)注明,如有侵權(quán),聯(lián)系刪除。