Wait until Video finished? And Subtitles.

  • #1, z joerg-burbachWednesday, 26. April 2017, 14:39 hodinky 8 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

    Bažant

    30 Posts


  • #2, z afrlmeWednesday, 26. April 2017, 14:46 hodinky 8 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.

    Imperátor

    7285 Posts

  • #3, z ke4Wednesday, 26. April 2017, 15:27 hodinky 8 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"

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

    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.

    Zabiják klíčů

    810 Posts

  • #4, z joerg-burbachWednesday, 26. April 2017, 16:34 hodinky 8 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 :-)

    Bažant

    30 Posts

  • #5, z afrlmeWednesday, 26. April 2017, 17:21 hodinky 8 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.

    Imperátor

    7285 Posts