
MCF-CD Maker - Build Mode2/Form2 CD/XA Bridge images with any file!
===================================================================

Disclaimer
----------

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


Purpose
-------

With this tool you can build a CD/XA Bridge image using any file you want
(not just MPEGs). What's the point? Well, using Mode2/Form2 you have bigger
user data sector sizes so you can fit more capacity in a single CD-R (up to
800 MB of data in a 80 min. disc).

What's the drawback, then? There is an issue on how Windows handles these
discs. It reads the files burned this way as RAW data, and it also appens a
RIFF/CDXA header at the beggining of the file. So you cannou burn anything
you want ant then just see it like any other file: you must deal with this
RIFF/CDXA stuff.

I've called if MCF-CD Maker because this is originally intended to be a
MCF-CD helper tool. However you can use it to burn anything, not just MCF.
Be aware that to make a *real* MCF-CD you must fed it with properly
formatted MCF files (i.e. content formatted in chunks of 2324 bytes). The
input file will just be read in 2324 bytes chunks and put into M2F2 sectors
on the CD.


Usage
-----

> mcfcdmaker file1 file2 file3...

The source files can be anything. They will be renamed to AVSEQ01.DAT,
AVSEQ02.DAT, etc (i.e. standard VCD names) and put in the root directory of
the CD image. If the source files are not an exact multiple of 2324 bytes
padding zeroes will be added.

Once it's finished you will end with three files:

mcf.cue            CUE file for CDR-WIN
mcf.toc            TOC file for cdrdao
mcf_image.bin      BIN image

To burn with CDR-WIN just load the mcf.cue file and burn it.

To burn with cdrdao:

> cdrdao scanbus

> cdrdat write --device 1,0,0 --driver generic-mmc mcf.toc

You can also use any other recording software that supports raw BIN images,
however this won't be a real CD/XA Bridge, but a single track, mixed M2F1/
M2F2 CD... anyways Windows can't see the difference. To burn with Nero:

1. Choose File/Burn Image menu
2. Load the BIN file
3. Select Mode2
4. Burn!


Reading
-------

Currently there is no available software capable of direct reading these
files. I.e. you can load and copy them to the hard disc, but it won't be
recognized. Why? Because Windows adds a RIFF/CDXA header to every file, as
well as RAW sector stuff.

To be able to play them directly from the CD, you'll need a DirectShow
filter supporting RIFF/CDXA parsing, or at least a player with this
capability. I'm sure now that the format is out, it won't last much before
we will see such software.

Currently for testing purposes you can convert the files back to its
original state with a helper tool I've included: dat2file. The usage is:

> dat2file d:\avseq01.dat myfile.ext

Beware that if the source file was not an exact multiple of 2324, there
will be some padding zeroes at the end of the file.


History
-------

2002/04/18 - beta 1.1

mkvcdfs.c:  added CUE output support
vcdisofs.c: lowered ISO track size to 302 sectors (~700 Kb)

2002/04/17 - beta 1.0 - first release, based on vcdtools-0.4
 
mkvcdfs.c:  changed output file method to fopen() (open() worked in text
            mode, perhaps a MinGW bug?)
mkvcdfs.c:  removed 30+45 empty sector padding in M2F2 track
mkvcdfs.c:  now will accept any file (not just MPEG)
mkvcdfs.c:  changed CD/XA track subheader to Form2/Data
mkvcdfs.c:  fixed DAT file length and track file length:
            * DAT file now has right size (missed 1 sector)
            * CD/XA track now has 2 "ghost" sectors at the end, to
              prevent any potential TAO problems
vcdisofs.c: fixed make_path_tables() to not add root files as dirs
vcdisofs.c: DAT files are added to the root directory instead of MPEGAV
vcdisofs.c: removed unneeded VCD stuff
defaults.h: output files renamed to mcf.toc and mcf_image.bin
defaults.h: volume name changed to "MCF-CD"
defaults.h: removed unneeded CDI_APPLICATION_ID


DeXT @ 2002
