如何对 VirtualBox 会话进行视频捕获?
How to make a video capture of a VirtualBox session?
我正在寻找一种启动虚拟机并将其会话记录为视频的方法。我知道角落里有一个小相机图标,但我正在寻找一种方法来记录它,所以需要一个命令行选项。我浏览了 VirtualBox 手册,但看不到适当的命令。
我找到了拍摄屏幕的选项
VBoxManage controlvm <vm name> screenshotpng <filename>.png
仍然找不到视频选项...请帮忙!
您需要的信息在文档的 8.8.4. Video Capture settings and in the section 8.13. VBoxManage controlvm 部分。
主要选项有:
--videocap on|off: This option enables or disables recording a VM session into a WebM/VP8 file. If this option is enabled, recording will start when the VM session is started.
--videocapfile : This option sets the filename VirtualBox uses to save the recorded content.
--videocapres x: This option sets the resolution (in pixels) of the recorded video.
--videocapmaxtime : This option sets the maximum time in milliseconds the video capturing will be enabled since activation. The capturing stops when the defined time interval has elapsed. If this value is zero the capturing is not limited by time.
运行
VBoxManage modifyvm <vm name> --videocap on
在停止的虚拟机上将在下次启动时激活视频捕获。这只会激活一次。
运行
VBoxManage controlvm <vm name> videocap on
在 运行 虚拟机上将开始视频捕获。
运行
VBoxManage controlvm <vm name> videocap off
在 运行 虚拟机上将停止视频捕获。
默认情况下,视频捕获记录在与 vm 文件相同目录中的 <vm name>.webm
文件中。
另请注意,在使用 modifyvm
时必须使用双破折号 (--
)(因为 videocap
、videocapfile
、videocapres
、.. . 是这里的选项)但是 not 当使用 controlvm
时(因为 videocap
, videocapfile
, videocapres
,... 是那里的子命令).
我正在寻找一种启动虚拟机并将其会话记录为视频的方法。我知道角落里有一个小相机图标,但我正在寻找一种方法来记录它,所以需要一个命令行选项。我浏览了 VirtualBox 手册,但看不到适当的命令。 我找到了拍摄屏幕的选项
VBoxManage controlvm <vm name> screenshotpng <filename>.png
仍然找不到视频选项...请帮忙!
您需要的信息在文档的 8.8.4. Video Capture settings and in the section 8.13. VBoxManage controlvm 部分。
主要选项有:
--videocap on|off: This option enables or disables recording a VM session into a WebM/VP8 file. If this option is enabled, recording will start when the VM session is started.
--videocapfile : This option sets the filename VirtualBox uses to save the recorded content.
--videocapres x: This option sets the resolution (in pixels) of the recorded video.
--videocapmaxtime : This option sets the maximum time in milliseconds the video capturing will be enabled since activation. The capturing stops when the defined time interval has elapsed. If this value is zero the capturing is not limited by time.
运行
VBoxManage modifyvm <vm name> --videocap on
在停止的虚拟机上将在下次启动时激活视频捕获。这只会激活一次。
运行
VBoxManage controlvm <vm name> videocap on
在 运行 虚拟机上将开始视频捕获。
运行
VBoxManage controlvm <vm name> videocap off
在 运行 虚拟机上将停止视频捕获。
默认情况下,视频捕获记录在与 vm 文件相同目录中的 <vm name>.webm
文件中。
另请注意,在使用 modifyvm
时必须使用双破折号 (--
)(因为 videocap
、videocapfile
、videocapres
、.. . 是这里的选项)但是 not 当使用 controlvm
时(因为 videocap
, videocapfile
, videocapres
,... 是那里的子命令).