diff options
Diffstat (limited to 'video/ffconcat')
-rwxr-xr-x | video/ffconcat | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/video/ffconcat b/video/ffconcat new file mode 100755 index 0000000..7e903f6 --- /dev/null +++ b/video/ffconcat @@ -0,0 +1,17 @@ +#!/bin/sh +#for out; do true; done # get last argument +filelist=$(mktemp ${TMPDIR:-/tmp}/ffconcat.XXXXXX) || exit +pwd="$(pwd)" +for out; do + [ -e "$pwd/$out" ] \ + && files="$pwd/$out\n$files" \ + || ([ -e "$out" ] && files="$out\n$files") +done +echo $files | tail +2 | sed -n "s/\(.\+\)/file '\1'/p"# > $filelist + +ffmpeg \ + -f concat \ + -safe 0 \ + -i $filelist \ + -c copy \ + $out |