Skip to contentSkip to conversation

virt: Encode a webm video from vm screenshots

PATCH New Lucas Meneghel Rodrigues 1 participant 1 message Nov 4, 2011 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virt: Encode a webm video from vm screenshots

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.

---
 client/tests/kvm/base.cfg.sample |    6 ++++
 client/virt/virt_env_process.py  |   54 +++++++++++++++++++++++++++++++++----
 2 files changed, 54 insertions(+), 6 deletions(-)
client/tests/kvm/base.cfg.sample +6 -0
index 6b3f9fd..7827cc8 100644
@@ -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 = no
+encode_video_framerate = 1
+keep_video_files = no
+keep_video_files_on_error = yes
+
 # Default remote shell port (SSH under linux)
 shell_port = 22
 
client/virt/virt_env_process.py +48 -6

102 lines not on this page · raw message

Signature · 1 line
1.7.7