From patchwork Wed Apr 6 20:59:38 2005 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "C.Y.M" X-Patchwork-Id: 11848 Received: from dialup-4.246.12.175.dial1.sanjose1.level3.net ([4.246.12.175] helo=nofear.bounceme.net) by www.linuxtv.org with esmtp (Exim 4.34) id 1DJJds-0001I4-Ve for vdr@linuxtv.org; Thu, 07 Apr 2005 01:09:01 +0200 Received: from [10.1.1.66] (hades [10.1.1.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by nofear.bounceme.net (Postfix) with ESMTP id 3DC467358A for ; Wed, 6 Apr 2005 13:55:45 -0700 (PDT) Message-ID: <42544DBA.1070609@syphir.sytes.net> Date: Wed, 06 Apr 2005 13:59:38 -0700 From: "C.Y.M" Organization: CooLNeT User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Vdr X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Subject: [vdr] Adding ATAPI support for dvdrecord to vdrconvert X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: syphir@syphir.sytes.net, Klaus Schmidinger's VDR List-Id: Klaus Schmidinger's VDR List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Apr 2005 23:09:02 -0000 Status: O X-Status: X-Keywords: X-UID: 1470 When I look at the code in burn.sh (from cvs of vdrconvert), I have noticed that a parameter is missing to support ATAPI writers with dvdrecord. The attached patch seems to work. Also, a change to vdrconvert.env is required if this patch is applied. For example: #MEDIAWRITER="/dev/hdc:0,0,0" MEDIAWRITER="/dev/hdc:ATAPI:0,0,0" Regards, C.Y.M. --- vdrconvert/bin/burn.sh.orig 2004-12-29 04:35:38.000000000 -0800 +++ vdrconvert/bin/burn.sh 2005-02-12 06:16:11.000000000 -0800 @@ -49,7 +49,8 @@ # Devices [ -z "$MEDIAWRITER" ] && MEDIAWRITER="/dev/scd0:0,0,0" WRITER=`echo $MEDIAWRITER|cut -f 1 -d ':'` -WRITER_ADR=`echo $MEDIAWRITER|cut -f 2 -d ':'` +WRITER_DEV=`echo $MEDIAWRITER|cut -f 2 -d ':'` +WRITER_ADR=`echo $MEDIAWRITER|cut -f 3 -d ':'` # Options [ -z "$DVDPLUS_RECORD_OPTS" ] && DVDPLUS_RECORD_OPTS="-Z" [ -z "$DVDMIN_RECORD_OPTS" ] && DVDMIN_RECORD_OPTS="-dao driveropts=burnfree" @@ -174,7 +175,7 @@ $SVDRPSEND MESG $MEDIA_MSG_START_WRITE_IMAGE >> /dev/null 2>&1 case $DVDTYPE in "DVD-RW"|"DVD-R") - $DVDMIN_RECORDCMD $DVDMIN_RECORD_OPTS dev=$WRITER_ADR $DATA + $DVDMIN_RECORDCMD $DVDMIN_RECORD_OPTS dev=$WRITER_DEV:$WRITER_ADR $DATA ;; *) $DVD_RECORDCMD $DVDPLUS_RECORD_OPTS "$WRITER=$DATA"