From owner-freebsd-multimedia Mon Oct 9 15: 7: 1 2000 Delivered-To: freebsd-multimedia@freebsd.org Received: from flux.ptc.spbu.ru (flux.ptc.spbu.ru [195.19.225.195]) by hub.freebsd.org (Postfix) with ESMTP id 11E9237B503 for ; Mon, 9 Oct 2000 15:06:58 -0700 (PDT) Received: from snark.ptc.spbu.ru (snark.ptc.spbu.ru [195.19.225.131]) by flux.ptc.spbu.ru (8.9.3/8.9.3/cf-1.0.rbl) with ESMTP id CAA60732; Tue, 10 Oct 2000 02:06:51 +0400 (MSD) Received: (from uwe@localhost) by snark.ptc.spbu.ru (8.8.8+Sun/8.8.8) id CAA04136; Tue, 10 Oct 2000 02:06:51 +0400 (MSD) Date: Tue, 10 Oct 2000 02:06:51 +0400 From: "Valeriy E. Ushakov" To: Heiko Schaefer <320048919767-0001@t-online.de> Cc: freebsd-multimedia@FreeBSD.ORG Subject: Re: vcd Message-ID: <20001010020651.B4051@snark.ptc.spbu.ru> References: <14790.25254.881225.246152@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.3i In-Reply-To: ; from "Heiko Schaefer" on Mon, Oct 09, 2000 at 23:40:08 Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Oct 09, 2000 at 23:40:08 +0200, Heiko Schaefer wrote: > now i gathered that sys/cdio.h is where the action is. Funny thing is that the required ioctl is in (note the R). > what i am really confused about is: is there any way to read raw > data off a video cd that works on both ide and scsi ? As I already reported, I changed atapi-cd.c (acd_start) on my system from: ccb[0] = ATAPI_READ_CD; ! ccb[9] = 0x10; to ccb[0] = ATAPI_READ_CD; ! ccb[9] = 0xf8; Accoring to Table 99, "Number of Bytes Returned Based on Data Selection Field" on page 147 of ATAPI draft (8020rev26.pdf) - flags 0xf8 will make READ-CD command to return raw 2352 bytes for *all* track modes. 0x10 means user data only 0xf8 means everything in the sector (sync & all headers & user data & edc/ecc). Well, may be 0x10 a logical choice . it didn't worked for me ;-) . it doesn't allow raw reads, would people need them (perhaps code should check for blocksize == 2352 and use 0xf8 assuming 2352 implies a raw read?) With that one line patch to the driver I wrote a simple program that uses CDRIOCSETBLOCKSIZE, just as Soren described, and I can grab/view VCDs happily. SY, Uwe -- uwe@ptc.spbu.ru | Zu Grunde kommen http://www.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message