Author Topic: Replacing STRs  (Read 14292 times)

PSX

  • Guest
Replacing STRs
« on: 2008-09-07 01:38:48 »
I'm trying to replace Parasite Eve intro movie with a wallpaper I made in PS. Saved it as 320 x 240 bmp 24bits and converted it to a 1s movie. After that I went in movie converter and converted the AVI I made to a no audio STR file.

The problem is that if I replaced the intro movie of PE with the one I made the game crashes, it boots but then it crashes with a black screen when it loads the intro movie.

To replaced the str I used PSXLDR.

However, if I replaced the intro movie with the blank.str that comes with PSXLDR, the game doesn't crash. It shows the blank.str movie and then goes the the start screen just fine.

What's different from the movie I made to the blank.str that comes with PSXLDR?

yoshi314

  • *
  • Posts: 318
    • View Profile
Re: Replacing STRs
« Reply #1 on: 2008-09-07 10:32:59 »
maybe it's incorrectly encoded?

btw what is psxldr?

PSX

  • Guest
Re: Replacing STRs
« Reply #2 on: 2008-09-07 14:39:55 »
Large Data Ripper, found it in a PSX emulator for Pocket PC community.

Tried changing many encoding options at wild, like speed and fps, in some cases PE crashes but also plays some looping noise, as if it was repetedly trying to play that movie.

PSX

  • Guest
Re: Replacing STRs
« Reply #3 on: 2008-09-07 19:49:48 »
Psmplay is unable to play my own made STR, seems that something is going wrong in the encoding process.

I used jpsxdec to analyze the blank.str and found  that it contains two STR and eight XA, also, psmplay plays it fine.

Cyberman

  • *
  • Posts: 1572
    • View Profile
Re: Replacing STRs
« Reply #4 on: 2008-09-07 19:53:45 »
STR's are not normal sectors is part of the problem they use Mode2 operation and the audio uses the full 2352 byte sector where as video only uses the first 2048 ignoring the remaining 256 bytes (ECC data for CD audio). The format has 2 channels of audio, IF the sectors are not interleaved correctly and you have set the file for audio it will not work correctly.  You should check what the original video format was and see if the black movie you replaced it with has a zero audio sector in it.  You may need a no sound audio sector :)

Cyb

Griffithe

  • Guest
Re: Replacing STRs
« Reply #5 on: 2008-09-07 21:40:07 »
del.
« Last Edit: 2008-09-14 09:37:19 by Griffithe »

PSX

  • Guest
Re: Replacing STRs
« Reply #6 on: 2008-09-07 23:02:37 »
Has movie converter ever been documented?

I'm trying to merge my STR with the blank.xa with all kinds of switches combinations with no success, every generated STR that I pass trough jpsxdec outputs an error "no audio stream found".

PS: It seems that movie converter crashes everytime you select normal speed and not double speed. Also, is this tool broken??? It seems that any outputed XA file contains no audio at all, no matter what switches you use.

+ Uhm. Made a 5s random noise wav and it converted just fine to XA. jpsxdec found the XA stream in it. Maybe movie converter auto ignore audio if it's completely mute?

+ Uhm. Now the STR plays in Psmplay, however it doesn't play in game and causes jpsxdec to output many errors about framerate detection.

+Weird. Don't remember what I did to make the XA readable by jpsxdec, now I lost that. Both the AVI converted to str + audio and the XA alone play fine in psmplay, however if I make STR no audio and then try to mux it with the XA I can't do it due to sector size errors.

+Even more weird. If I make the random noise wav mono and 18.9hz but convert it to XA setting it for stereo and 37.8hz it opens in psmplay, but if I set it to XA 18.9hz and mono psmplay outputs an error when trying to open it "sector not found".

+After countless trial and errors I gave up trying to replace files directly within the iso. I'm going for a different approach now, extracing all files with ISO buster and then reconstructing the ISO with mode 2 cd maker. I was able to make a working ISO  (at least in epsxe) with that approach, but surprisingly my STR didn't play at all, the game just skipped it and played another movie in its place.
« Last Edit: 2008-09-08 18:57:46 by PSX »

PSX

  • Guest
Re: Replacing STRs
« Reply #7 on: 2008-09-08 19:14:41 »
After almost dying for it............. IT WORKED!

1-BMP to AVI (A black 320 x 240 background with the word RIPPED in white)
2-AVI to STR no sound (MDEC 3! MDEC2 in PE1 wasn't working. Left default 1 channel and 15fps)

Now the trick that made it work

3-Dissamble the ISO with ISO Buster (Got corrupted sector errors, ignored all)
4-Reassembled the ISO with Mode 2 CD Maker (filesize shrunk about 100mb for some reason compared to original iso)
5-Tested in Epsx, game boots and goes in game
6-Replace FMVs 000 and 001 with a copy of that home made STR
7-Reassemble the ISO with Mode 2 CD Maker (
8-Test in Epsxe
9-In place of the squaresoft logo + PE1 regular intro I saw a black background with the word RIPPED in white.
10-Fun
« Last Edit: 2008-09-08 19:19:52 by PSX »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #8 on: 2008-09-08 23:22:59 »
del.
« Last Edit: 2008-09-14 09:37:52 by Griffithe »

m35

  • *
  • Posts: 52
    • View Profile
    • jPSXdec
Re: Replacing STRs
« Reply #9 on: 2008-09-09 02:12:41 »
jPSXdec is hopefully the most forgiving of all Playstation 1 media decoders (at least, that's how I tried to write it). I am surprised and saddened that it is failing to properly decode some of the videos thrown at it. It will be awhile before I can find whatever the problem is and fix it.

Encoding fresh video for Playstation is a very tricky task, then properly replacing that video in the CD image brings its own batch of tricks and issues. I'm rather surprised anyone is ever to pull it off. There are lots of little details that must be just right, otherwise all you're gonna get is errors.

If you really want to figure out what's wrong (and I mean really), you can read the massive, highly technical text file detailing the Playstation movie formats. I don't know what to tell you beyond that.  :|


Now only thing I'm curious about is why you chose PSmplay to extract the wav instead of jPSXdec when you were already using jPSXdec to convert to AVI.

Griffithe

  • Guest
Re: Replacing STRs
« Reply #10 on: 2008-09-09 12:02:27 »
del.
« Last Edit: 2008-09-14 09:39:05 by Griffithe »

PSX

  • Guest
Re: Replacing STRs
« Reply #11 on: 2008-09-09 20:57:35 »
Try extracting all files first for later rebuilding the iso.

I still don't understand how can movie converter generate a XA stream that is playable by psmplay but unreadable by jpsxdec.

m35

  • *
  • Posts: 52
    • View Profile
    • jPSXdec
Re: Replacing STRs
« Reply #12 on: 2008-09-10 03:19:39 »
You're right  : ) but there is no difference between PSmplay and jPSXdec in decoding of wave-files

Ah, ok. I was just curious if there was something wrong with jpsxdec that led to that choice. From the comparisons I made of wav decoding, it seemed like jpsxdec was getting slightly better results than the other leading decoders (though I'm sure no one would notice).

I still don't understand how can movie converter generate a XA stream that is playable by psmplay but unreadable by jpsxdec.

I think I know why jpsxdec doesn't like it. If I'm right, your audio is probably fine. jpsxdec generally expects sectors of 2048 or 2352, unless it's video, then it might also try 2336. Unfortunately it doesn't currently check if it's 2336 sectors with only audio.
« Last Edit: 2008-09-10 16:03:51 by m35 »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #13 on: 2008-09-10 23:44:33 »
del.
« Last Edit: 2008-09-14 09:36:21 by Griffithe »

PSX

  • Guest
Re: Replacing STRs
« Reply #14 on: 2008-09-11 01:30:08 »
I came across games that can't be ripped, not without manually editing bytes.

Found a company called Watto Studios that makes a software called Game Extractor, targered at ppl who wish to play around with game data files.

But unfortunately I could'nt do anything about reinserting videos in Syphon Filter 2. First because all movies are inside some 400MB+ HOG file. Second because that HOG file can't be extracted by ISO Buster due to corrupted sectors.

Griffithe

  • Guest
Re: Replacing STRs
« Reply #15 on: 2008-09-11 11:44:39 »
here is a small example as proof of the possibility:

http://rapidshare.com/files/144350566/REDCstrMod.rar.html
« Last Edit: 2008-09-14 09:39:54 by Griffithe »

PSX

  • Guest
Re: Replacing STRs
« Reply #16 on: 2008-09-11 22:14:53 »
Hm. I successfully deleted a STR and then inserted a new one with ultraiso. However the processed ISO is no longer readable by jpsxdec, jpsxdec can no longer detect any media files, yet it still runs in epsxe.

Oh, almost forgot. This last case was a CCD / IMG iso.
« Last Edit: 2008-09-11 22:36:43 by PSX »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #17 on: 2008-09-11 23:43:14 »
del.
« Last Edit: 2008-09-14 09:36:49 by Griffithe »

m35

  • *
  • Posts: 52
    • View Profile
    • jPSXdec
Re: Replacing STRs
« Reply #18 on: 2008-09-12 04:33:19 »
the processed [CCD / IMG] is no longer readable by jpsxdec

An open source, volunteer based project reading an obscure, proprietary, undocumented file format? Surely you jest.  :roll:

PSX

  • Guest
Re: Replacing STRs
« Reply #19 on: 2008-09-12 13:53:53 »
Converted the CCD / IMG to BIN / CUE, then I replaced the DreamFactory logo movie with a still image, retaining the original 30fps and 2 channels. Now the game loaded and played the dreamfactory movie, but it seems that the movie looped about 3 times before finally skipping and going in game.

... Still image = 1 second movie
« Last Edit: 2008-09-12 14:55:13 by PSX »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #20 on: 2008-09-12 14:28:52 »
del.
« Last Edit: 2008-09-14 09:39:46 by Griffithe »

PSX

  • Guest
Re: Replacing STRs
« Reply #21 on: 2008-09-13 02:00:56 »
Tried to do what I said some replies ago with Tobal 2 iso, it didn't work. Opened the bin with ultraiso, extracted all files, then copied everything back in the iso. The end result was a broken iso that won't run and go in game.

Replacing STRs involves more than just replacing the file itself. In the games that I did that the replaced STR won't function like the original video, for some reason the game loads other videos in its place or gets stuck looping it.

Tried hex editing the executable to replace some STR filename with another one, but that completely broke tha game, corrupting the executable or something, epsxe loads it and then crashes with an error. I suspect that the psx executable was compilied to expect a movie with x number of channels, y number of frames, z seconds, and even w filesize or sectorsize.

bye, my brain is overheating.
« Last Edit: 2008-09-13 02:48:21 by PSX »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #22 on: 2008-09-13 09:54:25 »
Now I'm able to convert my own STRs (full FMVs) and play them... will show an example later..
« Last Edit: 2008-09-13 10:08:33 by Griffithe »

Griffithe

  • Guest
Re: Replacing STRs
« Reply #23 on: 2008-09-14 20:09:44 »
PSX are you still there? :* )
Last question and I think only you can help!

here you will find an example wave file:
http://rapidshare.com/files/145292149/example_wave.zip.html

Can you convert it to .xa ??? so that I could play it with PSXmplay????

If so, please show me how to do it step by step! : /

PLEASE ! ! ! ^^