Update transcode_bench.py
This commit is contained in:
@@ -194,7 +194,7 @@ class HardwareAcceleration:
|
||||
if not os.access(device, os.R_OK | os.W_OK):
|
||||
return (False,
|
||||
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
|
||||
try:
|
||||
@@ -528,7 +528,7 @@ def main():
|
||||
|
||||
try:
|
||||
# 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)
|
||||
|
||||
# Display results
|
||||
|
Reference in New Issue
Block a user