Screen recording does not work when running in a vm
Fedora 40 installed in gnome-boxes, gnome-shell-46~beta-6.fc40.x86_64.
Trying to record a screen results in an empty mp4 file being saved and a "Screencast failed to start" notification being displayed after a while.
Here are some related logs from system journal:
gjs[8750]: MESA: error: ZINK: failed to choose pdev
gjs[8750]: libEGL warning: egl: failed to create dri2 screen
pipewire[2214]: pw.context: params Spa:Enum:ParamId:EnumFormat: 0:0 Nepřípustný argument (input format (no more input formats))
pipewire[2214]: pw.context: Object: size 432, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
pipewire[2214]: pw.context: Id 2 (Spa:Enum:MediaType:video)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
pipewire[2214]: pw.context: Id 1 (Spa:Enum:MediaSubtype:raw)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Enum, flags 00000000 40 8
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 0
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Enum, flags 00000000 148 4
pipewire[2214]: pw.context: Id 11 (Spa:Enum:VideoFormat:RGBA)
pipewire[2214]: pw.context: Id 11 (Spa:Enum:VideoFormat:RGBA)
pipewire[2214]: pw.context: Id 12 (Spa:Enum:VideoFormat:BGRA)
pipewire[2214]: pw.context: Id 7 (Spa:Enum:VideoFormat:RGBx)
pipewire[2214]: pw.context: Id 8 (Spa:Enum:VideoFormat:BGRx)
pipewire[2214]: pw.context: Id 13 (Spa:Enum:VideoFormat:ARGB)
pipewire[2214]: pw.context: Id 14 (Spa:Enum:VideoFormat:ABGR)
pipewire[2214]: pw.context: Id 9 (Spa:Enum:VideoFormat:xRGB)
pipewire[2214]: pw.context: Id 10 (Spa:Enum:VideoFormat:xBGR)
pipewire[2214]: pw.context: Id 65 (Spa:Enum:VideoFormat:GBRA)
pipewire[2214]: pw.context: Id 48 (Spa:Enum:VideoFormat:GBR)
pipewire[2214]: pw.context: Id 15 (Spa:Enum:VideoFormat:RGB)
pipewire[2214]: pw.context: Id 16 (Spa:Enum:VideoFormat:BGR)
pipewire[2214]: pw.context: Id 29 (Spa:Enum:VideoFormat:RGB16)
pipewire[2214]: pw.context: Id 30 (Spa:Enum:VideoFormat:BGR16)
pipewire[2214]: pw.context: Id 6 (Spa:Enum:VideoFormat:AYUV)
pipewire[2214]: pw.context: Id 2 (Spa:Enum:VideoFormat:I420)
pipewire[2214]: pw.context: Id 3 (Spa:Enum:VideoFormat:YV12)
pipewire[2214]: pw.context: Id 23 (Spa:Enum:VideoFormat:NV12)
pipewire[2214]: pw.context: Id 24 (Spa:Enum:VideoFormat:NV21)
pipewire[2214]: pw.context: Id 51 (Spa:Enum:VideoFormat:NV16)
pipewire[2214]: pw.context: Id 60 (Spa:Enum:VideoFormat:NV61)
pipewire[2214]: pw.context: Id 4 (Spa:Enum:VideoFormat:YUY2)
pipewire[2214]: pw.context: Id 5 (Spa:Enum:VideoFormat:UYVY)
pipewire[2214]: pw.context: Id 17 (Spa:Enum:VideoFormat:Y41B)
pipewire[2214]: pw.context: Id 18 (Spa:Enum:VideoFormat:Y42B)
pipewire[2214]: pw.context: Id 20 (Spa:Enum:VideoFormat:Y444)
pipewire[2214]: pw.context: Id 25 (Spa:Enum:VideoFormat:GRAY8)
pipewire[2214]: pw.context: Id 27 (Spa:Enum:VideoFormat:GRAY16_LE)
pipewire[2214]: pw.context: Id 26 (Spa:Enum:VideoFormat:GRAY16_BE)
pipewire[2214]: pw.context: Id 39 (Spa:Enum:VideoFormat:ARGB64)
pipewire[2214]: pw.context: Id 34 (Spa:Enum:VideoFormat:A420)
pipewire[2214]: pw.context: Id 62 (Spa:Enum:VideoFormat:P010_10LE)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16383x16383
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 2147483647/1
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:None, flags 00000000 24 8
pipewire[2214]: pw.context: Fraction 30/1
pipewire[2214]: pw.context: Object: size 344, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
pipewire[2214]: pw.context: Id 2 (Spa:Enum:MediaType:video)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
pipewire[2214]: pw.context: Id 1 (Spa:Enum:MediaSubtype:raw)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Enum, flags 00000000 40 8
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 0
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Enum, flags 00000000 64 4
pipewire[2214]: pw.context: Id 11 (Spa:Enum:VideoFormat:RGBA)
pipewire[2214]: pw.context: Id 11 (Spa:Enum:VideoFormat:RGBA)
pipewire[2214]: pw.context: Id 12 (Spa:Enum:VideoFormat:BGRA)
pipewire[2214]: pw.context: Id 7 (Spa:Enum:VideoFormat:RGBx)
pipewire[2214]: pw.context: Id 8 (Spa:Enum:VideoFormat:BGRx)
pipewire[2214]: pw.context: Id 13 (Spa:Enum:VideoFormat:ARGB)
pipewire[2214]: pw.context: Id 14 (Spa:Enum:VideoFormat:ABGR)
pipewire[2214]: pw.context: Id 9 (Spa:Enum:VideoFormat:xRGB)
pipewire[2214]: pw.context: Id 10 (Spa:Enum:VideoFormat:xBGR)
pipewire[2214]: pw.context: Id 15 (Spa:Enum:VideoFormat:RGB)
pipewire[2214]: pw.context: Id 16 (Spa:Enum:VideoFormat:BGR)
pipewire[2214]: pw.context: Id 39 (Spa:Enum:VideoFormat:ARGB64)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16383x16383
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 2147483647/1
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:None, flags 00000000 24 8
pipewire[2214]: pw.context: Fraction 30/1
pipewire[2214]: pw.context: Object: size 304, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
pipewire[2214]: pw.context: Id 2 (Spa:Enum:MediaType:video)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
pipewire[2214]: pw.context: Id 1 (Spa:Enum:MediaSubtype:raw)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:modifier (131074), flags 00000018
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Enum, flags 00000000 40 8
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 72057594037927935
pipewire[2214]: pw.context: Long 0
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:None, flags 00000000 20 4
pipewire[2214]: pw.context: Id 2 (Spa:Enum:VideoFormat:I420)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16x16
pipewire[2214]: pw.context: Rectangle 16383x16383
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Fraction 2147483647/1
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:None, flags 00000000 24 8
pipewire[2214]: pw.context: Fraction 30/1
pipewire[2214]: pw.context: params Spa:Enum:ParamId:EnumFormat: 1:0 Nepřípustný argument (output format (no more input formats))
pipewire[2214]: pw.context: Object: size 216, type Spa:Pod:Object:Param:Format (262147), id Spa:Enum:ParamId:EnumFormat (3)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaType (1), flags 00000000
pipewire[2214]: pw.context: Id 2 (Spa:Enum:MediaType:video)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:mediaSubtype (2), flags 00000000
pipewire[2214]: pw.context: Id 1 (Spa:Enum:MediaSubtype:raw)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:format (131073), flags 00000000
pipewire[2214]: pw.context: Id 8 (Spa:Enum:VideoFormat:BGRx)
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:size (131075), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Rectangle 480x250
pipewire[2214]: pw.context: Rectangle 480x250
pipewire[2214]: pw.context: Rectangle 480x250
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:framerate (131076), flags 00000000
pipewire[2214]: pw.context: Fraction 0/1
pipewire[2214]: pw.context: Prop: key Spa:Pod:Object:Param:Format:Video:maxFramerate (131077), flags 00000000
pipewire[2214]: pw.context: Choice: type Spa:Enum:Choice:Range, flags 00000000 40 8
pipewire[2214]: pw.context: Fraction 60/1
pipewire[2214]: pw.context: Fraction 1/1
pipewire[2214]: pw.context: Fraction 60/1
pipewire[2214]: pw.link: (62.0.0 -> 64.0.0) negotiating -> error (no more input formats) (configure-configure)