Date: Wed, 13 Dec 2000 17:51:16 +0100 From: Sverre Valgeirsson <e96sv@efd.lth.se> To: Mike Meyer <mwm@mired.org> Cc: Sverre Valgeirsson <e96sv@efd.lth.se>, questions@freebsd.org Subject: Re: burncd and .cue SOLVED Message-ID: <20001213175116.I58106@gollum.k9k203-3.kam.afb.lu.se> In-Reply-To: <14896.10408.392561.274548@guru.mired.org>; from mwm@mired.org on Thu, Dec 07, 2000 at 06:17:44PM -0600 References: <46671453@toto.iv> <14896.10408.392561.274548@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <stdio.h> /* 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001213175116.I58106>