Skip to content

Instantly share code, notes, and snippets.

@snsxn
Last active July 12, 2023 06:56
Show Gist options
  • Save snsxn/084572f02279fa8c801fa94fb9b10062 to your computer and use it in GitHub Desktop.
Save snsxn/084572f02279fa8c801fa94fb9b10062 to your computer and use it in GitHub Desktop.
FFmpeg convert audio file
# WAV to MP3
ffmpeg -i origin.wav -c:a libmp3lame -q:a 7 destination.mp3
# WAV to M4A (96k constant bitrate)
ffmpeg -i origin.wav -c:a libfdk_aac -b:a 96k destination.m4a
# WAV to M4A (variable bitrate)
ffmpeg -i origin.wav -c:a libfdk_aac -vbr 3 destination.m4a
# Add -ac 1 for mixdown to mono
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment