13 lines
210 B
Bash
Executable file
13 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"
|