I want to send it to another audioplayer directly (also using subprocess) and it supports only wav files, I just find it more convenient to do it on the fly instead of converting everything and then play wav file(s). The player I send the avi file does support input on stdin. – FFmpeg is a very flexible, powerful, cross-platform, and versatile command-line tool for converting media file formats. It allows you to record, convert and stream audio and video files. It supports all popular audio and video formats. So you don't have to look for alternative tools for any media file conversion. Most Linux GUI video editors. 9 Answers. Sorted by: 42. Searching for packages matching ogg, I found dir2ogg which seems to be exactly what you want. Just. sudo apt-get install dir2ogg dir2ogg -r /path/to/mp3s/. And it recursively finds and converts all mp3 files under /path/to/mp3s/ to ogg (assuming I read the manual correctly). Share. The audio source file (s) will either need to be extracted, if a disc media, or to be decoded, if an encoded file. If the audiobook is a disc media, various digital audio extraction utilities are available. A common way to extract audio from a CD to WAV-formatted files is: cdparanoia -B. If the audiobook is a audio file, various programs can I learned how to encode wav into an mp3 using lame_encode_buffer_interleaved from this question: Is there any LAME c++ wraper\simplifier (working on Linux Mac and Win from pure code)? Now I want to decode the mp3 back into wav. I know there's lame_decode but I don't know how to use it since it requires two pcm buffers (pcm_l and pcm_r). I don't i have installed the lame encoder, and i wanna write a bash script that reads the contents of a given folder, and runs a command for each file in it.. so basically batch process wav to mp3 conversion. the files will obviously be *.wav files, the output should be the same file names with .mp3 instead of .wav, and the command is 'lame' along with Here's an example of converting WAV to VOX : sox input.wav -r 8000 -c 1 output.vox vol 1.0 polyphase stat See the SoX manpage and supported file formats documentation. Note that the general sox syntax is: sox [global-options] [input-format-options] infile1 [ infile2] [output-format-options] outfile [effect [effect-options] I want your advice on how to convert mp3 files to wav on linux via a PHP script. I was successful with lame but only on windows, I putted lame.exe and lame.xxx.dll together and executed the PHP script posted here: Generating MP3 waveforms with PHP (by Andrew; 29 April 2010) But so far so good, I'm not successful in doing the same thing on Linux. 1. soundKonverter. soundKonverter is one of the best Linux audio converters available today. The free software can convert most audio files, including MP3, FLAC, WMA, AAC, M4A, and a host of others. Despite the name, the app isn't limited to audio formats. If you install some of the many extendable plugins, it can also be a video converter for If you have lots of files to convert, you might want to do that in parallel: find . -name '*. wav' -type f -print0 | parallel -0 ffmpeg -i {} -c:a libfdk_aac -b:a 96k {.}.m4a Check this doc for how to work with parallel. If you don't have the tool, install it with brew install parallel. Scott's answer is perfectly fine too. maoWaY2.