Disabled HW accel for FFMPEG need impromevents

This commit is contained in:
Xavi Vinaixa
2023-06-06 12:36:47 +02:00
parent d9884e41fe
commit 4e833ec3d1
2 changed files with 3 additions and 1 deletions

View File

@@ -57,6 +57,7 @@ class Refacer:
self.use_num_cpus = 1
self.sess_options.intra_op_num_threads = 1
print(f"CUDA mode with providers {self.providers}")
"""
elif 'TensorrtExecutionProvider' in self.providers:
self.mode = RefacerMode.TENSORRT
#self.use_num_cpus = 1
@@ -64,6 +65,7 @@ class Refacer:
self.use_num_cpus = mp.cpu_count()-1
self.sess_options.intra_op_num_threads = int(self.use_num_cpus/3)
print(f"TENSORRT mode with providers {self.providers}")
"""
def __init_apps(self):
@@ -193,7 +195,7 @@ class Refacer:
VIDEO_CODECS = [
#'h264_videotoolbox', #osx HW acceleration
'h264_nvenc', #NVIDIA HW acceleration
#'h264_nvenc', #NVIDIA HW acceleration
#'h264_qsv', #Intel HW acceleration
#'h264_vaapi', #Intel HW acceleration
#'h264_omx', #HW acceleration

BIN
testsrc.mp4 Normal file

Binary file not shown.