Summary: | cannot write audio CD, "Error while decoding audio tracks" | ||
---|---|---|---|
Product: | [Applications] k3b | Reporter: | Jonathan Marten <jjm> |
Component: | Audio Project | Assignee: | Michał Małek <michalm> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | mcchristenson, trueg |
Priority: | NOR | ||
Version: | Git | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch to fix |
Description
Jonathan Marten
2010-11-16 12:10:34 UTC
Created attachment 53463 [details]
Patch to fix
In K3b::AudioImager::run(), from libk3b/projects/audiocd/k3baudioimager.cpp:
//
// Read data from the track
//
while( (read = trackReader.read( buffer, sizeof(buffer) )) > 0 ) {
.
.
.
}
if( read < 0 ) {
emit infoMessage( i18n("Error while decoding track %1.", track->trackNumber()), K3b::Job::MessageError );
The trackReader.read() returns -1 at the end of the track. This is not an error, but merely indicates EOF.
The attached patch appears to fix the problem, and correctly creates an audio CD or image.
I had the same occur today after using k3b many times successfully. It is my preferred burner app on any platform. The two error messages listed as the burn progressed in the main progress window were Track 1 error while decoding audio track Error while decoding audio tracks After a while the CD was ejected by the app I then was able to successfully burn the same audio WAV files using Nero Essentials in Win7. Debugging output: Devices ----------------------- Optiarc DVD RW AD-7563A WX05 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-R Dual Layer Jump, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite, Layer Jump] [%7] System ----------------------- K3b Version: 2.0.80 KDE Version: 4.5.3 (KDE 4.5.3) QT Version: 4.7.0 Kernel: 2.6.32.12-pclos1.bfs Used versions ----------------------- cdrecord: 1.1.10 cdrecord ----------------------- /usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits. scsidev: '/dev/sr0' devname: '/dev/sr0' scsibus: -2 target: -2 lun: -2 Linux sg driver version: 3.5.27 Wodim version: 1.1.10 SCSI buffer size: 64512 Beginning DMA speed test. Set CDR_NODMATEST environment variable if device communication breaks or freezes immediately after that. Text len: 54 TOC Type: 0 = CD-DA Driveropts: 'burnfree' Device type : Removable CD-ROM Version : 5 Response Format: 2 Capabilities : Vendor_info : 'Optiarc ' Identification : 'DVD RW AD-7563A ' Revision : 'WX05' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: 0x0009 (CD-R) Profile: 0x0012 (DVD-RAM) Profile: 0x0015 (DVD-R/DL sequential recording) Profile: 0x0016 (DVD-R/DL layer jump recording) Profile: 0x002B (DVD+R/DL) Profile: 0x001B (DVD+R) Profile: 0x001A (DVD+RW) Profile: 0x0014 (DVD-RW sequential recording) Profile: 0x0013 (DVD-RW restricted overwrite) Profile: 0x0011 (DVD-R sequential recording) Profile: 0x0010 (DVD-ROM) Profile: 0x000A (CD-RW) Profile: 0x0009 (CD-R) (current) Profile: 0x0008 (CD-ROM) Profile: 0x0002 (Removable disk) Profile: 0xFFFF () Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr). Driver flags : MMC-3 SWABAUDIO BURNFREE Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R Drive buf size : 1895168 = 1850 KB FIFO size : 4194304 = 4096 KB Speed set to 1764 KB/s pregap1: -1 Track 01: audio 58 MB (05:45.18) no preemp swab copy Track 02: audio 28 MB (02:51.00) no preemp swab copy Track 03: audio 44 MB (04:27.02) no preemp swab copy Track 04: audio 62 MB (06:14.34) no preemp swab copy Track 05: audio 55 MB (05:29.41) no preemp swab copy Track 06: audio 83 MB (08:17.40) no preemp swab copy Track 07: audio 58 MB (05:45.65) no preemp swab copy Track 08: audio 78 MB (07:45.94) no preemp swab copy Track 09: audio 51 MB (05:05.61) no preemp swab copy Track 10: audio 48 MB (04:46.08) no preemp swab copy Track 11: audio 67 MB (06:43.96) no preemp swab copy Track 12: audio 64 MB (06:24.50) no preemp swab copy Track 13: audio 50 MB (05:00.36) no preemp swab copy Track 14: audio 42 MB (04:10.25) no preemp swab copy Total size: 795 MB (78:46.74) = 354506 sectors Lout start: 795 MB (78:48/56) = 354506 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 5 Is not unrestricted Is not erasable Disk sub type: Medium Type A, high Beta category (A+) (3) ATIP start of lead in: -11634 (97:26/66) ATIP start of lead out: 359846 (79:59/71) Disk type: Short strategy type (Phthalocyanine or similar) Manuf. index: 3 Manufacturer: CMC Magnetics Corporation Blocks total: 359846 Blocks current: 359846 Blocks remaining: 5340 Starting to write CD/DVD at speed 10.0 in real SAO mode for single session. Last chance to quit, starting real write in 2 seconds. 1 seconds. 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. Performing OPC... Sending CUE sheet... SAO startsec: -11634 Writing lead-in... Lead-in write time: 22.414s Writing pregap for track 1 at -150 Starting new track at sector: 0 Track 01: 0 of 58 MB written. Track 01: 1 of 58 MB written (fifo 100%) [buf 100%] 10.1x. Track 01: 2 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 3 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 4 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 5 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 6 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 7 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 8 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 9 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 10 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 11 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 12 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 13 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 14 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 15 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 16 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 17 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 18 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 19 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 20 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 21 of 58 MB written (fifo 100%) [buf 100%] 10.6x. Track 01: 22 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 23 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 24 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 25 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 26 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 27 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 28 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 29 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 30 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 31 of 58 MB written (fifo 98%) [buf 100%] 10.5x. Track 01: 32 of 58 MB written (fifo 100%) [buf 100%] 10.2x. Track 01: 33 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 34 of 58 MB written (fifo 98%) [buf 100%] 10.1x. Track 01: 35 of 58 MB written (fifo 100%) [buf 100%] 10.5x. Track 01: 36 of 58 MB written (fifo 100%) [buf 100%] 10.1x. Track 01: 37 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 38 of 58 MB written (fifo 100%) [buf 100%] 10.1x. Track 01: 39 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 40 of 58 MB written (fifo 100%) [buf 100%] 10.1x. Track 01: 41 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 42 of 58 MB written (fifo 100%) [buf 100%] 10.1x. Track 01: 43 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 44 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 45 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 46 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 47 of 58 MB written (fifo 100%) [buf 100%] 10.4x. Track 01: 48 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 49 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 50 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 51 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 52 of 58 MB written (fifo 100%) [buf 100%] 10.7x. Track 01: 53 of 58 MB written (fifo 100%) [buf 100%] 10.3x. Track 01: 54 of 58 MB written (fifo 100%) [buf 100%] 10.6x. /usr/bin/wodim: Caught interrupt. cdrecord command: ----------------------- /usr/bin/wodim -v gracetime=2 dev=/dev/sr0 speed=10 -sao driveropts=burnfree textfile=/home/mike/tmp/qt_temp.OQ5518 -useinfo -audio /home/mike/tmp/kde-mike/k3b_audio_0_01.inf /home/mike/tmp/kde-mike/k3b_audio_0_02.inf /home/mike/tmp/kde-mike/k3b_audio_0_03.inf /home/mike/tmp/kde-mike/k3b_audio_0_04.inf /home/mike/tmp/kde-mike/k3b_audio_0_05.inf /home/mike/tmp/kde-mike/k3b_audio_0_06.inf /home/mike/tmp/kde-mike/k3b_audio_0_07.inf /home/mike/tmp/kde-mike/k3b_audio_0_08.inf /home/mike/tmp/kde-mike/k3b_audio_0_09.inf /home/mike/tmp/kde-mike/k3b_audio_0_10.inf /home/mike/tmp/kde-mike/k3b_audio_0_11.inf /home/mike/tmp/kde-mike/k3b_audio_0_12.inf /home/mike/tmp/kde-mike/k3b_audio_0_13.inf /home/mike/tmp/kde-mike/k3b_audio_0_14.inf Same error occurred on different PC today. (I see there is a patch to fix, but don't think (?) that's for the average user, but for a new release of k3b? If it's for the user to install, I'd be glad to receive instructions on how to do it.) Trying to burn different WAV files, converted from mp3 with Audacity, audio book files with tag data on different PC today. After k3b error, I was then able to burn fine with Nero Essentials on Win7. Exact error message in k3b gui: "Error while decoding track 1" "Error while decoding audio tracks" Debugging output: Devices ----------------------- PLDS DVD+-RW DH-16A6S YD12 (/dev/sr0, CD-R, CD-RW, CD-ROM, DVD-ROM, DVD-R, DVD-RW, DVD-R DL, DVD+R, DVD+RW, DVD+R DL) [DVD-ROM, DVD-R Sequential, DVD-R Dual Layer Sequential, DVD-RAM, DVD-RW Restricted Overwrite, DVD-RW Sequential, DVD+RW, DVD+R, DVD+R Dual Layer, CD-ROM, CD-R, CD-RW] [SAO, TAO, RAW, SAO/R96P, SAO/R96R, RAW/R16, RAW/R96P, RAW/R96R, Restricted Overwrite] [%7] System ----------------------- K3b Version: 2.0.80 KDE Version: 4.5.3 (KDE 4.5.3) QT Version: 4.7.0 Kernel: 2.6.32.11-pclos2.bfs Used versions ----------------------- cdrecord: 1.1.10 cdrecord ----------------------- /usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits. scsidev: '/dev/sr0' devname: '/dev/sr0' scsibus: -2 target: -2 lun: -2 Linux sg driver version: 3.5.27 Wodim version: 1.1.10 SCSI buffer size: 64512 Beginning DMA speed test. Set CDR_NODMATEST environment variable if device communication breaks or freezes immediately after that. TOC Type: 0 = CD-DA Driveropts: 'burnfree' Device type : Removable CD-ROM Version : 5 Response Format: 2 Capabilities : Vendor_info : 'PLDS ' Identification : 'DVD+-RW DH-16A6S' Revision : 'YD12' Device seems to be: Generic mmc2 DVD-R/DVD-RW. Current: 0x0009 (CD-R) Profile: 0x002B (DVD+R/DL) Profile: 0x001B (DVD+R) Profile: 0x001A (DVD+RW) Profile: 0x0015 (DVD-R/DL sequential recording) Profile: 0x0014 (DVD-RW sequential recording) Profile: 0x0013 (DVD-RW restricted overwrite) Profile: 0x0012 (DVD-RAM) Profile: 0x0011 (DVD-R sequential recording) Profile: 0x0010 (DVD-ROM) Profile: 0x000A (CD-RW) Profile: 0x0009 (CD-R) (current) Profile: 0x0008 (CD-ROM) Profile: 0x0002 (Removable disk) Using generic SCSI-3/mmc CD-R/CD-RW driver (mmc_cdr). Driver flags : MMC-3 SWABAUDIO BURNFREE FORCESPEED Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R Drive buf size : 1867008 = 1823 KB FIFO size : 4194304 = 4096 KB Speed set to 2823 KB/s pregap1: -1 Track 01: audio 37 MB (03:45.68) no preemp swab copy Track 02: audio 41 MB (04:09.40) no preemp swab copy Track 03: audio 35 MB (03:31.41) no preemp swab copy Track 04: audio 53 MB (05:18.02) no preemp swab copy Track 05: audio 68 MB (06:45.72) no preemp swab copy Track 06: audio 46 MB (04:39.20) no preemp swab copy Track 07: audio 42 MB (04:10.41) no preemp swab copy Track 08: audio 14 MB (01:28.45) no preemp swab copy Track 09: audio 40 MB (04:02.42) no preemp swab copy Track 10: audio 33 MB (03:17.62) no preemp swab copy Track 11: audio 30 MB (03:02.29) no preemp swab copy Track 12: audio 29 MB (02:53.48) no preemp swab copy Track 13: audio 17 MB (01:43.84) no preemp swab copy Track 14: audio 17 MB (01:43.89) no preemp swab copy Track 15: audio 37 MB (03:41.42) no preemp swab copy Track 16: audio 33 MB (03:20.33) no preemp swab copy Track 17: audio 29 MB (02:53.74) no preemp swab copy Track 18: audio 28 MB (02:52.28) no preemp swab copy Track 19: audio 26 MB (02:40.45) no preemp swab copy Track 20: audio 40 MB (04:03.52) no preemp swab copy Track 21: audio 35 MB (03:29.64) no preemp swab copy Track 22: audio 62 MB (06:10.50) no preemp swab copy Total size: 804 MB (79:43.77) = 358783 sectors Lout start: 805 MB (79:45/58) = 358783 sectors Current Secsize: 2048 ATIP info from disk: Indicated writing power: 5 Is not unrestricted Is not erasable Disk sub type: Medium Type A, high Beta category (A+) (3) ATIP start of lead in: -11634 (97:26/66) ATIP start of lead out: 359846 (79:59/71) Disk type: Short strategy type (Phthalocyanine or similar) Manuf. index: 3 Manufacturer: CMC Magnetics Corporation Blocks total: 359846 Blocks current: 359846 Blocks remaining: 1063 Forcespeed is OFF. Starting to write CD/DVD at speed 16.0 in dummy SAO mode for single session. Last chance to quit, starting dummy write in 2 seconds. 1 seconds. 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. Sending CUE sheet... Writing pregap for track 1 at -150 Starting new track at sector: 0 Track 01: 0 of 37 MB written. Track 01: 1 of 37 MB written (fifo 78%) [buf 91%] 2.3x. Track 01: 2 of 37 MB written (fifo 100%) [buf 100%] 0.6x. Track 01: 3 of 37 MB written (fifo 100%) [buf 100%] 17.0x. Track 01: 4 of 37 MB written (fifo 100%) [buf 100%] 16.5x. Track 01: 5 of 37 MB written (fifo 100%) [buf 100%] 17.0x. Track 01: 6 of 37 MB written (fifo 100%) [buf 100%] 16.4x. Track 01: 7 of 37 MB written (fifo 100%) [buf 100%] 17.0x. Track 01: 8 of 37 MB written (fifo 100%) [buf 100%] 16.4x. Track 01: 9 of 37 MB written (fifo 100%) [buf 100%] 16.9x. Track 01: 10 of 37 MB written (fifo 100%) [buf 100%] 16.4x. Track 01: 11 of 37 MB written (fifo 100%) [buf 100%] 16.9x. Track 01: 12 of 37 MB written (fifo 98%) [buf 100%] 16.4x. Track 01: 13 of 37 MB written (fifo 100%) [buf 100%] 16.9x. Track 01: 14 of 37 MB written (fifo 98%) [buf 100%] 16.4x. Track 01: 15 of 37 MB written (fifo 100%) [buf 100%] 16.9x. Track 01: 16 of 37 MB written (fifo 98%) [buf 100%] 16.3x. Track 01: 17 of 37 MB written (fifo 100%) [buf 100%] 16.8x. Track 01: 18 of 37 MB written (fifo 100%) [buf 100%] 16.3x. Track 01: 19 of 37 MB written (fifo 100%) [buf 100%] 16.8x. Track 01: 20 of 37 MB written (fifo 100%) [buf 100%] 16.3x. Track 01: 21 of 37 MB written (fifo 100%) [buf 100%] 16.8x. Track 01: 22 of 37 MB written (fifo 100%) [buf 100%] 16.2x. Track 01: 23 of 37 MB written (fifo 100%) [buf 100%] 16.7x. Track 01: 24 of 37 MB written (fifo 100%) [buf 100%] 16.2x. Track 01: 25 of 37 MB written (fifo 96%) [buf 100%] 16.7x. Track 01: 26 of 37 MB written (fifo 100%) [buf 100%] 16.2x. Track 01: 27 of 37 MB written (fifo 98%) [buf 100%] 16.7x. Track 01: 28 of 37 MB written (fifo 100%) [buf 100%] 16.2x. Track 01: 29 of 37 MB written (fifo 98%) [buf 100%] 16.7x. Track 01: 30 of 37 MB written (fifo 98%) [buf 100%] 16.2x. Track 01: 31 of 37 MB written (fifo 98%) [buf 100%] 16.7x. Track 01: 32 of 37 MB written (fifo 98%) [buf 100%] 16.1x. Track 01: 33 of 37 MB written (fifo 100%) [buf 100%] 16.6x. Track 01: 34 of 37 MB written (fifo 98%) [buf 100%] 16.1x. /usr/bin/wodim: Caught interrupt. Writing time: 68.493s /usr/bin/wodim: fifo had 626 puts and 563 gets. /usr/bin/wodim: fifo was 0 times empty and 390 times full, min fill was 73%. Min drive buffer fill was 100% BURN-Free was never needed. cdrecord command: ----------------------- /usr/bin/wodim -v gracetime=2 dev=/dev/sr0 speed=16 -sao -dummy driveropts=burnfree -useinfo -audio /home/mike/tmp/kde-mike/k3b_audio_0_01.inf /home/mike/tmp/kde-mike/k3b_audio_0_02.inf /home/mike/tmp/kde-mike/k3b_audio_0_03.inf /home/mike/tmp/kde-mike/k3b_audio_0_04.inf /home/mike/tmp/kde-mike/k3b_audio_0_05.inf /home/mike/tmp/kde-mike/k3b_audio_0_06.inf /home/mike/tmp/kde-mike/k3b_audio_0_07.inf /home/mike/tmp/kde-mike/k3b_audio_0_08.inf /home/mike/tmp/kde-mike/k3b_audio_0_09.inf /home/mike/tmp/kde-mike/k3b_audio_0_10.inf /home/mike/tmp/kde-mike/k3b_audio_0_11.inf /home/mike/tmp/kde-mike/k3b_audio_0_12.inf /home/mike/tmp/kde-mike/k3b_audio_0_13.inf /home/mike/tmp/kde-mike/k3b_audio_0_14.inf /home/mike/tmp/kde-mike/k3b_audio_0_15.inf /home/mike/tmp/kde-mike/k3b_audio_0_16.inf /home/mike/tmp/kde-mike/k3b_audio_0_17.inf /home/mike/tmp/kde-mike/k3b_audio_0_18.inf /home/mike/tmp/kde-mike/k3b_audio_0_19.inf /home/mike/tmp/kde-mike/k3b_audio_0_20.inf /home/mike/tmp/kde-mike/k3b_audio_0_21.inf /home/mike/tmp/kde-mike/k3b_audio_0_22.inf commit 92ff174b2e7be1a3402ab573567be272ebc2400c branch master Author: Cédric Borgese <cedric.borgese@gmail.com> Date: Mon Dec 6 00:14:29 2010 +0100 Don't read from the track reader when it's in "at end" state to avoid false error notification. Thanks to Cédric Borgese for a patch! BUG: 257058 CCMAIL: cedric.borgese@gmail.com diff --git a/libk3b/projects/audiocd/k3baudioimager.cpp b/libk3b/projects/audiocd/k3baudioimager.cpp index 75186b7..0fa5c9d 100644 --- a/libk3b/projects/audiocd/k3baudioimager.cpp +++ b/libk3b/projects/audiocd/k3baudioimager.cpp @@ -117,7 +117,7 @@ bool K3b::AudioImager::run() // // Read data from the track // - while( (read = trackReader.read( buffer, sizeof(buffer) )) > 0 ) { + while( !trackReader.atEnd() && (read = trackReader.read( buffer, sizeof(buffer) )) > 0 ) { if( !d->ioDev ) { waveFileWriter.write( buffer, read, K3b::WaveFileWriter::BigEndian ); } |