Update transcode_bench.py

This commit is contained in:
2025-10-12 20:18:41 +13:00
parent 084f3d381e
commit fb8e0404a6

View File

@@ -194,7 +194,7 @@ class HardwareAcceleration:
if not os.access(device, os.R_OK | os.W_OK): if not os.access(device, os.R_OK | os.W_OK):
return (False, return (False,
f"VA-API device {device} exists but not accessible. Run: sudo usermod -a -G render $USER (then logout/login)", f"VA-API device {device} exists but not accessible. Run: sudo usermod -a -G render $USER (then logout/login)",
'') '', '', False)
# Test VA-API for both encoding and decoding # Test VA-API for both encoding and decoding
try: try:
@@ -528,7 +528,7 @@ def main():
try: try:
# Run benchmark # Run benchmark
benchmark = Benchmark(test_video, encoder, hwaccel_args, accel_name) benchmark = Benchmark(test_video, encoder, hwaccel_args, accel_name, hw_decode)
max_streams = benchmark.find_max_streams(args.min_fps) max_streams = benchmark.find_max_streams(args.min_fps)
# Display results # Display results