1
0
Fork 0
dotfiles/home/programs/scripts/mp4concat
2023-09-12 00:05:25 +02:00

14 lines
210 B
Bash
Executable file

#!/bin/sh
set -eu
tmpfile="_mp4-concat.tmp"
printf '' >"$tmpfile"
for f in "$@"; do
echo "file '$f'" >>"$tmpfile"
done
ffmpeg -f concat -safe 0 -i "$tmpfile" -c copy mp4concat_output.mp4
rm -f "$tmpfile"