Last active
July 12, 2023 06:56
-
-
Save snsxn/084572f02279fa8c801fa94fb9b10062 to your computer and use it in GitHub Desktop.
FFmpeg convert audio file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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