Skip to content

Instantly share code, notes, and snippets.

@tyrells
Created May 6, 2014 17:08
Show Gist options
  • Save tyrells/7cb6821c6d9c88cef7bd to your computer and use it in GitHub Desktop.
Save tyrells/7cb6821c6d9c88cef7bd to your computer and use it in GitHub Desktop.
How to extract audio from a .mp4 file
# 1. Find audio track number
MP4Box -info file.mp4
# 2. Extract raw audio track
MP4Box -raw 2 file.mp4
# 3. Package raw audio track into m4a container
MP4Box -add file_track2.aac#audio file.m4a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment