19 lines
319 B
Plaintext
19 lines
319 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
set -eu
|
||
|
|
||
|
fullpath="$1"
|
||
|
source fileextensions
|
||
|
|
||
|
timestamp=`stamp -filename`
|
||
|
tmplist="concatVideos-$timestamp.txt"
|
||
|
outfile="concatVideos-$timestamp.$extension"
|
||
|
|
||
|
for file in "$@"; do
|
||
|
echo "file '$file'" >> $tmplist
|
||
|
done
|
||
|
|
||
|
ffmpeg -f concat -safe 0 -i "$tmplist" -c copy "$outfile"
|
||
|
|
||
|
echo "outfile: $outfile"
|