projects
/
hevc-pipeline.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6e74b9
)
Cleanly handle no work
author
Jacob Casper
<dev@jacobcasper.com>
Tue, 3 May 2022 17:36:50 +0000
(12:36 -0500)
committer
Jacob Casper
<dev@jacobcasper.com>
Tue, 3 May 2022 17:36:50 +0000
(12:36 -0500)
hevc-pipeline.sh
patch
|
blob
|
blame
|
history
diff --git
a/hevc-pipeline.sh
b/hevc-pipeline.sh
index
3574233
..
a6cc09a
100755
(executable)
--- a/
hevc-pipeline.sh
+++ b/
hevc-pipeline.sh
@@
-4,6
+4,11
@@
mapfile -t hevc_films < <(ssh mbp 'find /srv/deluge/Downloads/ \( -name '"'"'*.m
# copy all streams from input 0 except subs and annotations
# -map -0:s -map -0:t \
+if [ ${#hevc_films[@]} -eq 0 ]; then
+ >&2 echo "no files to process"
+ exit 1
+fi
+
printf '%s\0' "${hevc_films[@]}" | xargs -0 -P 1 -I@ bash -c 'ssh mbp '"'"'cat "@"'"'"' |
ffmpeg \
-fflags +igndts \