Skip to content

example

Hello.

I see "Hello and bye", but I hope you can add an examples/ dir with a basic example.

I am new to rust thus I am unable to follow without a basic working example that builds and runs.

I will clearly explain my goal:

I am trying to record a qemu session as a video (webm) like what openqa does, for e.g. https://openqa.opensuse.org/tests/4905737/video?filename=video.webm for https://openqa.opensuse.org/tests/4905737

Now I found two ways to do it.

One is to use qemu provied Dbus interface (I am new to dbus as well), and luckily I found https://gitlab.com/marcandre.lureau/qemu-display, and under that, a qemu-vnc binary, which gives me images in type RgbaImage = image::ImageBuffer<image::Rgba<u8>, Vec<u8>>; format source. (I mean removing all the vnc logic, and use the dbus related methods like ConsoleListenerHandler from that)

I wish to encode these RgbaImage images to a webm, until disconnect or program termination (signals).

Another way is to use some archaic vncrec-twibright written in c, last updated in 2006 or so. (I got it to build and run succesfully but I am afraid to maintain it on my own)

Hence, I begin my rust journey.

Edited by Phani Rithvij