Skip to content

Instantly share code, notes, and snippets.

@mkaralevich
Last active April 1, 2017 11:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkaralevich/4dcc17ba454c3e1cca5a0ec4624f9598 to your computer and use it in GitHub Desktop.
Save mkaralevich/4dcc17ba454c3e1cca5a0ec4624f9598 to your computer and use it in GitHub Desktop.
Simple way to join videos

Video joiner

A simple way which allows you to join videos without rendering using terminal.

Prepare files

For a proper usage, video files should have the same format, frame rate, dimensions and bitrate.

Create list.txt to collect all the files you want to join:

file './FILE01.MP4'
file './FILE02.MP4'

Install dependencies

homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

ffmpeg:

brew install ffmpeg

In case of permission issue:

sudo chown -R USERNAME /usr/local
brew link ffmpeg

Go to folder with list.txt

cd PATH_TO_PARENT_FOLDER_OF_LIST.TXT

Run command

ffmpeg -f concat -safe 0 -i list.txt -c copy joined.mp4

Made together with exah.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment