5449 explained code solutions for 103 technologies


ffmpegExtract audio from video


ffmpeg -i in.mp4 -vn -q:a 0 -map a out.mp3ctrl + c
in.mp4

input video file to extract audio from

-vn

skip video (leave only audio)

-q:a 0

sets best possible audio quality

-map a

tells ffmpeg to select audio stream

out.mp3

resulting audio file