Are you sure it's AVI to CPK you're talking about and not the other way around? According to RadSil, this is the command line syntax on how to use it:
dos4gw avi2cpk.exe <infile> <outfile>
You'll need dos4gw.exe because avi2cpk.exe isn't properly linked to dos4gw.
BTW, a practical use of Avi2cpk would be to change the FMV's of some of the games (that plays CPK movies) to something else. BTW, RadSil, I still haven't experimented yet, I promise that I'll let you know when I have.
Edit: Didn't realize that <infile> and <outfile> weren't displayed. It's now fixed.
(Edited by MasterAkumaMatata at 2:01 pm on Oct. 15, 2001)
I'd experiment by taking a game that uses CPK movies and replace those CPK movies with ones that I've converted from my customized AVI movies.
You can probably use CDmage 1.02.1 Beta 5 to replace the CPK movies from a Saturn ISO with the one you made, or you could try to re-master the entire CD by extracting all the files to your HDD, replace the CPK files, create an ISO from those files using MKISOFS.EXE, patch the boot sector back into that ISO you just created with IPINS.EXE or some fancy hex editor.
To preserve the original file ordering, you can use IsoBuster to output a text file containing the Tree Info of the CD and then use some tool called F2S.EXE to convert it to a sort text file suitable to use with MKISOFS.EXE to re-create an ISO with the orginal file ordering.
The last step would be to burn and test on your Saturn.
If the boot sector (first 16 sectors, i.e., 16 x 2,048 = 32,768 bytes) came from a Saturn ISO, then I think it should work. You have to keep in mind that the region coding of the boot sector you are patching must be compatible with the region of your Saturn console.
BTW, try to keep the total size of your ISO image (data + audio tracks) less than a certain time length, something like under 66 minutes... I'm not sure, but I do remember someone mentioning that Saturn games isn't supposed to exceed a certain length. To calculate the lengh of a mode1/2048 ISO file, divide its total file size by 153,600 bytes (i.e., 75 x 2,048 bytes) to give you how long in seconds, then divide by 60 to get minutes.
So your intent was to try to see if you could play a full length movie (e.g., 45 minutes) using this technique? Hahaha, I thought you wanted to see if the converted movie would work first by trying to replace a CPK movie in a game that plays CPK movies.
If you wish to identify that Saturn command line, try asking the more qualified users in the Developers Central forum; they may direct you to the appropriate documentation of the Saturn's movie playback capabilities. I'm only an amateur.
I think you should take it one step at a time. This means that you should make sure the converted .CPK movie works on your Saturn first, using the methods I've mentioned above, BEFORE you attempt your movie playback command line theory.