Currrently trying this out in a virtual machine w/ gpu passthrough. Seems the logic for detecting known GPUs assumes the vendor key always exists. It does not. Should probably either fail gracefully or should just ignore. Seems manually selecting GPU doesn't actually bypass this.
Using Jellyfin FFmpeg binary "/usr/lib/jellyfin-ffmpeg/ffmpeg"
Using temporary video directory "/home/andrew/hwatest"
Using JSON output file "out.json"
Traceback (most recent call last):
File "/home/andrew/hwatest/hwatest/hwatest.py", line 639, in <module>
main()
File "/home/andrew/hwatest/hwatest/hwatest.py", line 635, in main
return cli(obj={})
File "/home/andrew/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/andrew/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/andrew/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/andrew/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/andrew/hwatest/hwatest/hwatest.py", line 622, in cli
results = benchmark(ffmpeg_path, video_path, gpu_idx)
File "/home/andrew/hwatest/hwatest/hwatest.py", line 297, in benchmark
all_results = get_hwinfo(all_results, ffmpeg)
File "/home/andrew/hwatest/hwatest/hwatest.py", line 281, in get_hwinfo
if element["vendor"] not in [
KeyError: 'vendor'
[
{
"id" : "display:0",
"class" : "display",
"claimed" : true,
"handle" : "PCI:0000:00:02.0",
"description" : "VGA compatible controller",
"product" : "bochs-drmdrmfb",
"physid" : "2",
"businfo" : "pci@0000:00:02.0",
"logicalname" : "/dev/fb0",
"version" : "02",
"width" : 32,
"clock" : 33000000,
"configuration" : {
"depth" : "32",
"driver" : "bochs-drm",
"latency" : "0",
"resolution" : "800,600"
},
"capabilities" : {
"vga_controller" : true,
"bus_master" : "bus mastering",
"rom" : "extension ROM",
"fb" : "framebuffer"
}
},
{
"id" : "display:1",
"class" : "display",
"claimed" : true,
"handle" : "PCI:0000:00:08.0",
"description" : "VGA compatible controller",
"product" : "HD Graphics P530",
"vendor" : "Intel Corporation",
"physid" : "8",
"businfo" : "pci@0000:00:08.0",
"version" : "06",
"width" : 64,
"clock" : 33000000,
"configuration" : {
"driver" : "i915",
"latency" : "0"
},
"capabilities" : {
"vga_controller" : true,
"bus_master" : "bus mastering",
"cap_list" : "PCI capabilities listing",
"rom" : "extension ROM"
}
}
]