FFMPEG - Extract audio from video file and write to MP3 (BASH)
The snippet below extracts the audio track from a video file (for example an MP4), converts it to MP3 and writes it out to a file.
Details
- Language: BASH
Snippet
ffmpeg -i "$IN" -vn -acodec mp3 "$OUT"
Usage Example
ffmpeg -i happy_birthday.mp4 -vn -acodec mp3 happy_birthday.mp3