scp-fs2open / fs2open.github.com

Origin Repository for SCP FreeSpace 2 Open
https://www.hard-light.net/
Other
397 stars 157 forks source link

Support for graphic subtitle formats in cutscenes #1753

Open NovachenFS2 opened 6 years ago

NovachenFS2 commented 6 years ago

Well, because of the beginning discussion in the Forums: https://www.hard-light.net/forums/index.php?topic=94802.msg186906 and the up- and downsides of SRT files, i create this issue here, because i made my reasons why SRT is not a desireable format for me right now.

So i simply want to see support for subtitles that are based on a graphical layer, as far as i know SUB/IDX (also used on DVDs back then) and PGS (also used on BluRays today) are the most common ones these days. Even they are hard to create, because they are graphic files, they surely would make downloads much smaller without to download whole language specific cutscenes (and yes, i see the downsides of this as well). And you will not have any limitations in the creation of a subtitle, because it is a layer above the video track you can design like you want.

Because i am maybe the only one who would ever use this feature i actually do not see that this will be implemented (which i also can understand ^^). But i wanted to bring it up at least (once again after a discussion in an older topic as well)

The-E commented 6 years ago

Does ffmpeg support these formats?

NovachenFS2 commented 6 years ago

As far as i know, based on this list: https://www.ffmpeg.org/general.html#File-Formats. It should.

asarium commented 6 years ago

FFmpeg has support for PGS and DVD subitles but I'll need an example of a movie file with those subtitles before I can look into how this could be supported.

NovachenFS2 commented 6 years ago

I admit, that i actually never created one myself. But i will try to make one. Could take a while however, because i have to read in in the creation process of that myself.

asarium commented 6 years ago

It doesn't have to be a full cutscene. Just a few example subtitles with varying styles would be enough to implement the basic support (or to realize that it's too much work).

NovachenFS2 commented 6 years ago

Yeah, i actually tried a bit and it seems, that the idea i had in mind is reached by the SSA/ASS format actually. And that is a text based subtitle format (never know that), because it allows to reposition, to color and to select invidual fonts for each subtitle and is able to include the needed font file as well.

In the attachment is a small 15 second sequence of FS1' hallfight, but in mp4 of course, not sure if this is working with OGG at all. This one has two different styles for subtitles. Descriptions and the normal chatter. The corresponding font was embedded in the ass file.

As for SUB and PGS, actually i do not find a good tutorial to make one so far. And all converters i have found get rid of the graphic style by fonts etc. (so they get rid of the reason, why i actually suggested them in the first place)

hallfight short.zip