Created
March 28, 2020 09:16
-
-
Save hailiang-wang/0b5d2b8eb1aa603405337c7359365c93 to your computer and use it in GitHub Desktop.
Concat multi videos as one
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
########################################### | |
# | |
########################################### | |
# constants | |
baseDir=$(cd `dirname "$0"`;pwd) | |
# functions | |
# main | |
[ -z "${BASH_SOURCE[0]}" -o "${BASH_SOURCE[0]}" = "$0" ] || return | |
cd $baseDir | |
rm output.mp4 | |
ls | |
ffmpeg -f concat -safe 0 -i mylist.txt -c copy output.mp4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
file 'zoom_0_0.mp4' | |
file 'zoom_0_1.mp4' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment