If you try to generate a .PSS file from a .INT and .IPU with NTSC mode (i.e. 59.94fps or 29.97fps), it'll eventually freeze during playback.
Steps to reproduce:
- Split your video into audio/video
- Convert audio into RAW - Compressed Sony ADPCM (16 bits, interleave 0x400)
- Convert video to PlayStation 2 friendly format (FFmpeg command:
ffmpeg -i <source video> -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 29.94 -s 512x448 <output video>)
- Convert the created M2V file to IPU (IPU conversion tab in ps2strw)
- You may need to manually patch the generated IPU to add correct header (
69 70 75 6D <file size as u32 excluding last 8 bytes you'll add> <video width as u16> <video height as u16> <frame count as u32>) and append these bytes to the end: 00 00 01 B0 00 00 01 B1 (frame delimiter and end code)
- Combine IPU and INT using FlipnicFileTools CLI:
FlipnicFileTool --generate-pss <INT file> --input <IPU file> --output <PSS file>
- Add the generated video to TUTO.BIN:
FlipnicFileTool --replace-file CHAP01.PSS --input <PSS file> --output TUTO.BIN
- Add the modified TUTO.BIN to a game ISO:
FlipnicFileTool --replace-iso TUTO.BIN --input TUTO.BIN --output <ISO file>
- Launch the game and go to HELP/EXPLAIN menu and play the first chapter
- You'll now see the video you've inserted. It'll play back successfully until a certain point where it freezes
Testing done so far:
If you try to generate a .PSS file from a .INT and .IPU with NTSC mode (i.e. 59.94fps or 29.97fps), it'll eventually freeze during playback.
Steps to reproduce:
ffmpeg -i <source video> -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 29.94 -s 512x448 <output video>)69 70 75 6D <file size as u32 excluding last 8 bytes you'll add> <video width as u16> <video height as u16> <frame count as u32>) and append these bytes to the end:00 00 01 B0 00 00 01 B1(frame delimiter and end code)FlipnicFileTool --generate-pss <INT file> --input <IPU file> --output <PSS file>FlipnicFileTool --replace-file CHAP01.PSS --input <PSS file> --output TUTO.BINFlipnicFileTool --replace-iso TUTO.BIN --input TUTO.BIN --output <ISO file>Testing done so far: