Hello,

I am using (under gentoo) :
Cdrecord-ProDVD-ProBD-Clone 3.00 (x86_64-unknown-linux-gnu) Copyright (C) 
1995-2010 Jörg Schilling

The DVD burn (DL) ended so :

Track 01: 3619 of 8150 MB written (fifo 100%) [buf 100%]   3.0x. 56.68% done, 
estimate finish Wed Jul 28 15:27:26 2010
Track 01: 3626 of 8150 MB written (fifo 100%) [buf 100%]   1.1x.cdrecord: 
Input/output error. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 1C 54 F0 00 00 10 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 72 0B 00 00 00 00 00 0E 09 0C 00 00 00 03 00 00
Sense Key: 0x0 No Additional Sense, Segment 11
Sense Code: 0x00 Qual 0x03 (setmark detected) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 3.867s timeout 200s

write track data: error after 3802628096 bytes
cdrecord: A write error occured.
cdrecord: Please properly read the error message above.
Writing  time:  748.069s
Average write speed   8.2x.
Min drive buffer fill was 99%
Fixating...
cdrecord: faio_wait_on_buffer for writer timed out.
operation 99% done
Fixating time:  604.274s
cdrecord: fifo had 148023 puts and 116048 gets.
cdrecord: fifo was 0 times empty and 33620 times full, min fill was 99%.

The script I use to burn is :

#!/bin/bash
if [ -z "$2" ]; then
        echo "usage : $0 DVD_title DVD_dir [write speed]"
        echo "That will write a DVD with video structure if there a VIDEO_TS."
        echo "And without video structure if without VIDEO_TS dir"
        exit
fi

TITLE_SIZE=`echo $1|wc -c`
if [ $TITLE_SIZE -ge 33 ]; then
        echo "$1 is $TITLE_SIZE long (33 is the limit)"
        exit
fi

UDF=`find -L $2 -size +2G|wc -w`

unlock() {
        cdrdao unlock --driver generic-mmc && sleep 1
}

secure() {
        RETVAL=$?
        if [ $RETVAL -eq 0 ]; then
                echo OK, the size is $SIZE.
        else
                exit
        fi
}

sync

ulimit -l unlimited

if [ -z "$3" ]; then
        COMCD="-speed=4 -v dev=5,0,0 -dao fs=1000m "
else
        COMCD="-speed=$3 -v dev=5,0,0 -dao fs=1000m "
fi

if [ $UDF -eq 0 ]; then
        COM="-f -J -r -graft-points "

        VIDEO=`ls $2|grep -i VIDEO_TS 2> /dev/null   |wc -w`
        if [ $VIDEO -eq 0 ]; then
                OPTS=$COM
                SIZE=`mkisofs -f -J -r -graft-points -quiet -print-size -V $1 
$2`
                secure
        else
                OPTS="$COM -dvd-video"
                SIZE=`mkisofs -f -J -r -graft-points -quiet -print-size 
-dvd-video  -V $1 $2`
                secure
        fi
        mkisofs $OPTS -V $1 $2|cdrecord $COMCD tsize="$SIZE"s -
        secure
else
        COM="-iso-level 3 -UDF -udf -f -J -r -graft-points "

        VIDEO=`ls $2|grep -i VIDEO_TS 2> /dev/null   |wc -w`
        if [ $VIDEO -eq 0 ]; then
                OPTS=$COM
                SIZE=`mkisofs -iso-level 3 -UDF -udf -f -J -r -graft-points 
-quiet -print-size -V $1 $2`
                secure
        else
                OPTS="$COM -dvd-video"
                SIZE=`mkisofs -iso-level 3 -UDF -udf -f -J -r -graft-points 
-quiet -print-size -dvd-video -V $1 $2`
                secure
        fi
        mkisofs $OPTS -V $1 $2|cdrecord $COMCD tsize="$SIZE"s -
        secure
fi
unlock
eject /dev/sr0
sleep 1
eject -t /dev/sr0
cdDir=0
while [ "$cdDir" == "0" ]; do
        sleep 1
        mount /mnt/cdrom && ls -alh /mnt/cdrom && DF && umount /mnt/cdrom && 
cdDir=1
done
sleep 1
eject /dev/sr0

OPTIONS="delete reburn exit"
select opt in $OPTIONS; do
        if [ "$opt" = "delete" ]; then
                RM $2
                exit
        elif [ "$opt" = "reburn" ]; then
                echo $0 $*
                exit
        elif [ "$opt" = "exit" ]; then
                exit
        else
                echo bad option
        fi
done

-- 
Grégoire Favre, Chemin de Mallieu 15, 1009 Pully, +41 21 550 61 93 
prof -> Gymnase de Chamblandes, Avenue des Désertes 29, 1009 Pully
sip -> [email protected]  / gsm -> +41 78 765 65 00
http://www.gycham.vd.ch/~greg / netvoip.ch : +41 21 544 77 44


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Reply via email to