Matroska Video - Audio/Subtitle stream selection?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
YiuKorochko
Regular
Posts: 63
Joined: Wed Apr 14, 2010 7:44 am
Projects: Sakkaku ni Dasu (Delving into Illusion(s)) +18
Location: Behind you.
Contact:

Matroska Video - Audio/Subtitle stream selection?

#1 Post by YiuKorochko »

After serious thought on how to improve the speed of my one-man parade, I've pretty much decided to move Sakkaku ni Dasu to a video-based story with intervals every few minutes to save and for choices to be made.

There are a few questions which arise though...

Is it possible to program a click-to-pause-video method?

In any case, and more importantly...can Ren'Py select specific streams for audio and subtitles? I would be far less keen to doing Sakkaku ni Dasu as a video-heavy VN if I had to hardsub each individual language and actually distribute gigs upon gigs of data.

Would it go something like this?

Code: Select all

if lang == "eng"
    video.play("Video 1.mkv",delay=none,audio_stream=1,subtitle_stream=1)
elif lang == "jap"
    video.play("Video 1.mkv",delay=none,audio_stream=2,subtitle_stream=2)
Sakkaku ni Dasu (錯覚に出す)
Programs I'm working on can be found here.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Matroska Video - Audio/Subtitle stream selection?

#2 Post by PyTom »

Ren'Py's video playback support doesn't support either of these. Subtitles aren't necessary, as we could do them using the Ren'Py script language. Selecting an audio language is possible, but isn't supported yet.

This is one of those thing where it would require a substantial investment of time on my part to implement. If you can show you have a significant investment of time into your project (say, 15 minutes of original animation), I'll add them quickly. Otherwise, I'll wait until the next time I rewrite the audio code.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

YiuKorochko
Regular
Posts: 63
Joined: Wed Apr 14, 2010 7:44 am
Projects: Sakkaku ni Dasu (Delving into Illusion(s)) +18
Location: Behind you.
Contact:

Re: Matroska Video - Audio/Subtitle stream selection?

#3 Post by YiuKorochko »

Alright, I'll just set a video to play with "stop music" set to off and just play a "music" stream based on the language which will include all music sfx and voice.

As for subtitles, I'll research into that! Is there anything in documentation on it?

I don't want specific features which would only benefit a very small portion of the community to be pushed onto you, Tom. I'll work with 6.12 as-is. :)
Sakkaku ni Dasu (錯覚に出す)
Programs I'm working on can be found here.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Matroska Video - Audio/Subtitle stream selection?

#4 Post by PyTom »

There isn't much documentation at the moment. I suspect I'd have to be involved at one point - if you make the game, then I'll ready Ren'Py for it.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

YiuKorochko
Regular
Posts: 63
Joined: Wed Apr 14, 2010 7:44 am
Projects: Sakkaku ni Dasu (Delving into Illusion(s)) +18
Location: Behind you.
Contact:

Re: Matroska Video - Audio/Subtitle stream selection?

#5 Post by YiuKorochko »

Alrighty then :)

Wow, SnD won't take several years now...
Sakkaku ni Dasu (錯覚に出す)
Programs I'm working on can be found here.

YiuKorochko
Regular
Posts: 63
Joined: Wed Apr 14, 2010 7:44 am
Projects: Sakkaku ni Dasu (Delving into Illusion(s)) +18
Location: Behind you.
Contact:

Re: Matroska Video - Audio/Subtitle stream selection?

#6 Post by YiuKorochko »

After having a quick sketch over, I'm guessing it will have to do with a modified version of the "Timed Menu" class...
Sakkaku ni Dasu (錯覚に出す)
Programs I'm working on can be found here.

Post Reply

Who is online

Users browsing this forum: No registered users