Wait until Video finished? And Subtitles.

  • #1, by joerg-burbachWednesday, 26. April 2017, 14:39 3 years ago
    Hi there!

    I want to use a video for the intro of my game as well as for other occasions. They just work better for my scenes than doing manual cutscenes in Visionaire.

    Is there something like "Wait until video finished"?

    And - how do you guys add subtitles to your video? I will be supporting German, English, and maybe other languages, and don't want to render different versions of the video...

    Thanks!
    Best
    Jörg

    Newbie

    30 Posts


  • #2, by afrlmeWednesday, 26. April 2017, 14:46 3 years ago
    The only thing I can point you towards in regards to video & subtitles is this page in the wiki that David (BigStans) wrote a couple years or so back.

    As for videos. They automatically trigger a wait until video has finished action before resuming any action parts you list after it.

    Imperator

    6846 Posts

  • #3, by ke4Wednesday, 26. April 2017, 15:27 3 years ago
    You need to have your video in a MKV container and your subtitles in it. You can add them with MKVToolNix . You need to mark them with a language there.

    Then to select the subtitles you need inside of Visionaire:
    game.GameVideoSubtitleLanguage = "eng"
    1

    To select a font for your subtitles:
    game.GameVideoSubtitleFont = Fonts["font_name"]
    1

    If you can't render videos into MKV, i recommend using ffmpeg for conversion, however there are other softwares that might be more user friendly. ffmpeg is not that complicated though.
    Btw VP9 codec is out, so i would recommend using that instead of VP8.

    Key Killer

    810 Posts

  • #4, by joerg-burbachWednesday, 26. April 2017, 16:34 3 years ago
    The only thing I can point you towards in regards to video & subtitles is this page in the wiki that David (BigStans) wrote a couple years or so back. As for videos. They automatically trigger a wait until video has finished action before resuming any action parts you list after it.
    Now that is some good news. Will try that. Thanks, AFRLme!
    There should be some hint stating this behaviour in the Wiki, I suppose...
    You need to have your video in a MKV container and your subtitles in it. You can add them with MKVToolNix . You need to mark them with a language there.
    Thanks, ke4. Will try that as well. Hopefully, I won't need videos for each language.
    I already converted my video to mkv with vp8 and ogg (using VLC :-)

    Newbie

    30 Posts

  • #5, by afrlmeWednesday, 26. April 2017, 17:21 3 years ago
    mkv container lets you embed multiple language audio tracks & subtitles, which I think is why it's become a lot more popular these days.

    Imperator

    6846 Posts

Write post