From 2f4be3d9150f175a762de530e548bd0c2365a752 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Fri, 12 May 2023 11:23:02 +0200 Subject: [PATCH] =?UTF-8?q?Parall=C3=A9lisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/convertofut | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/convertofut b/bin/convertofut index c9d3d75..df857f8 100755 --- a/bin/convertofut +++ b/bin/convertofut @@ -39,12 +39,11 @@ for file in **/*".${format_in}"; do while [ "$(jobs -p | wc -l)" -ge 10 ]; do sleep 1 done + echo "$(basename "$file")" output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}" mkdir -p "$(dirname "${output_file}")" - ffmpeg -i "$file" $options "${output_file}" & + ffmpeg -loglevel quiet -i "$file" $options "$output_file" & done -while [ "$(jobs -p)" ]; do - fg -done +wait