virt: Encode a webm video from vm screenshots v2
PATCH 1/1 virt: Encode a webm video from vm screenshots v2
When we are debugging issues (notably during unattended installs), having to look individual screenshots is less than optimal. So introduce in virt tests the ability to get a webm file that can be played quite nicely and out of the box in recent versions of firefox and chromium.
In order to do that, move to a sequential screenshot naming policy for each vm, and encode videos at vm postprocessing stage.
In order to use that feature, the host needs to have a ffmpeg build sufficiently recent that can encode webm files. The infrastructure will do the best possible to find it out on your path.
Feature successfuly tested under Fedora 16.
Changes from v1:
* Fixed some last minute changes on parameter name
* Turns on the service by default
* Downgrade failure messages to info level
--- client/tests/kvm/base.cfg.sample | 6 ++++ client/virt/virt_env_process.py | 49 ++++++++++++++++++++++++++++++++++---- 2 files changed, 50 insertions(+), 5 deletions(-)
client/tests/kvm/base.cfg.sample +6 -0
@@ -86,6 +86,12 @@ screendump_quality = 30 screendump_temp_dir = /dev/shm screendump_verbose = no +# Encode video from vm screenshots (requires ffmpeg build that can encode webm) +encode_video_files = yes +encode_video_framerate = 1 +keep_video_files = yes +keep_video_files_on_error = yes + # Default remote shell port (SSH under linux) shell_port = 22
client/virt/virt_env_process.py +44 -5
94 lines not on this page · raw message
Signature · 1 line
1.7.7