[英]Record IOS Simulator video and simulator audio in background
I need to record 100 separate videos of my simulator which is about 40 hours of high quality.我需要录制 100 个独立的模拟器视频,大约 40 小时的高质量视频。 I want to record video of Xcode simulator and system audio in the background.
我想在后台录制 Xcode 模拟器和系统音频的视频。 Since I need to use my computer at the same time I don't want to use tools like Camtasia or quick time.
因为我需要同时使用我的电脑,所以我不想使用像 Camtasia 或 quick time 这样的工具。 I am wondering if this is achievable.
我想知道这是否可以实现。 If so this will save my one month.
如果是这样,这将节省我一个月的时间。
You can achieve this by following.您可以通过以下方式实现此目的。
1.In simulator Menu Choose Hardware > Audio Input > System to use the same audio input as the Mac. 1.在模拟器菜单中选择硬件>音频输入>系统以使用与Mac相同的音频输入。
2.Open Terminal and navigate to the directory where you want to save video. 2.打开终端并导航到要保存视频的目录。
Run Command : xcrun simctl io booted recordVideo <filename>.<extension>
运行命令:
xcrun simctl io booted recordVideo <filename>.<extension>
It will start recording.To finish Press Control-C
.它将开始录制。完成按
Control-C
。 Video will save on current directory.视频将保存在当前目录中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.