Skip to content

Instantly share code, notes, and snippets.

@hailiang-wang
Created March 28, 2020 09:16
Show Gist options
  • Save hailiang-wang/0b5d2b8eb1aa603405337c7359365c93 to your computer and use it in GitHub Desktop.
Save hailiang-wang/0b5d2b8eb1aa603405337c7359365c93 to your computer and use it in GitHub Desktop.
Concat multi videos as one
#! /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
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