Screen recording in Qubes VMs

42 views
Skip to first unread message

Claudia

unread,
Jan 19, 2020, 6:16:46 PM1/19/20
to qubes...@googlegroups.com
I was wondering if anyone has had any luck with recording screen captures in Qubes. I tried the following FFmpeg line, which worked fine except it's only capturing a 640x480 corner of the screen. I'm not sure if this is Qubes-related or if I'm just not using it correctly. Note, I'm running this inside a Fedora VM, meaning other VMs' windows seem to be invisible (which is what I want in this case). Also, window borders and anything else drawn by dom0 seems to be invisible, but window content appears to be captured fine apart from the capture area being too small.

$ ffmpeg -f x11grab -i :0.0 -vcodec libvpx -s 1920x1080 /tmp/ffout.webm
[...]
Input #0, x11grab, from ':0.0':
Duration: N/A, start: 1579388031.870036, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 640x480, 29.97 fps, 29.97 tbr, 1000k tbn, 1000k tbc
File '/tmp/ffout.webm' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[libvpx @ 0x56c7902a5900] v1.8.1
Output #0, webm, to '/tmp/ffout.webm':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: vp8 (libvpx), yuv420p, 1920x1080, q=-1--1, 200 kb/s, 29.97 fps, 1k tbn, 29.97 tbc
Metadata:
encoder : Lavc58.35.100 libvpx
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[...]

Even though I'm setting the output resolution to my screen size, it seems to be detecting the input resolution at 640x480, and I haven't found any way to specify input resolution. I've tried with several different codec/container combinations but it still only captures the upper left corner.

I was wondering if it could have something to do with Qubes because of the way the desktop is shared by different VMs.

awokd

unread,
Jan 23, 2020, 9:18:21 AM1/23/20
to qubes...@googlegroups.com
Claudia:
> I was wondering if anyone has had any luck with recording screen captures in Qubes.

Don't think there is a canonical way, but it has come up on this list in
the past. See
https://www.mail-archive.com/qubes...@googlegroups.com/msg24980.html
for example.

--
- don't top post
Mailing list etiquette:
- trim quoted reply to only relevant portions
- when possible, copy and paste text instead of screenshots
Reply all
Reply to author
Forward
0 new messages