Converting Audio Formats

Getting the swing

Article from Issue 50/2005
Author(s):

The command line swings. In this

issue of “Command Line”we investigate

how you can grab tracks from

audio CDs and convert sound files to

other formats. No matter whether

you choose wav,MP3 or Ogg Vorbis,

you can rely on the shell to convert

your files.

You do not need a GUI-based tool to

convert sound files to different formats

– the command line gives

you everything you need. To get started,

we will be looking at two programs that

grab tracks from audio CDs and store

them in wav format. Following that, we

will be looking at tips and tricks for

converting various audio formats and

learning how clever use of bash features

can speed up the process.

Grabbing with cdda2wav cdda2wav [1] (“compact disc digital

audio to wav”) is a program that most

distributors include. Debian users can

install the tool by running

apt-get install cdda2wav

Before you launch cdda2wav, check to

see if you can access your CD-ROM drive

with a non-privileged user account (see

Box 1). To grab a track, you need to use

the -t option and the track number. The

program also expects the device name of

your CD-ROM drive, which you can supply

by adding a -D option:

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command-Line Tools

    Learn more about Linux text-based multimedia utilities for playing streams, editing images, and reading CDs or DVDs from the command-line.

  • soundKonverter

    Your new media player might match your new outfit, but does it use the audio files formats you have? SoundKonverter helps you easily reformat your music collection.

  • Command Line: MPlayer and MEncoder

    MPlayer and MEncoder have considerable potential, and you can control them by means of intelligent command-line options. We’ll put both programs to work.

  • Ripping Audio Streams

    FM no longer has the biggest selection of radio stations. Instead, you need an Internet connection. But how can you save a copy of your favorite web broadcast?

  • NeroLINUX

    Does Nero meet the challenge of native Open Source Linux CD utilities, or does it just fiddle while it burns?

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News