concat video files with same codec

master
gutmet 2021-02-17 10:56:49 +01:00
parent 442e2b0d88
commit f3d72a0103
1 changed files with 18 additions and 0 deletions

18
concatVideos Executable file
View File

@ -0,0 +1,18 @@
#!/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"