Video problem[SOLVED!]
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.
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.
Video problem[SOLVED!]
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.
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
... 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.Yuuji wrote:104857kbps
Re: Video problem
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
> 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?
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?
Re: Video problem
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.
Who is online
Users browsing this forum: No registered users