commit 3bded84d29966c72816f476eef9d86e748761b16 parent f7cc253bbc46f05ffcbdce73d983a5c749933fb5 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Fri, 21 Feb 2020 23:22:55 +0100 ffmpres: fixed concat preset Former-commit-id: d8fdba7ee4ffbd799e5693a6ac1be42d73e73d4b Diffstat:
M | scripts/ffmpres | | | 8 | +++++--- |
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/scripts/ffmpres b/scripts/ffmpres @@ -104,9 +104,11 @@ process_video() { "CONCAT") if [ $# -le 1 ]; then echo "Only one file supplied, need at least two." && exit 1; fi read -rp "Enter output filename: " outfile - for f in "$@"; do echo "file '$f'" >> /tmp/ffmpeg; done - ffmpeg -f concat -safe 0 -i /tmp/ffmpeg -c copy "$outfile" - rm /tmp/ffmpeg + set -x + tempfile="./ffmpeg-list-$RANDOM" + for f in "$@"; do echo "file '$f'" >> "$tempfile"; done + ffmpeg -f concat -safe 0 -i "$tempfile" -c copy "$outfile" + rm "$tempfile" break;; "CLIP") read -rp "From time: " starttime