Disabled HW accel for FFMPEG need impromevents
This commit is contained in:
@@ -57,6 +57,7 @@ class Refacer:
|
|||||||
self.use_num_cpus = 1
|
self.use_num_cpus = 1
|
||||||
self.sess_options.intra_op_num_threads = 1
|
self.sess_options.intra_op_num_threads = 1
|
||||||
print(f"CUDA mode with providers {self.providers}")
|
print(f"CUDA mode with providers {self.providers}")
|
||||||
|
"""
|
||||||
elif 'TensorrtExecutionProvider' in self.providers:
|
elif 'TensorrtExecutionProvider' in self.providers:
|
||||||
self.mode = RefacerMode.TENSORRT
|
self.mode = RefacerMode.TENSORRT
|
||||||
#self.use_num_cpus = 1
|
#self.use_num_cpus = 1
|
||||||
@@ -64,6 +65,7 @@ class Refacer:
|
|||||||
self.use_num_cpus = mp.cpu_count()-1
|
self.use_num_cpus = mp.cpu_count()-1
|
||||||
self.sess_options.intra_op_num_threads = int(self.use_num_cpus/3)
|
self.sess_options.intra_op_num_threads = int(self.use_num_cpus/3)
|
||||||
print(f"TENSORRT mode with providers {self.providers}")
|
print(f"TENSORRT mode with providers {self.providers}")
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
def __init_apps(self):
|
def __init_apps(self):
|
||||||
@@ -193,7 +195,7 @@ class Refacer:
|
|||||||
|
|
||||||
VIDEO_CODECS = [
|
VIDEO_CODECS = [
|
||||||
#'h264_videotoolbox', #osx HW acceleration
|
#'h264_videotoolbox', #osx HW acceleration
|
||||||
'h264_nvenc', #NVIDIA HW acceleration
|
#'h264_nvenc', #NVIDIA HW acceleration
|
||||||
#'h264_qsv', #Intel HW acceleration
|
#'h264_qsv', #Intel HW acceleration
|
||||||
#'h264_vaapi', #Intel HW acceleration
|
#'h264_vaapi', #Intel HW acceleration
|
||||||
#'h264_omx', #HW acceleration
|
#'h264_omx', #HW acceleration
|
||||||
|
|||||||
BIN
testsrc.mp4
Normal file
BIN
testsrc.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user