Skip to content

Instantly share code, notes, and snippets.

@HomerJSimpson
Last active August 29, 2015 14:12
Show Gist options
  • Save HomerJSimpson/34883698791456caf6ff to your computer and use it in GitHub Desktop.
Save HomerJSimpson/34883698791456caf6ff to your computer and use it in GitHub Desktop.
Convert avi to mp4 copying video and re-encoding the audio as aac

Convert avi to mp4 copying video and re-encoding the audio as aac

        ffmpeg \
                -fflags +genpts `# http://superuser.com/a/710087` \
                -i Hawaii.Five-0.2010.S01E01.avi \
                -vcodec copy `# copy the video` \
                -acodec aac -strict -2 `# re-encode the audio as aac` \
                Hawaii.Five-0.2010.S01E01.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment