Home | Forums | What's new | Resources | |
How To Guide: Encoding Cinepak Videos Properly |
TrekkiesUnite118 - Oct 11, 2019 |
TrekkiesUnite118 | Oct 11, 2019 | |||
So encoding Cinepak Videos can be a bit cumbersome. While Cinepak encoders are a dime a dozen, finding one that will produce something that the Saturn likes while still looking decent is a bit more challenging. AviToSaturn while useable, tends to produce sub-par results, and always garbles the audio requiring you to remux it with FFMPEG. So the best process at this time is to instead use the old Mac tools and go through the official encoding pipeline Sega and other developers used. So here are the steps. You will need the following:
Encoding your video:
And that's it. You should now have a Saturn compliant Cinepak file in decent quality. You can now try it in your game or try it in MadRoms CPK Viewer application that was included in the Cinepak libraries linked above. Note: MovieToSaturn can sometimes throw fits and will give you an error. Usually this means there's something it doesn't like about your file. The best I can tell you is to just try exporting it again. I've had it throw a fit on one file, then when I re-exported it with the same settings it was happy with that one. |
vbt | Oct 13, 2019 | |||
good job @TrekkiesUnite118... |
TrekkiesUnite118 | Oct 24, 2019 | |||
So after encoding all the subtitled FMVs for Sakura Wars, I figured I'd see how far I could push the quality in this setup. So here are the results:
The video is encoded with quality set the highest in the Quicktime tools, Video Bitrate capped at 270KB/s, and audio is at 16-bit Mono at 22050Hz. This resulted in a file that was ~290KB/s. The reason I went with this video was because all the crazy anime stuff going on in a lot of the shots seemed like a good test for how well the compression could handle fast moving objects and what not. |
vbt | Apr 11, 2020 | |||
here is the converter for mac |
Ardiloso | Jun 14, 2020 | |||
Ok, @TrekkiesUnite118... do you have any tips? MovieToSaturn says the audio and video lenghts are different but this is a lie. I did every step of your guide. I've tried to render the video again in virtualdub with various settings but I always get this error. It's terrible to be stuck in the last phase after everything I got through lol. |
TrekkiesUnite118 | Jun 14, 2020 | |||||||||
The first error means your audio is going to be desynced. Sometimes it's not actually that bad other times it can be way off. The only way to know is to watch the video and see how it looks. The second one can sometimes just happen. The only advice I can give is to just keep trying it. Sometimes I've found having the video open in Quicktime will make the error go away. However:
What do you mean by this? Are you not using the Quicktime Converter? If so then that's not going to work. MovieToSaturn only works with .mov files that are created from Quicktime or older versions of Adobe Premiere. It will not work with files made on modern systems using things like FFMPEG or Virtual Dub. |
Ardiloso | Jun 15, 2020 | |||||
Thanks, I will try again later with the video opened. Oh, yes, I use the quicktime to convert the videos. I used virtualdub to save an uncompressed .avi before going trough quicktime 2.5. Update: Managed to make it work and replaced it in the iso but the movie did not play on the emulator. Maybe I messed up the settings somehow. Will try again later. Thanks. Update 2: Success! I'm trying to replace Megaman X4's videos with subbed undub ones. The problem is: the game is super picky with the file size. My video was larger than the original so the game wouldn't play it but after some adjustments it played fine. Too bad I won't be able to make ones with better image quality tho. Thanks for the help @TrekkiesUnite118... |
TrekkiesUnite118 | Jun 15, 2020 | |||
How are you replacing the files in the ISO? If you rebuild it properly file size shouldn't be an issue. |
Ardiloso | Jun 15, 2020 | |||||
Maybe this is the problem? I use an old software (winiso v5.3 on windows XP VM). I just delete the old file and import the new one. I don't know the best way to do this tbh. Edit: Also, I have 2 problems now. The video has a tearing when converting to .cpk (attachment) and at the first 0,5 second there is an audio static/corruption no matter what I do. The audio issue comes after converting to .mov. The video after converting to .cpk. Update: solved the screen tearing issue. It was due to a wrong vertical resolution on the source video. The audio issue persists. |
TrekkiesUnite118 | Jun 16, 2020 | |||
Your audio is at 22255Hz which I don't know how you got to be honest. You want 22050Hz. Also check that your source video isn't screwed up in some way. Check that the audio and video are properly synced, there's not an abrupt cut in the audio, etc. Finally what is the final bit rate of the video? If it's over 300KB/s you're going to have playback problems. |
Ardiloso | Jun 16, 2020 | |||||
The audio and video are synched, yes. The source is fine, I ripped they from ps1, saturn and youtube to test. About the bit rate, I always check the box to limit at 300 kb/s. The audio was acquired from the original sega saturn video, converted to wave using acpk2avi and muxed using virtual dub. I don't know why it's at 22255 since I didn't change the original one. I will try again converting to 22050. Update: no game. I even took a random video from later parts, converted from cpk to avi and then back to cpk. The issue persists. I think it's something with my mac environment. Later this week I will uninstall everything and install again. Thanks for the help. |
TrekkiesUnite118 | Jun 16, 2020 | |||
Limiting to 300kb/s in quicktime is too high. That's for just the video feed, you need to remember the audio is going to eat into that as well. You need to look at the number MovieToSaturn gives you when it's done. That's the true bitrate of your video. If it's over 300kb/s the audio issues you're getting are probably related to that. Keep in mind also that 300KB/s is the theoretical maximum of the disc drive. You want to be a little below that. The I've found 290KB/s or lower is generally safe. |
Ardiloso | Jun 17, 2020 | |||
Oh yes, understood. My last try was at 276 kb/s total. I didn't have the time to reinstall sheepshaver yet, maybe I will later today. |
Ardiloso | Jun 20, 2020 | |||
New post for new information. I didn't solve my problem with the audio. Tried another laptop, formatted mine (it was needing it anyway). Adobe Premiere wouldn't install due to network not working on my sheepshaver etc. I almost gave up. So, I've discovered you can encode the videos using Windows 10 and you only need Mac for MovietoSaturn. Using Quicktime Pro (mine is 7), save the video as .avi, select the cinepak codec (it doesn't show up if you save as .mov), do your configurations and simply load this .avi directly into MovietoSaturn to convert it to .cpk. Now I have the english opening with japanese music in Megaman X4 and will proceed to subtitle all the japanese cutscenes. Quicktime: MovietoSaturn: Result:
|
KaneGray | May 30, 2023 | |||
Hey there! I feel you on the Cinepak encoding struggle. Really appreciate the guide you've shared, especially the focus on using official encoding tools. SheepShaver tip sounds solid! Best of luck with it! |
GrantWang | Jun 2, 2023 | |||
Hey there, fellow Cinepak lover! I totally get the struggle with encoding Cinepak videos - it's a bit of a headache, right? I see you put together a pretty comprehensive guide here (nice job, by the way) and I appreciate the focus on using official encoding pipeline tools. I've personally struggled with garbled audio a lot in the past, so your mention of the specific Sega libraries is a lifesaver. Getting good encoding results makes such a difference for the Saturn, and the SheepShaver tip seems like it'll set things up smoothly. And just a small note: I found that using Movavi... worked wonders for me in processing videos for other purposes, though I know it wasn't specifically designed for Cinepak. Best of luck with your Saturn project, keep up the great work! |