How to encode STR video files

Graphic based area of development (Graphics Processing Unit), including the Geometry Transform Engine (GTE), TIM, STR (MDEC), etc.
User avatar
SlavaVlasov
Curious PSXDEV User
Curious PSXDEV User
Posts: 11
Joined: Jul 21, 2018
I am a: Romhacker, Programmer, Gamer
PlayStation Model: SCPH-5502

Post by SlavaVlasov » May 2nd, 2022, 1:55 pm

I know that VCD doesn't use STR format, but it's not a VCD. This is one of the PS1 video discs, recorded in the format of regular game videoclips + there is a player (PSX.EXE) for PS1, which plays STR. Such discs did not require a "Video CD" console model or additional hardware to play them. But here's a special case: this PS1 video disc was stuffed with over 90 minutes of film. On 1 CD. In a normal STR, this length would not fit on 1 disc. According to other people, this is some combination of MPEG1 and ADPCM. Much more interesting, how was such a video container compiled in general and are there similar cases on other PS1 discs?

User avatar
MsULTIMATEMAX
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: Nov 15, 2022
PlayStation Model: SCPH-101
Location: Mexico

Post by MsULTIMATEMAX » November 17th, 2022, 4:03 pm

I've done some batch codes that works with "input" and "output" folders.

Video+Audio (.avi)

Code: Select all

@echo off
cd %~dp0
mkdir Output
for %%a in (input\*.*) do ffmpeg.exe -i "%%a" -vcodec rawvideo -s 320x240 -r 15 -acodec pcm_s16le "output\%%~na.avi"
pause
Audio (.wav)

Code: Select all

@echo off
cd %~dp0
mkdir Output
for %%a in (input\*.*) do ffmpeg.exe -i "%%a" -acodec pcm_s16le -vn "output\%%~na.wav"
pause
Video (.avi)

Code: Select all

@echo off
cd %~dp0
mkdir Output
for %%a in (input\*.*) do ffmpeg.exe -i "%%a" -vcodec rawvideo -s 320x240 -r 15 -an "output\%%~na.avi"
pause
Image

henriquewicz
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Apr 13, 2024
PlayStation Model: PS3Cecha01
Discord: henriquewicz
Location: Brazil

Post by henriquewicz » April 13th, 2024, 2:15 am

Hey @lameguy64 thanks for this nice tutorial. i´ve made all process to generate a new STR file to insert in my game. I´ve generated the new following your instructions and i´ve test the generated STR in psmplay. Its all ok.

Any tip to remount the bin? i´ve used anyburn to extract to a folde strucutre, identify the original str, change the orignal for the new and now how can i make a new bin? I have the folder sctruture ready to make.

Is it a way to test in any emul using the folder scruture before remake the bin?
Thanks

imagoth2004
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: Apr 19, 2024
PlayStation Model: SCPH-1002
Location: United States

Post by imagoth2004 » April 19th, 2024, 8:33 pm

Does anyone still use MC32 for videos? I ask because every time I try to convert a video into .str format, it will generate the .str file, but it's empty AND immediately crashes. When I select a file, it doesn't even pull up the preview window.

henriquewicz
What is PSXDEV?
What is PSXDEV?
Posts: 2
Joined: Apr 13, 2024
PlayStation Model: PS3Cecha01
Discord: henriquewicz
Location: Brazil

Post by henriquewicz » April 19th, 2024, 11:32 pm

I´ve use without problems using the lameguy tutorial in this post. The str plays normally on Windows player, but when i´ve recorded the cd the game not starts.

turbogaming
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Oct 21, 2024
PlayStation Model: SCPH-1002

Post by turbogaming » October 25th, 2024, 8:46 am

Thanks for the tutorial. Works like a charm.
Last edited by turbogaming on October 27th, 2024, 7:21 pm, edited 1 time in total.

turbogaming
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Oct 21, 2024
PlayStation Model: SCPH-1002

Post by turbogaming » October 25th, 2024, 5:20 pm

SlavaVlasov wrote: May 2nd, 2022, 1:55 pm I know that VCD doesn't use STR format, but it's not a VCD. This is one of the PS1 video discs, recorded in the format of regular game videoclips + there is a player (PSX.EXE) for PS1, which plays STR. Such discs did not require a "Video CD" console model or additional hardware to play them. But here's a special case: this PS1 video disc was stuffed with over 90 minutes of film. On 1 CD. In a normal STR, this length would not fit on 1 disc. According to other people, this is some combination of MPEG1 and ADPCM. Much more interesting, how was such a video container compiled in general and are there similar cases on other PS1 discs?
There are many video formats out there. The PS1 simply needs special code to play any one of them. There were many games that didn't use the sony standard. Here is an article on it - see the last paragraph.
https://wiki.multimedia.cx/index.php/Pl ... on_Decoder

turbogaming
Interested PSXDEV User
Interested PSXDEV User
Posts: 5
Joined: Oct 21, 2024
PlayStation Model: SCPH-1002

Post by turbogaming » October 27th, 2024, 7:43 pm

henriquewicz wrote: April 19th, 2024, 11:32 pm I´ve use without problems using the lameguy tutorial in this post. The str plays normally on Windows player, but when i´ve recorded the cd the game not starts.

To fix your ISO with video, make sure that STR files are aligned to 2336 bytes per sector using mc32 - and use PsyQ’s BUILDCD along with StripISO to properly encode and manage video files, as mkpsxiso won’t work for this purpose. To debug, use CDMage to check for misalignment errors and ensure the STR files are correctly padded. Additionally, verify that all multimedia files conform to PlayStation CD standards using tools like jPSXdec.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests