Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

using ffmpeg I'd like to have some directions/parameters to:

  • encode any audio file to a poor bitrate
  • strip artwork from file
  • optimize for speed
  • optimize for size

My goal is to have a bare-bone file encoded in mp3 in the fastest time possible, quality does not matter (even 96kbps or less), it just needs to be extremely fast.

share|improve this question
did you try to read this docs – hakkikonu Feb 16 '13 at 0:07
In the future, please don't cross-post. Thank you. – slhck Feb 17 '13 at 20:17
up vote 2 down vote accepted
ffmpeg -i input.file -map 0:a:0 -b:a 96k output.mp3

...will convert any file with audio into a Constant Bit Rate MP3 @ 96 kbit/s. Music files normally store cover images as a video stream, which will be stripped by this command; M4A files do this differently, but ffmpeg is currently not able to access that data, so it will be stripped whatever you do. This will also select the first audio stream, if there are multiple audio streams.

CBR mode should be faster than VBR, and using a low bit rate should be faster than a higher one.

Of course, file size can be easily calculated from the bit rate. A one-minute CBR MP3 @96 kbit/s will have a file size of 60s*96000bit/s=5760000 bit, /8192=703.125 KB.

share|improve this answer

Give this a try sir

ffmpeg -i aa.mp3 -b:a 96k -map a bb.mp3

-map a strips artwork


share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .