DE EN FR ES IT CZ
Back Back to top

Multilanguage Subtitles in Videos

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  • #1, by anna-arnold 10 years ago Quote
    Hello, is there anyone who can tell me, how I can put Subtitles in Videos, so that the subtitles are shown in the right language within the game? I'm sure that I'm not the only one who needs that Information smile
    Is it possible at all?
    If I get enough information, I'd volunteer for doing a tutorial about this.
  • New to Visionaire Studio?

    Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.

    See the Indie Bundle Try it for free
  • #2, by ke4 10 years ago Quote
    Hi,

    first you're gonna need your videos in .MKV container and put the subtitles inside of it.
    You can do it in MKVToolMix. Have as many subtitles as you like just don't forget to set them a language.

    In Visionaire you will need this line of code somewhere in your scripts.

    game.GameVideoSubtitleLanguage = "eng"

    ...Or whatever language you would be setting.
    Also it should be possible to set a font for your videos

    game.GameVideoSubtitleFont = getObject("Fonts[name_of_the_font]")

    This doesn't work for me though, it's always setting the font with ID 1 ( i think it was 1 ) for me. Maybe it will works for you otherwise what you could do is to create new font and make it same as the font with ID 1 -> used it instead and then change the font with ID1 to whatever font you like.

    I suppose you could also be streaming some empty subtitles in the .MKV container if you want an option to turn them off. Not sure if you can turn them off via Lua.