Sometimes is useful to dump the audio stream from a a/v file recompressing it into a mp3.

ffmpeg -i $input.avi -vn -ac 1 -f mp3 -acodec libmp3lame -q 9 $output.mp3

 

  • -i: specify the input file
  • -vn: ignore the video stream
  • -ac:numver of  audio channels in the output file
  • -f: output file format
  • -acodec: audio codec
  • -q: audio quality (1 best – 9 worst)

 

Advertisements