r/psxdev • • Oct 12 '26

Straight forward way to encode to .STR Video file?

Hi there,

I'm doing a project where i'm injecting different graphics and music back into a game and I want to inject new FMV cutscenes.

I really can't make heads or tails of the original sony tool provided in PsyQ especially in Windows 11.

I tried using jPSXdec and can only seem to decode STR files and not re-encode.

I have a sample video test ready to go in H264 MOV.

I can of course convert it to any AVI or other format with Handbrake and/or Shutter Encoder.

But I just can't find a way to reliably encode into STR.

Are there any fool proof guides out there that work under modern OS environments? I've Windows 11 or Mac OS.

3 Upvotes

10 comments sorted by

1

u/CAPTAINCAPSLOCK111 1d ago

Have a look at psxavenc. It’s a command-line encoder, and its README includes an STR example with video and XA audio. For replacing an existing cutscene, check the original’s resolution, frame rate and stream layout first. An STR that plays in a standalone player won’t necessarily match what that particular game expects. I’d test a few seconds before converting the whole video.

1

u/InsightsIE 1d ago

Hey! Yes I got it to work what I wanted to do. I’m going to be open and transparent and say I did use AI to build me a Python front end so I didn’t have to deal with the command line interface of AVENC. In-addition I did use AI to change the machine code at runtime as the PSX code does expect a certain runtime or number of frames. So I’d get the total number of frames in my newly exported STR file and change the machine code to expect the new FMV video duration. https://archive.org/details/AeonRefluxed_DevBuild1

1

u/CAPTAINCAPSLOCK111 1d ago

Glad you got it working, and thanks for explaining the frame-count patch. That's a useful detail for anyone replacing a cutscene rather than just encoding one. Have you tested the replacement on real hardware yet, or only in an emulator?

1

u/InsightsIE 1d ago

Only in emulator for the moment. It’s encoded at 15fps so it should run on original hardware. For a final release I’ll do a 30fps emulator only version and a 15fps. Feel free to play the latest build to see it in motion. I think there are definite things to consider when editing a video for PSX when it comes to image compression.

1

u/[deleted] 1d ago

[removed] — view removed comment

1

u/CAPTAINCAPSLOCK111 23h ago

You mentioned things to consider when editing for PSX compression. What caused the biggest visible problems in your tests—fast movement, fine detail, or something else? That would be useful to know when preparing the source video.

1

u/MsULTIMATEMAX Oct 12 '26

You can use jPSXdec with commandline to replace Cutscenes but if you want to creater STR files you need MC32.exe or STRConverter