projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat(user/bkotslu):v0.0.1: Add OTS lookup script
[BK-2020-03.git]
/
unitproc
/
bk_export_audio.sh
diff --git
a/unitproc/bk_export_audio.sh
b/unitproc/bk_export_audio.sh
index 927556e4afc6e5e706e88a64851da60077030693..140a63dd8027dd974edd33225410af81bfe02b1d 100755
(executable)
--- a/
unitproc/bk_export_audio.sh
+++ b/
unitproc/bk_export_audio.sh
@@
-1,7
+1,7
@@
#!/bin/bash
# Desc: Extracts audio from video files
# Usage: bk_export_audio.sh [input_dir] ([output_dir])
#!/bin/bash
# Desc: Extracts audio from video files
# Usage: bk_export_audio.sh [input_dir] ([output_dir])
-# Version: 0.1.
2
+# Version: 0.1.
3
# Depends: bash 5.1.16, GNU Coreutils (8.32)
# Plumbing
# Depends: bash 5.1.16, GNU Coreutils (8.32)
# Plumbing
@@
-311,7
+311,7
@@
main() {
yell "DEBUG:dir_out:$dir_out";
while read -r file; do
yell "DEBUG:count_jobs:$(count_jobs)";
yell "DEBUG:dir_out:$dir_out";
while read -r file; do
yell "DEBUG:count_jobs:$(count_jobs)";
- while [[ "$(count_jobs)" -ge $max_jobs ]]; do sleep 0.
1; done; # limit jobs
+ while [[ "$(count_jobs)" -ge $max_jobs ]]; do sleep 0.
01s; done; # limit jobs
job "$file" "$dir_out" &
done < <(find "$dir_in" -type f);
job "$file" "$dir_out" &
done < <(find "$dir_in" -type f);