1
0
Fork 0
dotfiles/home/programs/scripts/mp4concat

14 lines
210 B
Text
Raw Normal View History

2023-09-11 22:05:25 +00:00
#!/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"