Re: growisofs won't write double layer DVDs

2009-01-09 Thread Andy Polyakov

Christian,

I feel that I have to apologize for Joerg's rude behavior.


Cdrecord will tell the drive to do laser power calibration

cdrecord does not do that to DVD+ media.

Wrong: cdrecord of course does a power calibration for DVD+

LOCAL BOOL

...

Interesting that you seem to have time to write this but to not like to support 
mkisofs.


If you really have problems with mkisofs, please make reports in a way that
allows to fix them.


Joerg, if you want to make personal remark, do it in proper context, or 
at least have decency to omit originator from explicit Cc: list. It's 
indeed nothing but rude to flip conversation like this, as if person 
just ceased to exist. A.



--
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org



Re: growisofs won't write double layer DVDs

2009-01-09 Thread Andy Polyakov
I recommend you to use cdrecord instead of growisofs. 
Cdrecord will tell the drive to do laser power calibration
  

cdrecord does not do that to DVD+ media.



Wrong: cdrecord of course does a power calibration for DVD+
  


I thought it bypassed that for DVD+,


It is.

I saw it in the code and can't find 
it again. It looked as if a text which fails on DVD+ went around that logic.
Does cdr_opc get set somewhere I'm missing? That could explain why some 
media I have don't work well with one burner and cdrecord.


It should be noted that explicit *host-initiated* OPC procedure is *not* 
defined for single-layer DVD+ media. Meaning that if you refer to single 
layer media, then there hardly is cure (at least not in pure MMC terms). 
As it turns out it, host-initiated OPC, is defined for double layer 
though and it might make difference...


Christian [and Bill], if you have energy and media to spare, could you 
test following:


- download dvd+rw-tools source and unpack;
- copy attached opc.cpp to dvd+rw-tools source catalog;
- change directory to dvd+rw-tools source catalog;
- compile it with 'g++ opc.cpp -o opc';
- load media;
- execute './opc /dev/dvd';
- then *without reloading the media* attempt growisofs recording;

It might be interesting to have a look at verbose dvd+rw-mediainfo 
output before and after opc. In other words also execute dvd+rw-medianfo 
/dev/dvd -v before and after opc (all *without reloading the media*), 
compare them and send them [*if* they are different]. A.



#include "transport.hxx"

int main(int argc,char *argv[])
{ Scsi_Command cmd;
  int err;

if (!cmd.associate(argv[1])) perror("can't open"),exit(1);

cmd[0]=0x54;
cmd[1]=0x1;
cmd[9]=0;

if (err=cmd.transport()) sperror("SEND OPC INFORMATION",err);

wait_for_unit (cmd,NULL);
}


Re: growisofs won't write double layer DVDs

2009-01-08 Thread Bill Davidsen

Joerg Schilling wrote:

Andy Polyakov  wrote:

  
I recommend you to use cdrecord instead of growisofs. 
Cdrecord will tell the drive to do laser power calibration
  

cdrecord does not do that to DVD+ media. A.



Wrong: cdrecord of course does a power calibration for DVD+
  


I thought it bypassed that for DVD+, I saw it in the code and can't find 
it again. It looked as if a text which fails on DVD+ went around that logic.
Does cdr_opc get set somewhere I'm missing? That could explain why some 
media I have don't work well with one burner and cdrecord.


--
Bill Davidsen 
 "Woe unto the statesman who makes war without a reason that will still
 be valid when the war is over..." Otto von Bismark 





Re: growisofs won't write double layer DVDs

2009-01-08 Thread Joerg Schilling
Andy Polyakov  wrote:

> >>> Cdrecord will tell the drive to do laser power calibration
> >> cdrecord does not do that to DVD+ media.
> > 
> > Wrong: cdrecord of course does a power calibration for DVD+
>
> LOCAL BOOL
...

Interesting that you seem to have time to write this but to not like to support 
mkisofs.

If you really have problems with mkisofs, please make reports in a way that
allows to fix them.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org



Re: growisofs won't write double layer DVDs

2009-01-08 Thread Andy Polyakov

Cdrecord will tell the drive to do laser power calibration

cdrecord does not do that to DVD+ media.


Wrong: cdrecord of course does a power calibration for DVD+


LOCAL BOOL
do_opc(scgp, dp, flags)
SCSI*scgp;
cdr_t   *dp;
UInt32_t flags;
{
if ((flags & F_DUMMY) == 0 && dp->cdr_opc) {
if (debug || lverbose) {
printf("Performing OPC...\n");
flush();
}
if (dp->cdr_opc(scgp, NULL, 0, TRUE) < 0) {
errmsgno(EX_BAD, "OPC failed.\n");
if ((flags & F_FORCE) == 0)
return (FALSE);
}
}
return (TRUE);
}

So it's up to [non-NULL!] dp->cdr_opc. And what's dp->cdr_opc for DVD+ 
media?


grep OPC drv_dvdplus.c
(int(*)__PR((SCSI *, caddr_t, int, int)))NULL,  /* no OPC */
(int(*)__PR((SCSI *, caddr_t, int, int)))NULL,  /* no OPC */
(int(*)__PR((SCSI *, caddr_t, int, int)))NULL,  /* no OPC */

A.


--
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org



Re: growisofs won't write double layer DVDs

2009-01-08 Thread Joerg Schilling
Andy Polyakov  wrote:

> > I recommend you to use cdrecord instead of growisofs. 
> > Cdrecord will tell the drive to do laser power calibration
>
> cdrecord does not do that to DVD+ media. A.

Wrong: cdrecord of course does a power calibration for DVD+


+Á
Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org



Re: growisofs won't write double layer DVDs

2009-01-08 Thread Andy Polyakov

I'm trying to write double layer DVDs on my TS-L632C DVD burner.
It has always handled single layer DVDs fine and this is the first
time I have a problem. What I get is this...

Executing 'mkisofs -dvd-video -V DVD /home/abc/dvd | builtin_dd of=/dev/sr0 
obs=32k seek=0'
Setting input-charset to 'UTF-8' from locale.
  0.17% done, estimate finish Thu Jan  1 13:43:04 2009
  0.35% done, estimate finish Thu Jan  1 13:43:04 2009
  0.52% done, estimate finish Thu Jan  1 13:43:04 2009
/dev/sr0: splitting layers at 1437552 blocks
:-[ SEND DVD+R DOUBLE LAYER RECORDING INFORMATION failed with SK=3h/POWER 
CALIBRATION AREA ERROR]: Input/output error


growisofs still does not write completely readable error messages :-(


This is an opinion. The fact is that whether or not and when power 
calibration is performed is left to firmware discretion. "Not" refers to 
fact that firmware might choose pre-defined profile. "And when" on the 
other hand varies from firmware to firmware, some firmware start the 
calibration procedure at a WRITE command, others at SEND DVD STRUCTURE 
with DVD+R DL layer break position. As result power calibration errors 
get accounted to either of these commands. Christian, as for error 
interpretation and advice, see Thomas' post.


I recommend you to use cdrecord instead of growisofs. 
Cdrecord will tell the drive to do laser power calibration


cdrecord does not do that to DVD+ media. A.


--
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org



Re: growisofs won't write double layer DVDs

2009-01-07 Thread Joerg Schilling
Christian Lerrahn  wrote:

> Hi,
> I'm trying to write double layer DVDs on my TS-L632C DVD burner.
> It has always handled single layer DVDs fine and this is the first
> time I have a problem. What I get is this...
>
> Executing 'mkisofs -dvd-video -V DVD /home/abc/dvd | builtin_dd of=/dev/sr0 
> obs=32k seek=0'
> Setting input-charset to 'UTF-8' from locale.
>   0.17% done, estimate finish Thu Jan  1 13:43:04 2009
>   0.35% done, estimate finish Thu Jan  1 13:43:04 2009
>   0.52% done, estimate finish Thu Jan  1 13:43:04 2009
> /dev/sr0: splitting layers at 1437552 blocks
> :-[ SEND DVD+R DOUBLE LAYER RECORDING INFORMATION failed with SK=3h/POWER 
> CALIBRATION AREA ERROR]: Input/output error

growisofs still does not write completely readable error messages :-(

I recommend you to use cdrecord instead of growisofs. 
Cdrecord will tell the drive to do laser power calibration and
it will print you a completely human readable error message in case it still 
fails.

If cdrecord fails with the same problem, then your drive does not like the 
medium.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily


-- 
To UNSUBSCRIBE, email to cdwrite-requ...@other.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@other.debian.org