@@ -138,8 +138,6 @@ async def take_ss(video_file, ss_nb) -> bool:
138138 "1" ,
139139 "-frames:v" ,
140140 "1" ,
141- "-threads" ,
142- f"{ max (1 , cpu_no // 2 )} " ,
143141 output ,
144142 ]
145143 cap_time += interval
@@ -178,8 +176,6 @@ async def get_audio_thumbnail(audio_file):
178176 "-an" ,
179177 "-vcodec" ,
180178 "copy" ,
181- "-threads" ,
182- f"{ max (1 , cpu_no // 2 )} " ,
183179 output ,
184180 ]
185181 try :
@@ -221,8 +217,6 @@ async def get_video_thumbnail(video_file, duration):
221217 "1" ,
222218 "-frames:v" ,
223219 "1" ,
224- "-threads" ,
225- f"{ max (1 , cpu_no // 2 )} " ,
226220 output ,
227221 ]
228222 try :
@@ -266,8 +260,6 @@ async def get_multiple_frames_thumbnail(video_file, layout, keep_screenshots):
266260 "1" ,
267261 "-f" ,
268262 "mjpeg" ,
269- "-threads" ,
270- f"{ max (1 , cpu_no // 2 )} " ,
271263 output ,
272264 ]
273265 try :
@@ -446,8 +438,6 @@ async def convert_video(self, video_file, ext, retry=False):
446438 "libx264" ,
447439 "-c:a" ,
448440 "aac" ,
449- "-threads" ,
450- f"{ max (1 , cpu_no // 2 )} " ,
451441 output ,
452442 ]
453443 if ext == "mp4" :
@@ -470,8 +460,6 @@ async def convert_video(self, video_file, ext, retry=False):
470460 "0" ,
471461 "-c" ,
472462 "copy" ,
473- "-threads" ,
474- f"{ max (1 , cpu_no // 2 )} " ,
475463 output ,
476464 ]
477465 if self ._listener .is_cancelled :
@@ -517,8 +505,6 @@ async def convert_audio(self, audio_file, ext):
517505 "pipe:1" ,
518506 "-i" ,
519507 audio_file ,
520- "-threads" ,
521- f"{ max (1 , cpu_no // 2 )} " ,
522508 output ,
523509 ]
524510 if self ._listener .is_cancelled :
@@ -597,8 +583,6 @@ async def sample_video(self, video_file, sample_duration, part_duration):
597583 "libx264" ,
598584 "-c:a" ,
599585 "aac" ,
600- "-threads" ,
601- f"{ max (1 , cpu_no // 2 )} " ,
602586 output_file ,
603587 ]
604588
@@ -662,8 +646,6 @@ async def split(self, f_path, file_, parts, split_size):
662646 "-2" ,
663647 "-c" ,
664648 "copy" ,
665- "-threads" ,
666- f"{ max (1 , cpu_no // 2 )} " ,
667649 out_path ,
668650 ]
669651 if not multi_streams :
0 commit comments