Skip to content

Instantly share code, notes, and snippets.

@oguzoldev
Created July 31, 2018 09:25
Show Gist options
  • Save oguzoldev/187abf43bd083e1cb273743be3accad9 to your computer and use it in GitHub Desktop.
Save oguzoldev/187abf43bd083e1cb273743be3accad9 to your computer and use it in GitHub Desktop.

How to convert h264 file to m4v file

Installing ffmpeg on Mac OS X

Using Homebrew

The simplest way to install ffmpeg on Mac OS X is with Homebrew.

Once you have Homebrew installed install ffmpeg from the Terminal with the following:

$ brew install ffmpeg

Homebrew installs ffmpeg with many of the common codecs including H.264.

Convert h264 file to m4v file

After you can convert from the Terminal with the following:

$ ffmpeg -i input.h264 -acodec copy -vcodec copy output.m4v

You're done!

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