Skip to content

Instantly share code, notes, and snippets.

@hailiang-wang
Created March 28, 2020 09:16
Show Gist options
  • Select an option

  • Save hailiang-wang/0b5d2b8eb1aa603405337c7359365c93 to your computer and use it in GitHub Desktop.

Select an option

Save hailiang-wang/0b5d2b8eb1aa603405337c7359365c93 to your computer and use it in GitHub Desktop.

Revisions

  1. hailiang-wang created this gist Mar 28, 2020.
    15 changes: 15 additions & 0 deletions concat.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #! /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
    2 changes: 2 additions & 0 deletions mylist.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    file 'zoom_0_0.mp4'
    file 'zoom_0_1.mp4'