You are not logged in.

#1 2021-10-19 20:57:04

schmidl
Member
Registered: 2021-10-19
Posts: 6

[Solved] Dolphin causes very slow audio cd read

I have to rip some audio cds but the read speed is very slow (~10kb/s)
and my cd drive is making faint clacking noises.
I have tried various programs (dolphin, brasero, vlc, …) but they all show the same behaviour.
This problem only seems to occur with audio cds,
regular cds e.g. for installing (old) programs seem to work fine.

Any ideas?

Last edited by schmidl (2021-10-20 14:25:44)

Offline

#2 2021-10-19 21:56:32

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Dolphin causes very slow audio cd read

10kb/s is only ~½ speed, ie. not even fast enough to play the disc.

Are there IO errors in dmesg? Have you tried to clean the CDs?
(Smooth microfiber cloth, the things that are used to clean glasses. Inside => Outside. NOT in cirlces)

Do you use cdparanoia (and enforce a speed)?

Offline

#3 2021-10-19 22:35:57

schmidl
Member
Registered: 2021-10-19
Posts: 6

Re: [Solved] Dolphin causes very slow audio cd read

It is indeed to slow to play. VLC for example has to buffer a long time before it can play anything.
The disk is new and as clean as it gets. Also I've tried it in a cd-player and it plays fine.
There is nothing about the drive in dmesg.
I have tried to pass the drive to a windows vm to check if it is a hardware problem but could not get it to work.

With "cdparanoia -B --force-read-speed 16" its not clacking anymore and the read speed has increased to a blazing ~600kb/s.
But normally I would hear the disk spin up which it still does not do (maybe this has to do with the fact, that the cd contains many short tracks?).

Thanks for the advice so far.

Offline

#4 2021-10-20 06:32:29

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Dolphin causes very slow audio cd read

maybe this has to do with the fact, that the cd contains many short tracks?

How many and how short?

You can use "-Z"  to skip all integrity tests (though not advisable for practical purposes) and "-A" to analyze the drive. And ramp up the reading speed parameter.

Offline

#5 2021-10-20 10:49:01

Maniaxx
Member
Registered: 2014-05-14
Posts: 761

Re: [Solved] Dolphin causes very slow audio cd read

The drive errors out (<1x Speed 150kB/s). The disc might be copy-protected (dirty tricks, bad sectors, etc) or the drive itself could be defect or weak. There are also some CD dyes (if CD-Rs) that don't run well on all lasers.
Regarding the first case there are better and worse drives to rip such discs. Look up your drive online about ripping capabilities (Accurate Stream, C2 Error, Non-Caching, Offset, etc). You can try EAC (on Wine) that should be still king-of-the-hill for DAE. It has a large drive and track database.

Last edited by Maniaxx (2021-10-20 11:18:19)


sys2064

Offline

#6 2021-10-20 11:42:17

schmidl
Member
Registered: 2021-10-19
Posts: 6

Re: [Solved] Dolphin causes very slow audio cd read

It seems to be a problem with dolphin. If I have all dolphin windows closed and play the cd with vlc directly, it plays fine.
Also I can create an image of it at ~700kb/s. But as soon as dolphin tries to read the cds contents the drive starts clacking and the speed plummits.
The output of dolphin:

…
libWorkMan: ERROR: CDROM_SEND_PACKET Eingabe-/Ausgabefehler
no or invalid CDTEXT
change volume:  50
Cache files found:  0
Should lookup  "0WCpU_ZeTzwZen4u2EnO4GoTVJ4-"
ResourceNotFound Exception: ' Resource not found error: 404 Not Found '
LastResult:  6
LastHTTPCode:  404
LastErrorMessage:  "404 Not Found"
libWorkMan: ERROR: CDROM_SEND_PACKET Eingabe-/Ausgabefehler
New disc with  98  tracks
cd.playlist: Playlist has  98  entries 
…

And cdparanoia -A:

cdparanoia III release 10.2 (September 11, 2008)

Using cdda library version: 10.2
Using paranoia library version: 10.2
Checking /dev/cdrom for cdrom...
        Testing /dev/cdrom for SCSI/MMC interface
                SG_IO device: /dev/sr0

CDROM model sensed sensed: TSSTcorp CDDVDW SH-222BB SB00 
 

Checking for SCSI emulation...
        Drive is ATAPI (using SG_IO host adaptor emulation)

Checking for MMC style command set...
        Drive is MMC style
        DMA scatter/gather table entries: 1
        table entry size: 131072 bytes
        maximum theoretical transfer: 55 sectors
        Setting default read size to 27 sectors (63504 bytes).

Verifying CDDA command set...
        Expected command set reads OK.

Attempting to set cdrom to full speed... 
        drive returned OK.

=================== Checking drive cache/timing behavior ===================

Seek/read timing:
        [53:26.51]:   39ms seek, 0.63ms/sec read [21.2x]                 
        [50:00.00]:   35ms seek, 0.67ms/sec read [20.0x]                 
        [40:00.00]:   54ms seek, 1.07ms/sec read [12.4x]                 
        [30:00.00]:   46ms seek, 1.20ms/sec read [11.1x]                 
        [20:00.00]:   43ms seek, 1.37ms/sec read [9.7x]                 
        [10:00.00]:   54ms seek, 1.63ms/sec read [8.2x]                 
        [00:00.00]:   76ms seek, 2.15ms/sec read [6.2x]                 

Analyzing cache behavior...
        Drive does not cache nonlinear access                            

Drive tests OK with Paranoia.

The cd contains audio for a language course with track lenghts from 6s to 30s.

Offline

#7 2021-10-20 11:56:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Dolphin causes very slow audio cd read

It looks like dolphin (the cdda kioslave) tries to identfy the disc for a CDDB lookup, causing concurrent (?) reads next to your ripping efforts (the klicking is likely the disc constantly jumping between the positions that dolphin and cdparanoia want to read)

No idea how to make it stop doing that, though - you might want to edit the subject of the thread (edit your initial post) to reflect the dolphin relevance and attract relevant attention.

Offline

#8 2021-10-20 12:29:06

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: [Solved] Dolphin causes very slow audio cd read

You should be able to disable said lookup in

kcmshell5 libkcddb

Offline

#9 2021-10-20 12:55:21

schmidl
Member
Registered: 2021-10-19
Posts: 6

Re: [Solved] Dolphin causes very slow audio cd read

After disabling the lookup the output of dolphin reduces to:

…
libWorkMan: ERROR: CDROM_SEND_PACKET Eingabe-/Ausgabefehler
no or invalid CDTEXT
change volume:  50
Cache files found:  0
…

But the problem including clacking persists.
Also dolphin is not only blocking other programs from reading but also itself, so if I try to copy from the cd within dolphin it is also extremely slow.

Offline

#10 2021-10-20 13:04:21

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,302

Re: [Solved] Dolphin causes very slow audio cd read

Maybe the error correction mode you could check in the audiocd kcm has an effect here, though I'd find it strange if that has an effect before actively reading the full tracks.

FWIW if you want to completely kick the audiocd support in dolphin you could also just uninstall kio-audiocd

Offline

#11 2021-10-20 13:25:06

schmidl
Member
Registered: 2021-10-19
Posts: 6

Re: [Solved] Dolphin causes very slow audio cd read

The error correction mode had no affect. I've tried completely removing and reinstalling audiocd-kio but with no luck.

Offline

#12 2021-10-20 13:38:14

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Dolphin causes very slow audio cd read

I think the idea was to remove it terminally to prevent it from intervention.
Optical drives have become uncommon and while being the focus of eg. cdparanoia, it would't surprise me if no kio developer has really tested this in years…

Offline

#13 2021-10-20 14:24:07

schmidl
Member
Registered: 2021-10-19
Posts: 6

Re: [Solved] Dolphin causes very slow audio cd read

I have kde-multimedia-meta depending on it, so I'm not sure forcefully removing it will not break other things.
But as I now know it's a dolphin problem I will just use something like thunar, which seems to work fine.

Offline

#14 2021-10-20 14:37:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,256

Re: [Solved] Dolphin causes very slow audio cd read

kde-multimedia-meta is a … well, meta package that just pulls a bunch of other packages. If that's your only dependency, you can remove it.

Offline

Board footer

Powered by FluxBB