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.

  • Video Editing with LiVES

    Linux users who edit videos on their computers have so far been restricted to the fairly simplistic Kino program and the functional monster Cinelerra. LiVES steps up to fill the gap.

  • Perl Audio Converter Extends Choice of Formats

    Version 4.0.0 of the Perl Audio Converter (PAC) has just been released; the program can now handle a wider variety of file types.

comments powered by Disqus

Direct Download

Read full article as PDF:

Converting_Audio_Formats_on_the_Command_Line.pdf (320.25 kB)

News