Compare commits
3 commits
6c12abc834
...
8b75035416
Author | SHA1 | Date | |
---|---|---|---|
|
8b75035416 | ||
|
2f4be3d915 | ||
|
755e04fc60 |
2 changed files with 5 additions and 6 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue