diff options
Diffstat (limited to 'vidconcat.sh')
| -rwxr-xr-x | vidconcat.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vidconcat.sh b/vidconcat.sh index 2347ebc..d400fbf 100755 --- a/vidconcat.sh +++ b/vidconcat.sh @@ -1,6 +1,6 @@ #!/bin/bash #this script will concatenate videos listed in file vids.txt in this folder into one video -#TODO generate the list automatically +#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." @@ -8,7 +8,7 @@ function printHelp() { echo " file \'path/to/file.whatever\'" echo "options: " echo " -h: display help" - echo " -f [format]: filetype output" + echo " -f [format]: filetype output" } if [ ! -f ./vids.txt ]; then @@ -18,3 +18,4 @@ fi d=`date +%s` ffmpeg -f concat -safe 0 -i vids.txt -c copy vids-concated-${d}.mp4 +#ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]concat=n=2:v=1:a=0[v]" -map "[v]" output.mp4 |
