Author Topic: Black screen when replacing opening movie?  (Read 2079 times)

saiferoth

  • Iokan (+1)
  • *
  • Posts: 2
    • View Profile
Black screen when replacing opening movie?
« on: March 09, 2021, 10:07:20 pm »
EDIT: Did some due diligence and posted my progress so far; didnt want to double post.

Hi, I need some help on how to either replace the .STR file for the opening movie for disc 1.

Unfortunately because of the way the data is encoded on the disc, I can only use jpsxdec to see the contents, because the PurpleCatTools only extracts the boot.dat and 0000.executable.psx from the bin/cue. Farthest I've gotten is ripping the video using jpsxdec w/ audio as an uncompressed AVI, editing the video, and exporting with the same # of frames, resolution, 15fps, 44100 khz audio bitrate, etc. as an uncompressed AVI format, and then converting the output with STR Conv. Once converted, I made sure it was atleast the same filesize or less and its re-inserted back at the same index where I ripped the video from, but no dice, just a black screen after the Squaresoft logo.

After looking at the jpsxdec documentation on .str files, as usual, Chrono Cross stores the video/audio differently in the sectors compared to other games. Reopening the modified bin, I can playback the .str I inserted, but I can see that because the audio starts at 290202 and the video starts at 290204, there seems to be a broken 0:01 second video/audio file that is just black before and after the insert. Inserting again on a new image at 290202, 290204, etc. didnt work either.

I imagine theres even more tedium involved that has to do with making sure the header bytes are the same as well as having to inject the video, not just at the same sector, but ensure the audio and video are starting at the same bytes so the game can call it. I looked into TOC Changer but again, the bin/cue files are not able to be ripped using PurpleCat.

Let me know if anybody has ideas or where I might've gone wrong. Thanks.
« Last Edit: March 10, 2021, 06:17:09 pm by saiferoth »

saiferoth

  • Iokan (+1)
  • *
  • Posts: 2
    • View Profile
Re: Black screen when replacing opening movie?
« Reply #1 on: March 14, 2021, 09:26:01 pm »
After scouring the internet for STR/XA conversion tools and studying the byte structure from the Playstation 1 STR Format guide, m35 of jpsxdec was able to add audio replacement for Squaresoft titles which combined with the replaceframes option was able to let me replace the full video.

https://github.com/m35/jpsxdec

Some tips:
-Try to use replaceaudio with an uncompressed wav/aiff file to find out what the sample sector size is in the error message. Once you have that, use Audacity to cut the length exactly by sample size, then export as uncompressed aiff file with signed 16-bit with sample rate being 44100hz (or whatever the original audio is at). Premiere can export as uncompressed wav as well but I couldnt figure out how to get the exact length as the original file
-For video, excel is great at generating the XML and then just use Premiere or your favorite video editing software and export the final result as PNG sequences with the same resolution.

ZeaLitY

  • Entity
  • End of Timer (+10000)
  • *
  • Posts: 10795
  • Spring Breeze Dancin'
    • View Profile
    • My Compendium Staff Profile