Home | Forums | What's new | Resources | |
MPEG sample finally complete |
CyberWarriorX - Jan 5, 2005 |
Mr^Burns | Jan 6, 2005 | |||
heh cool now i need to get a copy of Lunar Mpeg version |
Omni | Jan 8, 2005 | |||
Whoa. |
RockinB | Apr 29, 2006 | |||||||
I've just tried it out, made a MPG file with TMPEG, named it AN000.MPG, burned a Saturn disc with your example and the mpg file and ran it on my Saturn with MPEG cart. But it doesn't work, MPG_Init() fails with error: MGP_ERR_NG (the demo shows it's code 0xFFFFFFEF).... About that error from MANMPG.TXT:
Code:
I tried reinserting the cart and burned a Video CD and this one plays back perfectly. Any clue why it does not work?
In the SBL library, there is a manual for the MPG library part: MANMPG.TXT |
RockinB | Apr 29, 2006 | ||||
The demo is obviously made to run on NTSC systems, only. On PAL systems, MPG_Init() needs a different flag. Moreover, the SGL has different interlace settings for the same resolution in NTSC and PAL mode. I changed from MPG_DSCN_ITL to MPG_DSCN_PLNITL and MPG_Init() works without errors, at least.
Code:
However, the audio and video status is "Preparing playback", but playback never starts. Suggestions, anyone? |
mrkotfw | Apr 29, 2006 | |||
Excellent work! |
CyberWarriorX | Apr 30, 2006 | |||
I'm willing to bet the file is in MODE1 data? Normally you're supposed to separate the video and audio streams and then interleave them in MODE2 - Basically the same as what's done on a video cd. That's probably why it's having trouble playing it. Cyber Warrior X |
RockinB | Apr 30, 2006 | ||||
That's right, thanks for the hint. So it doesn't work in mode1? Seperate....interleave...mode2... I don't know how to create such a disc with mkisofs, but it's a perspective at least. |
CyberWarriorX | Apr 30, 2006 | ||||
Well, I guess you could always write something that manually separates the video and audio sectors, then uses the Put Sector Data cd block command, etc. But really, it ends up taking more computing time, not to mention you're also going to have down-sample the video(since you normally store mpeg video's using form 2 of MODE2 sectors, which has more user data, less error correction). The best programs I've seen for setting up discs like that are the ones the developers used: buildcd and vcdbuild. Though, there might be some good freeware tools out there. |