Skip to content

Commit ae860f7

Browse files
authored
too parallel jobs
1 parent ad1aff4 commit ae860f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/gestionar_show.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def process_episode(files, folder_id, episode_number, database_url):
7070
mergeVideo.default_audio = True
7171
mergeVideo.errors_merge = []
7272

73-
video.ffmpeg_pool_audio_convert = Pool(processes=int(tools.core_to_use/1.5))
73+
video.ffmpeg_pool_audio_convert = Pool(processes=int(tools.core_to_use/1.7))
7474
video.ffmpeg_pool_big_job = Pool(processes=1)
7575
try:
7676
if tools.dev:
@@ -221,7 +221,7 @@ def process_files_in_folder(folder_files,database_url):
221221

222222
list_jobs = []
223223
global parrallel_jobs
224-
parrallel_jobs = ProcessPoolExecutor(max_workers=3)
224+
parrallel_jobs = ProcessPoolExecutor(max_workers=2)
225225

226226
for folder_id, files in resultats_finaux.items():
227227
# Lancer le traitement des fichiers en parallèle

src/video.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def extract_audio_in_part(self,language,exportParam,cutTime=None,asDefault=False
196196
nameFilesExtractCut.append(nameOutFile)
197197
cmd = baseCommand.copy()
198198
cmd.extend(["-map", "0:"+str(audio['StreamOrder']), nameOutFile])
199-
self.ffmpeg_progress_audio.append(ffmpeg_pool_audio_convert.apply_async(tools.launch_cmdExt_with_timeout_reload, (cmd,3,500)))
199+
self.ffmpeg_progress_audio.append(ffmpeg_pool_audio_convert.apply_async(tools.launch_cmdExt_with_timeout_reload, (cmd,3,560)))
200200
else:
201201
for audio in self.audios[language]:
202202
if audio["compatible"]:
@@ -210,7 +210,7 @@ def extract_audio_in_part(self,language,exportParam,cutTime=None,asDefault=False
210210
nameFilesExtractCut.append(nameOutFile)
211211
cmd = baseCommand.copy()
212212
cmd.extend(["-map", "0:"+str(audio['StreamOrder']), "-ss", cut[0], "-t", cut[1] , nameOutFile])
213-
self.ffmpeg_progress_audio.append(ffmpeg_pool_audio_convert.apply_async(tools.launch_cmdExt_with_timeout_reload, (cmd,3,500)))
213+
self.ffmpeg_progress_audio.append(ffmpeg_pool_audio_convert.apply_async(tools.launch_cmdExt_with_timeout_reload, (cmd,3,560)))
214214
cutNumber += 1
215215

216216
def remove_tmp_files(self,type_file=None):

0 commit comments

Comments
 (0)