diff options
Diffstat (limited to 'vidconcat.sh')
| -rwxr-xr-x | vidconcat.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vidconcat.sh b/vidconcat.sh new file mode 100755 index 0000000..2347ebc --- /dev/null +++ b/vidconcat.sh @@ -0,0 +1,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 |
