How do I convert audio from the command line a la ImageMagick?

19

4

ImageMagick is a handy, powerful command-line tool that can crop, scale, rotate, change format, apply basic (and some not-so-basic) effects to pretty much all sorts of images.

How can I join audio tracks, adjust levels, and transcode formats from the command line?

Nick T

Posted 2011-03-03T21:23:53.590

Reputation: 2 417

Answers

12

Yep, it's called SoX

SoX is a cross-platform (Windows, Linux, MacOS X, etc.) command line utility that can convert various formats of computer audio files in to other formats. It can also apply various effects to these sound files, and, as an added bonus, SoX can play and record audio files on most platforms.

Linker3000

Posted 2011-03-03T21:23:53.590

Reputation: 25 670

3

Another Soft: moo0 ffmpeg converter - converts audio files using CMD (command line).

i.e.:

c:\folder\bin\ffmpeg -i input.mp4 output.mp3

T.Todua

Posted 2011-03-03T21:23:53.590

Reputation: 2 436

3I used ffmpeg for batch-conversion of video files for a web site. Good tool for power users. It can also handle audio. – TimSparrow – 2017-02-16T12:19:23.670