How do I record the VirtualBox screen to a file?

9

1

I'm using non-OSE VirtualBox which seems to support recording the VM screen to a file.

VBoxHeadless -c -f record.avi -s myvm

But somehow it complains with the following message:

Failed to load the video capture extension

Any idea how to enforce it?

igorp1024

Posted 2011-03-16T10:49:48.173

Reputation: 431

What operating system? – Simon Sheehan – 2011-08-14T19:21:42.023

It is ubuntu linux. – igorp1024 – 2011-08-17T09:11:41.637

Have you installed VirtulBox Guest Additions? – Sandeep Bansal – 2011-08-29T00:01:29.187

@Sandeep Bansal: sure – igorp1024 – 2011-09-12T15:14:18.203

Answers

7

The problem is in the VirtualBox distribution itself, which now lacks the required modules.

If you took a look in the module VBoxHeadless.cpp, you would see that for this to function, the following conditions must be fulfilled :

  1. VBOX_FFMPEG must be defined
  2. The VBoxFFmpegFB shared library must be available with entry-point VBoxRegisterFFmpegFB

In the thread VBoxHeadless "Failed to load the video capture extension" from 2009, someone named xantus has tried to create the required conditions by modifying the sources accordingly, but this didn't work.

I suggest that the proper way to go about it, is to address the developers on the VirtualBox forums and convince them to get it working again, although this option seems to have been abandoned since at least 2009.

harrymc

Posted 2011-03-16T10:49:48.173

Reputation: 306 093