ffmpeg:extract_mp3_from_video
Table of Contents
ffmpeg - Extract mp3 from video
Extract mp3 from an mp4 videos
This will extract the audio of any mp4 videos in your current folder with the same name of the original video.
find . -type f -name "*.mp4" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;
Extract mp3 from an mkv videos
This will extract the audio of any mkv videos in your current folder with the same name of the original video.
find . -type f -name "*.mkv" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;
ffmpeg/extract_mp3_from_video.txt · Last modified: 2025/01/02 22:53 by peter