FFMPEG - Extract audio from video file and write to MP3



Published: 2018-07-29 08:26:49 +0000
Categories: BASH,

Language

BASH

Description

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.

Snippet

ffmpeg -i "$IN" -vn -acodec "$OUT"

Usage Example

ffmpeg -i happy_birthday.mp4 -vn -acodec happy_birthday.mp3

Requires

Keywords

ffmpeg, mp3, audio, extract,

Latest Posts


Copyright © 2019 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk and snippets.6zdgh5a5e6zpchdz.onion