qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Video and sound capture to a videofile through


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH] Video and sound capture to a videofile through ffmpeg
Date: Thu, 04 May 2017 16:01:52 +0200

On Do, 2017-05-04 at 13:41 +0300, Alex K wrote:
> Hello everyone,
> 
> I've made a patch that adds ability to record video of what's going on
> inside qemu. It uses ffmpeg libraries. Basically, the patch adds
> 2 new commands to the console:
> capture_start path framerate
> capture_stop
> 
> path is required
> framerate could be 24, 25, 30 or 60. Default is 60
> video codec is always h264
> 
> The patch uses ffmpeg so you will need to install these packages:
> ffmpeg libavformat-dev libavcodec-dev libavutil-dev libswscale-dev
> 
> This is my first time posting here, so please correct me if I'm doing
> something wrong

First, as others already mentioned, it would be better to do this
outside qemu, as vnc or spice client.  spice is probably the better
choice as spice supports passing the guest display as dma-buf, which
saves the encode-as-spice and decode-spice steps.  And the dma-bufs can
be passed to a hardware encoder.

Second, this must be a compile time option.  Breaking the build in case
ffmpeg is not installed isn't an option.

Third, supporting H.264 only is a non-starter too.  Due to the patent
situation you can't expect distros shipping ffmpeg with H.264 support
enabled.

cheers,
  Gerd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]