gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
simple command to convert mp4 to mp3 using ffmpeg
- User
simple command to convert mp4 to mp3 using ffmpeg
- Assistant
A simple command to convert an MP4 video file to an MP3 audio file using ffmpeg is:
bashffmpeg -i input.mp4 -q:a 0 -map a output.mp3Explanation:
-i input.mp4specifies the input file.-q:a 0sets the audio quality to the highest (variable bit rate).-map atells ffmpeg to select the audio stream only.output.mp3is the output file name.
This will extract the audio from the MP4 and save it as an MP3.