Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 12-20-2010, 03:56 PM   #16
Registered: Oct 2007
Distribution: Slackware
Posts: 805

Rep: Reputation: 159Reputation: 159

That is a blast from my past:

#              #
I had almost forgotten that address . Updated work can be seen here:

Old 12-20-2010, 05:50 PM   #17
Senior Member
Registered: May 2004
Distribution: Slackware 14.2 64-bit with multilib
Posts: 2,310

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Originally Posted by gargamel View Post
Hi everyone,

first of all: I am not sure, if this is the right forum, as I don't know, if it is Slackware-relatedm, or if it is a general thing affecting other distros with KDE, as well. If the latter is the case, please let me know, where to post this (Linux Software or Linux Desktop forum?).

BTW, I am on Slackware64-13.1 (stable).

Currently, I am trying to copy all my music CDs on a harddisk. I thought, this would be a very simple thing to do, but whatever I do I run into another issue.

1. K3B and WAV
The easiest and fastest way to get the content of a music CD onto a harddisk I found, is using K3B. It is totally stable and works really fast. But it only really rips the WAV files and copies them onto the harddisk.
At first, I was quite happy with the results, sound quality of the CDs are preserved 100% (K3B seems to use cdparanoia to ensure a similar quality as EAC, the well-known Windows program).
However, when playing the WAV files, Amarok endlessly tried to download the song text, but never made it. This may have to do with the missing support for tagging in the WAV format. Also, WAV is not supported in streaming servers, and only a few of them support transcoding.

RESULT: My music is on the harddisk, but I can't use it as conveniently as I was hoping for.

2. KAudioCreator, WAV and FLAC

Then I converted the WAV files of a couple of albums already stored on my harddisk to FLAC with KAudioCreator. But Amarok still was unable to load song texts.
So I tried to rip CDs with KAudioCreator directly, instead of converting WAV files on my harddisk. And guess what: This time Amarok was able to load the song text for the created FLAC files. (I also tried to just rip WAV files, but Amarok didn't find any song texts, againg --- no such problem with FLAC).
What is generally annoying is, that KAudioCreator stops working after a few albums. It still puts jobs in its queue, and it's possible to manipulate the queue, but it's never being processed. Also, whenever I change a DVD in my second DVD drive, KAudioCreator duplicates the jobs in its queue. Therefore I did another research, and came to this:

3. Dolphin/Konqueror with WAV and FLAC

This method is by far the most convenient. Insert a CD and click on the CD icon in Dolphin or Konqueror, and you will see the content of the CD plus a view "virtual folders". Drag any of them to your harddisk, und you will have the content of the CD in this format there. E. g., if you drag the folder FLAC to a directory on your harddisk, a FLAC director is created there, and FLAC files for all the WAV files are created and copied into it.
However: Amarok can't load song texts, if you use this method, although Dolphin/Konqueror rely on KAudioCreator to do the hard work, if I understand it correctly...

4. VLC with FLAC

I tried this, too, but I ran into issues. When I converted WAV files on my harddisk to FLAC, Amarok didn't find song texts.
Trying to convert directly from CD also didn't work, because the file dialog either only showed the virtual folders created by Dolphin/Konqueror, but not the WAV files, or came up with an error message: "You can only select local files". I guess, this indicates an incomplete integration with KDE.

5. Conclusion: Use KAudioCreator

Seems, I have to rely on KAudioCreator, despite its snags and bugs. What it does, it doew well, when it does it. But it behaves inconsistently, at time, and it is US English only. (There's an option to change the language, but only one language can be selected). This will make the whole task a little more tedious and time-consuming, as the only way to get reliable results with KAudioCreator for me seems to be to close and restart the program after each ripped CD.

Now, ok, I found a way to do it, somehow. Of course, the reason why I put all my music on a harddisk is, that I want to play it from there, possibly streaming it to more than one room in the midterm. As I mentioned above, I decided to use the FLAC format. It is free and lossless, and I found many statements and reports that it preserves the exact sound quality of WAV.

Remarks: Playback Quality of FLAC
Well, I tried it, and have to say, that I am heavily disappointed. I started using Amarok and directly compared the FLAC and WAV files with my AKG K701, and could tell reliably the difference. The FLAC version lacked spatial information, it sounded "flat", and a little harshness was added to higher frequencies. Just to make sure I tried other players, including VLC, MPlayer, Kaffeine and Xine. The biggest difference between FLAC and WAV was in VLC. In the other players it was smaller. In MPlayer, however, FLAC was not better than in VLC, but WAV was worse...

I was totally confused. How could this be? FLAC is lossless, and there are hundreds of posts in the internet, that it guarantees identical sound with the WAV file from which it is created.

So, to make sure, the conversion was correct, I converted some of the FLAC files on my harddisks back to WAV, compared the files with the original CD versions and listened again. Believe it or not: There was no difference compared to the original WAV files, and the original sound quality was there, again!

So it is obviously true, that FLAC is a lossless format, and the conversion was correct. However, Linux players seem to struggle with the double task of decompressing and playing it.

But I didn't want to give up, and tried Play, the command line player included with SoX. And this time, the difference between FLAC and WAV was so small, that I am not sure, if it was just, because I *wanted* to hear a difference, after the experiments with other players before. At least, the playback quality of FLAC is so close to WAV with SoX, that I am satisfied with it.
FLAC sounds good with Kaffeine, too, and most of the time it's good enough. MPlayer generally sounds a little "darker", less "transparent", than the other, but still has good resolution at the price of slightly higher noise. Still, FLAC files can be enjoyed with MPlayer, although WAV files sound better. With VLC, however, FLAC was no fun. It sounds like really poor MP3.

Remarks: Playback Quality of Ogg Vorbis
Finally, I converted some of the WAV files directly from CD to Ogg Vorbis with KAudioCreator. It's hard to believe, but with VLC the Ogg Vorbis version was much closer to the original WAV than the FLAC version! There was a noticeable roll-off at higher frequencies, but the spatial information, that FLAC was lacking so painfully, was there, and there was no sign of harshness. This is not to say, that Ogg Vorbis would match the quality of the original WAV. It doesn't. But when played with VLC, the Ogg Vorbis was more fun than FLAC. And it sounded good in the other players, too. Much better, than MP3 files I have heard in the past.

Remarks: Sound Quality and Usability of Linux Audio Players
Although it wasn't my original intent to do a comparison of sound players for Slackware, I was forced to do just that.
If sound quality is all that counts, then SoX is the way to go. It is the only one that preserves WAV quality when playing FLAC, and it sounds better with WAV than all the others I have tried. However, it is a powerful command line program, that can do a lot more than just play music. However, most people will prefer a nice, intuitive (G)UI, when they just want to enjoy some music.
Overall, Kaffeine is my favourite player for just about anything. I have been using it for years, as it is the only complete solution for watching TV via DVB-T for Linux. But it also offers convincing sound quality, and shines with usability. None of the other programs mentioned above make it so easy, even for a newbie, to just throw something onto it in order to play it. Everything seems to be in the right place in Kaffeine. Regarding sound quality it is my personal number 2.
Just about equal in overall sound quality and very powerful is MPlayer. It plays about every format there is with maximum detail, but is generally a little darker than the others, regarding the "colour" of sound. If you like NAD hifi equipment, MPlayer will be your favourite, if you prefer Rotel, look for something else. It's more a question of personal taste than of objective quality. The default UI is, however, something you'll have to get used to...
VLC is the most flexible of them all, but at the price of complexity. The UI has made great progress over the years, and it is admirable, what is hidden behind the, at first sight, lean and modern GUI. But still, some things aren't obvious and others are incomplete. E. g., VLC supports DVB-T, like Kaffeine, but it takes ages to scan channels, and then finds only a small fraction of what Kaffeine is capable to receive. Regarding VLC as CD ripper, I ran into trouble in KDE. I suppose that is possible to rip CDs with VLC, but in my KDE desktop VLC interprets files on audiocd:/ as a remote protocol, as it seems. Unfortunately, replacing this with /dev/dvd etc. doesn't help.
Regarding sound quality, with WAV and Ogg Vorbis, VLC is very good. But it appears to really be struggling with FLAC.

How do YOU do it?
So much for now. I'd really been interested to read, how you would go about the whole topic of playing music from a harddisk, be it for simple, local usage or for network streaming and multiroom solutions, using Slackware.

Merry Christmas and a Happy New Year to everyone!

I can't vouch for how FLAC sounds under Linux' version of VLC, but I am rather happy how XMMS plays and handles FLAC. Perhaps you should consider playing back your files in XMMS.

Or even audacious.

I only ripped ONE CD under Linux with K3B and played it back under XMMS after encoding to FLAC. No issues. Also the CD in question was a MIXED-MODE Game CD (SegaCD), so Track01 was all computer data, and rest were redbook audio.

I rather like EAC (Exact Audio Copy), but thats of course only for Windows, and I suppose the only counterpart would be cdparanoia, though admittedly EAC handles CD extraction down to an art/science since it also handles pregaps (if you have a CD that has that).

Sorry I guess when it comes to CD Audio extraction, I have to use Windows.

VLC is a nice media player, but I honestly wouldn't trust it with anything else. I could never get VLC to do any kind of transcoding (just end up with invalid video files), so as far as CD extraction and encoding, I wouldn't trust it either.
Old 12-20-2010, 06:23 PM   #18
Senior Member
Registered: May 2008
Posts: 4,232
Blog Entries: 6

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I find using "cdda2wav -paranoia" to be better than using cdparanoia directly. I found that cdparanoia was resulting in phantom track 0's containing a few seconds of silence on some of my CDs.

The way I do it is I use cdda2wav -paranoia -B to rip the disk, then use the flac command line tool to convert to flac, then use EasyTag to do a cddb lookup, add the correct tags and rename the files.
The reason I do it this way is that it allows me to proof read the tags before applying them - sometimes the cddb tags that get pulled down by automated rippers can be poor quality.

For playback, I either use mpd or just play them through ogg123. No need for anything fancy.

Not had a problem with sound quality as long as I force playback to the CD sample rate of 44k1. Quality takes a tumble if you're using alsa/dmix and it's left to default to the 48K sample rate used on DVDs. This might be what is responsible for your quality issues with different players. Some players may be forcing 44k1 and others may be just allowing alsa/dmix to up-sample your cd quality flacs to 48k in order to mix it, resulting in muddy sound.
Old 12-20-2010, 08:48 PM   #19
Registered: Jul 2008
Location: Tacoma, WA
Distribution: Slackware64
Posts: 95

Rep: Reputation: 19
Originally Posted by andrew.46 View Post
That is a blast from my past:

#              #
I had almost forgotten that address . Updated work can be seen here:

Thanks for your work, it is very cool!
Old 12-21-2010, 02:49 AM   #20
Registered: Jun 2010
Posts: 115

Rep: Reputation: 47
I use aqualung for music playback, output to qjackctl and jamin. There's a slackbuild script for 13.0 at, but it works for 13.1. All of the deps are available from SBo, best to use latest ffmpeg. aqualung is designed for gapless playback and works with alsa, oss, jack. Music library can be added via metadata, filesystem structure or regular expressions. Ape playback is buggy though, if you encounter problems, use the release version, not the svn.

As for latency, some have reported the updated oss to be better than alsa. Configuring true realtime for jack on slackware is a pain (recompile kernel) and may not work properly.

Last edited by linuxs64; 12-21-2010 at 02:52 AM.


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
[SOLVED] CURRENT BUG?: k3b flac rip GazL Slackware 1 03-11-2010 05:53 AM
xmms flac playback slackware64 -current hemp4fuel Slackware 4 11-25-2009 11:51 AM
Tools/Methods to extract Quicktime playback duration? penguiniator Linux - Software 0 11-02-2007 01:54 PM
Media player with gapless playback of FLAC/SHN? MheAd Linux - Software 3 06-15-2007 09:01 PM
Loud buzz during FLAC playback in VLC Crushing Belial Linux - Software 0 10-25-2005 01:52 AM

All times are GMT -5. The time now is 07:03 AM.

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