iOS录屏
xrecord-- 從 命令行 ( 包括iOS設備) 捕獲 OS X 上的視頻
下載腳本:
- git clone http://www.github.com/WPO-Foundation/xrecord
配置環境變量(如果不配置,執行命令需要加上路徑:如/Users/zhaoxu/xrecord/xrecord/bin/xrecord)
切換root用戶,配置全局命令
sudo -i #切換root命令
vim /etc/bashrc #編輯系統配置文件
增加一行命令:alias xrecord='/Users/zhaoxu/xrecord/xrecord/bin/xrecord',#配置全局命令別名,等號后邊路徑根據下載xrecord路徑保持一致
保存后,source bashrc,#永久激活命令別名
之后在任意路徑都可以直接使用xrecord命令了,不用指定路徑了
Usage: /Users/zhaoxu/xrecord/xrecord/bin/xrecord [options]
? -l, --list:? ? ?
? ? ? List available capture devices.
? -n, --name:? ? ?
? ? ? Device Name.
? -i, --id:? ? ? ?
? ? ? Device ID.
? -o, --out: ? ? ?
? ? ? Output File.
? -f, --force: ? ?
? ? ? Overwrite existing files.
? -q, --quicktime:
? ? ? Include QuickTime devices (necessary for iOS recording).
? -t, --time:? ? ?
? ? ? Recording time in seconds (records until stopped if not specified).
? -u, --quality: ?
? ? ? Recording quality (low, medium, high, photo - defaults to high)
? -d, --debug: ? ?
? ? ? Display debugging info to stderr.
? -h, --help:? ? ?
? ? ? Prints a help message.
?
開始命令:
xrecord --quicktime --id="1e1776ef5f5c00aefa15e1b79568f7ea7be8ba1a" --out="/Users/zhaoxu/test/iphone.mp4" --force
結束命令:
Ctrl + C
參考文檔
https://github.com/WPO-Foundation/xrecord
https://www.helplib.com/GitHub/article_124462
總結
- 上一篇: java miniui,JAVAEE工程
- 下一篇: 从零到一spark进阶之路(三) pys