Modding, Mission Design, and Coding > FS2 Open Coding - The Source Code Project (SCP)

Adding subtitles to FS2 cutscenes

(1/6) > >>

Nikogori:
Related threads:

Questions about the Translation features
Unicode text support

I'm modifying old Japanese localization mod so that it can be used with FSO.

Most errors have been ironed out, and now I'm thinking about adding subtitles to cutscene movies.
(This was never a problem for old Japanese mod, because it can not play movie files.)

I believe I understand how SRT subtitles work (at least it is working on MPC-HC).
I'd like to know where I should place these SRT files.

I'm using latest Nightly and it always gives me the same error when I enter the cutscene sequence (such as bastion.mve).


I have added $Movie subtitle font: to mod.tbm and a truetype font but it gave me almost the same error.

m!m:
The font name must be a name of a font entry specified in fonts.tbl and not a simple TTF file name.

FSO currently only supports subtitles that are embedded in the movie file. In my tests I did that with FFmpeg. Generally, the subtitle code of FSO is not very well tested since I did not have much data to test it with when I wrote that code originally.

Novachen:
I actually recommend to create own movie files with an embedded graphic subtitle instead.

Simply because it allows you to design the subtitle exactly like you wish it should appear, you can control the position and their size and you can add subtitle effects to it, if you wish.

And because we are talking about the FS2 cutscenes in 480p here, they will not have a big download size if you reencode them into MP4 with CRF10 or 12 or something like that.

Nikogori:

--- Quote from: m!m on June 05, 2018, 03:48:17 pm ---The font name must be a name of a font entry specified in fonts.tbl and not a simple TTF file name.

--- End quote ---

Thank you. I have added +Name: font01 to fonts.tbl and $Movie subtitle font: font01 to mod.tbm and the error message has disappeared.


--- Quote from: Novachen on June 05, 2018, 03:58:11 pm ---I actually recommend to create own movie files with an embedded graphic subtitle instead.

Simply because it allows you to design the subtitle exactly like you wish it should appear, you can control the position and their size and you can add subtitle effects to it, if you wish.

And because we are talking about the FS2 cutscenes in 480p here, they will not have a big download size if you reencode them into MP4 with CRF10 or 12 or something like that.

--- End quote ---

Actually this is much easier for me because a few years ago I made videos like this:

However, you need to create movie files at higher resolution than 480p. Because video cutscenes will be stretched out in the game and subtitles will get blurry.

m!m:
If you give me a movie file which uses subtitles with some more advanced features I can take a look at how those features could be implemented. Alternatively, if you have a standalone SRT file I could try adding code for reading that with FFmpeg.

The bottom line is this: If you give me more subtitle data I may be able to implement the missing features :p

Navigation

[0] Message Index

[#] Next page

Go to full version