- Go to ffmpegmac and download the binary.
- Copy ffmpeg to /usr/local/bin.
- Execute the following in Terminal (as admin):
sudo chown root:wheel /usr/local/bin/ffmpeg
sudo chmod 755 /usr/local/bin/ffmpeg
Now you have a working version of ffmpeg in the Terminal.
Now if you have mp4 files that need to be repacked without re-encoding them, open the terminal, change to the directory of the file and execute the following command (changing video.mp4 and newvideo.mp4 with titles of choice):
ffmpeg -i video.mp4 -acodec copy -vcodec copy newvideo.mp4