blob: 2347ebc4506e771d0268623c37d5a5a711f308f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
#this script will concatenate videos listed in file vids.txt in this folder into one video
#TODO generate the list automatically
function printHelp() {
echo "this program will concatenate a number of video files, as specified in a file vids.txt, into one. no arguments required. an mp4 file will be generated with a unique filename."
echo "in this directory must be a file name vids.txt which contains a list of the video filenames to be concated, where each line is like so: "
echo " file \'path/to/file.whatever\'"
echo "options: "
echo " -h: display help"
echo " -f [format]: filetype output"
}
if [ ! -f ./vids.txt ]; then
printHelp
exit 0
fi
d=`date +%s`
ffmpeg -f concat -safe 0 -i vids.txt -c copy vids-concated-${d}.mp4
|