Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-21-2005, 10:23 PM   #1
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Rep: Reputation: 34
Is Lame's encoding slow?


I'm just curious if this is just me. I use KAudioCreator to rip/encode music CD's to MP3 files (mostly at 160 Kbps). I don't know what it uses for ripping, but I choose lame (version 3.92) for encoding.

Now, it looks to me like lame takes just as much time to encode one song as Windows Media Player 10 does to both rip and encode the same song. As the result, WMP 10 takes less than half the time KAudioCreator does to rip and encode an entire music album.

Given that the hardware for my Windows XP isn't as fast as that for my Linux, I find this tendency a bit disturbing. I wonder if there's any way to tweak lame, or KAudioCreator itself, to speed up the process?

Old 08-21-2005, 10:47 PM   #2
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
You can re-nice the process.

man nice
info nice

The GUI front ends just call the command line tools (and hide the error messages), so I use the tools directly in order to understand the process.

Here are some good links.

How about CD copying, ripping and burning? I can't figure it out.
# CD burning copying ripping info
Is it configured and what is the device? Command this to find out:
cdrecord -scanbus

# Recomended GUI front ends for CD burner
K3b - CD/DVD Kreator for KDE
Adding an IDE CD-Writer to Linux
CD Writing HOWTO
Burning CDs on Linux
# Burn an ISO to disk
cdrecord driveropts=burnfree -v speed=<burning speed> dev=<your device> /path/to/foo.iso ; eject

# New command for kernel 2-6?
cdrecord driveropts=burnfree -v speed=8 dev=ATAPI:1,1,0 /home/fancy/gnuwinII_August_12_2004.iso ; eject

# Burn from disk to disk
cdrecord driveropts=burnfree -v dev=<your device> speed=<burning speed> -isosize /dev/cdrom ; eject
# ISO information
isoinfo -i -d /dev/cdrom
# Generate an ISO from a directory.
mkisofs -vrTJUV "Label" -o foo.iso /path/to/directory

cd /home/fancy/iso
mkisofs -vrTJUV "Bibles" -o Bibles.iso /pub/downloads/WindowsStuff/Books/Bibles

mkisofs -vrTJUV "Games" -o Games.iso /pub/downloads/WindowsStuff/Games

mkisofs -vrTJUV "Downloads" -o downloads.iso /pub/dlcd

# Generate an ISO from a CD
dd if=/dev/cdrom of=foo.iso
# cdparanoia - search for a drive with reporting of autosense:
cdparanoia -vsQ
# Rip a complete audio CD with cdparanoia
cdparanoia -B "1-";eject
# Convert wav files to oggvorbis
oggenc somefile.wav
Linux MP3 CD Burning mini-HOWTO
# Convert mp3 to wav with lame
for i in *.mp3; do lame --decode $i `basename $i .mp3`.wav; done
# Burn a CD from wav files
cdrecord driveropts=burnfree-v -audio -pad speed=<burning speed> dev=<your device> /path/to/*.wav;eject

cdrecord driveropts=burnfree -v -audio -pad speed=8 dev=0,0,0 /home/fancy/naomisfancy/1st_cd/*.wav;eject

cdrecord driveropts=burnfree-v speed=0 dev=0,0,0 /home/fancy/iso/Bibles.iso;eject

# Copy CD using cdrdao
cdrdao read-cd --device <your device> --read-raw --datafile mydata.bin -v 99 mydata.cue
cdrdao write --device <your device> --overburn -v 99 --speed <burning speed> mydata.cue
Old 08-22-2005, 02:45 AM   #3
Registered: Jul 2003
Location: Seattle, WA
Distribution: Kubuntu 14.04 LTS
Posts: 915

Original Poster
Rep: Reputation: 34
Thanks for the reply.

Does "nice" change the scheduling priority of a particular process once and for all, or do I need to run "nice" each time?

I agree that using comand-line tools without the GUI frontend will help you better understand the process. The down side is that it's a pain to run lame as a command-line tool, with all the different arguments regarding the meta info of the songs.
Old 08-22-2005, 02:55 AM   #4
LQ Guru
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Each time or whenever launched.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Suse 9.2 & SATA - Slow, Slow, Slow jess1975 SUSE / openSUSE 6 01-28-2007 12:17 PM
New Fedora Internet connection slow slow slow matrim Fedora 9 07-29-2005 01:39 PM
why is mp3 encoding so slow in linux ? dukeinlondon Linux - Software 4 05-14-2005 05:03 AM
Other than US encoding kornerr Linux - General 4 01-21-2005 09:42 AM
RH8 vs. W2k - Slow, slow, slow zerojosh Linux - Software 2 06-30-2003 07:19 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration