Bug 276002

Summary: 800MB / 90 minute media not recognized
Product: [Applications] k3b Reporter: Gregor B. Rosenauer <gregor.rosenauer>
Component: Audio ProjectAssignee: Michał Małek <michalm>
Status: RESOLVED FIXED    
Severity: normal CC: kevin.kofler, trueg
Priority: NOR    
Version: 2.0.2   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregor B. Rosenauer 2011-06-18 21:48:50 UTC
Version:           2.0.2 (using KDE 4.6.4) 
OS:                Linux

K3b does not correctly identify my Platinum 800MB (90min audio) media and so I cannot burn to the full size. K3b reports 700MB and won't even let me manually overburn (tried using both "overburn" and "unsafe options" in expert mode).

Here is the ATIP info for my burner and disc:

[root@grexbox grexe]# cdrecord -atip
Device was not specified. Trying to find an appropriate drive...
Detected CD-R drive: /dev/sr0
Device type    : Removable CD-ROM
Version        : 5
Response Format: 2
Capabilities   : 
Vendor_info    : 'HL-DT-ST'
Identification : 'BD-RE  GGW-H20L '
Revision       : 'YL05'
Device seems to be: Generic mmc2 DVD-R/DVD-RW.
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
ATIP info from disk:
  Indicated writing power: 4
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, low Beta category (A-) (2)
  ATIP start of lead in:  -14888 (96:43/37)
  ATIP start of lead out: 359849 (79:59/74)

The medium/dye is listed here (though not the same EAN code, and with a wrong size!):
http://www.instantinfo.de/detailcdr.php?ID=1698

Burning the individual wavs with cdrecord manually using "-overburn" produced a perfectly readable CD-R.


Reproducible: Always




OS: Linux (x86_64) release 2.6.38-CHAKRA
Compiler: gcc
Comment 1 Gregor B. Rosenauer 2011-06-18 21:49:37 UTC
see also this newsgroup-thread:
http://www.unews.info/152474-k3b-800mb-cd-brennen.html
Comment 2 Kevin Kofler 2011-09-17 15:17:37 UTC
Same problem here. The 10% overburning tolerance in IsOverburningAllowed in libk3b/core/k3bglobals.cpp is insufficient, it sums up to only 88 minutes, we need at least 12.5% tolerance, but there's also CD-R99 media which needs a 23.75% tolerance.
Comment 3 Kevin Kofler 2011-09-17 15:19:49 UTC
(I'd actually suggest doing away with the arbitrary tolerance entirely and just always allowing overburn if the user went to the trouble of enabling the option.)
Comment 4 Kevin Kofler 2011-09-17 15:24:48 UTC
If you insist on keeping the tolerance, I'd suggest a 25% (1/4) tolerance: That would cover CD-R90 and CD-R99 and still prevent trying to burn the average DVD ISO on a CD.
Comment 5 Kevin Kofler 2011-09-17 16:31:51 UTC
Patch: https://git.reviewboard.kde.org/r/102648/
Comment 6 Kevin Kofler 2011-09-17 20:27:06 UTC
Git commit 6163e98ca0c8ca68bfa7d52e877b2de419d6f67c by Kevin Kofler.
Committed on 17/09/2011 at 18:18.
Pushed by kkofler into branch 'master'.

K3b::IsOverburnAllowed: Increase tolerance from 10% to 25%.

10% are not enough to allow using CD-R90 and CD-R99 media to full capacity.
The new 25% tolerance allows using those media while still catching the common
case of DVD ISO vs. CD media.

BUG: 276002
REVIEW: 102648

M  +1    -1    libk3b/core/k3bglobals.cpp

http://commits.kde.org/k3b/6163e98ca0c8ca68bfa7d52e877b2de419d6f67c
Comment 7 Kevin Kofler 2011-09-17 20:28:33 UTC
Git commit b0df9e7771ac9148004187bb53ba13ac40b01cae by Kevin Kofler.
Committed on 17/09/2011 at 18:18.
Pushed by kkofler into branch '2.0'.

K3b::IsOverburnAllowed: Increase tolerance from 10% to 25%.

10% are not enough to allow using CD-R90 and CD-R99 media to full capacity.
The new 25% tolerance allows using those media while still catching the common
case of DVD ISO vs. CD media.

BUG: 276002
REVIEW: 102648

M  +1    -1    libk3b/core/k3bglobals.cpp

http://commits.kde.org/k3b/b0df9e7771ac9148004187bb53ba13ac40b01cae
Comment 8 Kevin Kofler 2011-09-17 21:34:36 UTC
Git commit 9271f2f4cc664bd5f6ff20b482c28cd8009250d6 by Kevin Kofler.
Committed on 17/09/2011 at 23:34.
Pushed by kkofler into branch 'master'.

K3b::IsOverburnAllowed: Don't count used capacity twice.

CCBUG: 276002

M  +1    -1    libk3b/core/k3bglobals.cpp

http://commits.kde.org/k3b/9271f2f4cc664bd5f6ff20b482c28cd8009250d6
Comment 9 Kevin Kofler 2011-09-17 21:35:33 UTC
Git commit 8270d2853f2962facdf6f9ea6d669922d6c78aba by Kevin Kofler.
Committed on 17/09/2011 at 23:34.
Pushed by kkofler into branch '2.0'.

K3b::IsOverburnAllowed: Don't count used capacity twice.

CCBUG: 276002

M  +1    -1    libk3b/core/k3bglobals.cpp

http://commits.kde.org/k3b/8270d2853f2962facdf6f9ea6d669922d6c78aba