Compare commits

..

3 commits

Author SHA1 Message Date
Hippolyte Chauvin
8b75035416 Suppression du test 2023-05-12 14:00:52 +02:00
Hippolyte Chauvin
2f4be3d915 Parallélisation 2023-05-12 11:23:02 +02:00
Hippolyte Chauvin
755e04fc60 Attendre les derniers processus 2023-05-12 10:53:34 +02:00
2 changed files with 5 additions and 6 deletions

View file

@ -39,8 +39,11 @@ for file in **/*".${format_in}"; do
while [ "$(jobs -p | wc -l)" -ge 10 ]; do while [ "$(jobs -p | wc -l)" -ge 10 ]; do
sleep 1 sleep 1
done done
echo "$(basename "$file")"
output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}" output_file="${output}/$(dirname "$file")/$(basename "${file}" ".${format_in}").${format_out}"
mkdir -p "$(dirname "${output_file}")" mkdir -p "$(dirname "${output_file}")"
ffmpeg -i "$file" $options "${output_file}" & ffmpeg -loglevel quiet -i "$file" $options "$output_file" &
done done
wait

View file

@ -60,9 +60,5 @@ ssh_com=(
# Execution # Execution
set -x set -x
if port_is_free "${args[1]}"; then
"${ssh_com[@]}" "${ssh_com[@]}"
else
echo "Port is not free, skipping."
fi