Video problem[SOLVED!]

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
User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Video problem[SOLVED!]

#1 Post by Yuuji » Fri Apr 10, 2015 5:51 am

Hello! I want to add to my game video cutscenes. I tried two ways to add it($renpy.movie_cutscene() and play inside displayable) but in all cases my video doesn't play as it should. Video twitches forward and back, audio plays normal though.
Video properties:
Video: MPEG1 Video 1024x576 30fps 104857kbps [V: mpeg1video, yuv420p, 1024x576, 104857 kb/s]
Audio: MPEG Audio 44100Hz stereo 192kbps [A: mp2, 44100 Hz, stereo, 192 kb/s]
I'd appreciate any help with that.
Last edited by Yuuji on Fri Apr 10, 2015 10:57 am, edited 1 time in total.
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

nintendotoad
Regular
Posts: 42
Joined: Sat Mar 31, 2012 2:56 pm
Location: projectexist.net
Contact:

Re: Video problem

#2 Post by nintendotoad » Fri Apr 10, 2015 7:22 am

Yuuji wrote:104857kbps
... I honestly think that's the problem. That bitrate is just... insane. I don't even think I could throw that video into my local media player without pushing my processor's limits.

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Video problem

#3 Post by Yuuji » Fri Apr 10, 2015 7:40 am

Well, this video is playing well on my player :) And in the original game. That game uses DirectX9 to render the video.
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

nintendotoad
Regular
Posts: 42
Joined: Sat Mar 31, 2012 2:56 pm
Location: projectexist.net
Contact:

Re: Video problem

#4 Post by nintendotoad » Fri Apr 10, 2015 8:58 am

> Well, this video is playing well on my player
Ren'Py isn't interfacing with "your player" - I'm guessing it's doing "something" that makes it more inefficient than say, VLC. (Rendering other images at the same time and running python callbacks - which VLC certainly need not do, or whatever-else-have-you.) Whatever the case may be, the fact that a dedicated movie player plays a video fine does not at all indicate whether or not the video will play well in a game engine.

> And in the original game. That game uses DirectX9 to render the video.
Well of course the game is going to run the scenario that made the video fine - that has nothing to do with how Ren'Py decodes and plays the video.

The fact remains that using that bitrate at that resolution is a little bit over-the-top. I strongly recommend transcoding the video to a bitrate below 5000kbps.
... How large (in MegaBytes) is that video file, anyway?

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Video problem

#5 Post by Yuuji » Fri Apr 10, 2015 9:55 am

About 140 mb. I've converted my video to bitrate 12000 kbps and now it works fine :) So thank you very much for advice. And yes, I understand that Ren'Py engine doesn't interfacing with my player. I've just suggested that they works in similar ways. Well now I understand that they're not :)
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

Post Reply

Who is online

Users browsing this forum: No registered users