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 mp3 "$OUT"

Usage Example

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

Requires

Keywords

ffmpeg, mp3, audio, extract,

Latest Posts


Copyright © 2022 Ben Tasker | Sitemap | Privacy Policy
Available at snippets.bentasker.co.uk, http://phecoopwm6x7azx26ctuqcp6673bbqkrqfeoiz2wwk36sady5tqbdpqd.onion and http://snippets.bentasker.i2p
hit counter