Skip to content

Instantly share code, notes, and snippets.

@sempixel
Last active August 22, 2017 13:12
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 sempixel/e37fcb4aeaf8795e5e8cadd3bbc1e445 to your computer and use it in GitHub Desktop.
Save sempixel/e37fcb4aeaf8795e5e8cadd3bbc1e445 to your computer and use it in GitHub Desktop.
Join 2 avi files with reindexing (mencoder, MacOS)
#!/bin/sh
cat "$1" "$2" > temp.avi
./mencoder -forceidx -oac copy -ovc copy temp.avi -o "$3";
rm temp.avi
@sempixel
Copy link
Author

Need mencoder binary

https://stefpause.com/apple/mac/mplayer-os-x-10rc1-and-mencoder-binaries/

Usage:

$ sh avi-join-reindex.sh part1.avi part2.avi joined.avi

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