From owner-freebsd-questions Wed Dec 13 8:52:44 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 13 08:52:41 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from k9k203-3.kam.afb.lu.se (k9k203-3.kam.afb.lu.se [194.47.220.194]) by hub.freebsd.org (Postfix) with SMTP id 2C7BC37B402 for ; Wed, 13 Dec 2000 08:52:37 -0800 (PST) Received: (qmail 4580 invoked from network); 13 Dec 2000 16:52:37 -0000 Received: from unknown (HELO gollum.k9k203-3.kam.afb.lu.se) (192.168.0.2) by k9k203-3.kam.afb.lu.se with SMTP; 13 Dec 2000 16:52:37 -0000 Received: (qmail 44612 invoked by uid 1001); 13 Dec 2000 16:51:17 -0000 Date: Wed, 13 Dec 2000 17:51:16 +0100 From: Sverre Valgeirsson To: Mike Meyer Cc: Sverre Valgeirsson , questions@freebsd.org Subject: Re: burncd and .cue SOLVED Message-ID: <20001213175116.I58106@gollum.k9k203-3.kam.afb.lu.se> Reply-To: e96sv@efd.lth.se References: <46671453@toto.iv> <14896.10408.392561.274548@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <14896.10408.392561.274548@guru.mired.org>; from mwm@mired.org on Thu, Dec 07, 2000 at 06:17:44PM -0600 Sender: sverre@k9k203-3.kam.afb.lu.se Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > Since nobody else answered, I'll take a crack at it based on what I > know about .cue files from cdrdao. > > If I understand things correctly, .cue file is a table of contents > describing the tracks in the .bin file. If your .bin file consists of > a single track, burning it with burncd as you describe should work. If > it's multiple tracks - well, that could explain the problem you're > seeing. It was single track, but it didn't work. I found this little piece of code that converts bin/raw to iso though (author unknown). bin2iso.c: #include /* G L O B A L D E F I N E S */ #define byte unsigned char #define SIZERAW 2352 #define SIZEISO 2048 FILE *INPUT, *OUTPUT; /* /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/ */ int main( argc, argv ) int argc; char *argv[]; { byte buf[SIZERAW+100]; /* Tell them what I am. */ fprintf (stderr, "raw2iso - Converts RAW format files to ISO format - V1.0\n"); /* Input -- process -- Output */ if ( argc != 3 ) return 1; INPUT = fopen( argv[1], "rb" ); OUTPUT = fopen( argv[2], "wb" ); memset( &buf[0], '\0', sizeof( buf ) ); while( fread( &buf[0], SIZERAW, 1, INPUT ) ) { fwrite( &buf[0]+16, SIZEISO, 1, OUTPUT ); memset( &buf[0], '\0', sizeof( buf ) ); }; return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message