
Bad Apple, but it's in Flipnic (FMV replacement attempt) [PS2 Romhack]
Press any key to continue...
Through a very involved process, I was able to successfully play a custom video clip in Flipnic. The audio is stuttery for reasons I don't really understand yet, but I was able to have the game play back a custom video with alpha mask.
Steps that I took to replace the FMV:
1. Create an AVI video file with 256x512 resolution where the first half is RGB data and the second half is alpha mask.
2. Separate audio/video
3. Convert video to m2v with this ffmpeg command (currently only tested with low-res FMVs):
ffmpeg -i badapplefmv.avi -c:v mpeg2video -profile:v main -level:v 8 -b:v 4.531M -maxrate 5M -minrate 4.531M -bufsize 1835k -pix_fmt yuv420p -g 1 -bf 0 -flags +ildct+ilme -top 1 -r 50 -s 256x512 badapplefmv.m2v
4. Convert audio to WAV with these settings:
- PCM
- Signed 16-bit little endian
- 44.1 kHz
5. Convert WAV file to INT in MFAudio with these settings:
- [File format] RAW - Raw Sound Data - Compressed ADPCM
- Frequency: 44100Hz
- Interleave: 400 Bytes
- Samples: 16 bits
- Channels: 2 (Stereo)
6. Convert m2v video to .ipu using ps2str.exe
- IPU Convert (tab)
- Add your .m2v file
- Choose "MPEG Video Elementary Stream"
- Choose where the output file should be
- Press "Start"
- It may say bad video file, but in the end you should have an .ipu file regardless (just make sure it's bigger than a few kilobytes)
7. Patch the .ipu file using a hex editor
- Change first 4 bytes to 69 70 75 6D
- For hi-res FMVs: set bytes 8 to B as "00 02 C0 01" (width and height btw)
- For low-res FMVs: set bytes 8 to B as "00 01 00 02"
- At offset 0x0C, it should have 32-bit int corresponding to the number of frames in little endian byte order
- At offset 0x04, it should have the size of the file (including this patched header)
- At the end of the file, insert 8 bytes with the following values: "00 00 01 B0 00 00 01 B1"
8. Mux IPU and INT files
- Currently this relies on using an existing .PSS file (I used STAFF_ROLL1.PSS for this video)
- Replace the contents of the audio and video streams with the contents of INT and IPU files respectively. There is currently no other way to do this other than coding (I might release a tool that could do the patching and muxing for you).
9. Repack STR.BIN with the modified video file
- You can use FlipnicFS or FlipnicBinExtractor to do this
- You may want to replace an existing .PSS file
10. Replace STR.BIN in the ISO file
- I used Apache1.1 in this demonstration (ISO tools - Update selected file)
- You should backup the original ISO file first
11. Load the modified file in an emulator or OpenPS2Loader if you want to use original hardware
Avaldati: 26.04.25
Failinimi: 2025-04-26 16-12-25.mkv
Kategooria: Videomängude analüüs
Ava video (YouTube)Ava video (Invidious) Tagasi
Attribuudid
- ❌Kustutatud
- ❌Subtiitrid
- ✔Avalik
- ❌Ülekanne
- ✔HD