Page 1 of 1

Need Help With Video?

Posted: Fri Jul 18, 2014 7:22 am
by Amilychan
Heyo, I am having problem.
I made an opening video for my game. However i can NOT figure out how to put it in renpy?
I converted the video into "avi" and "m2v/MPEG 2"
I also read http://www.renpy.org/wiki/renpy/doc/reference/Movies but it didn't helped me much.
I want to show the video as "Fullscreen Movies"

Maybe i made a mistake with the script and codes?
Here is the script's beginning;

------------------

define movie = "opening.avi"
image movie = Movie(size=(400, 300), xalign=0.5, yalign=0.5) ---> WHAT DOES THIS THING MEANS ANYWAY?

# The game starts here.
label start:

$ renpy.movie_cutscene("opening.avi")
show movie "opening.avi"
play movie "opening.avi"

scene bg black with dissolve

-------------------


I also have an error.
Here;
problem.png
I read other's peoples problem (which are about movies and videos) I really don't understand anything.
It would be great if someone Show me how? (maybe with pictures?)
Or explain really well? I am not a native speaker so please choose easy words.

Re: Need Help With Video?

Posted: Mon Aug 11, 2014 9:43 am
by Yuzu-kun ^-^
Convert it to .MPG or .MOV instead of .AVI

Re: Need Help With Video?

Posted: Mon Aug 11, 2014 10:06 am
by Asceai
You don't want most of that code, just

$renpy.movie_cutscene("opening.avi")

If it doesn't work, the issue is with the video. First, the video needs to have an audio track. It also needs to have video and audio created with the correct codecs. Once you have that sorted out just renpy.movie_cutscene() is enough. The other code is for in-displayable videos, which is only needed for certain specialist applications, can have worse performance and won't work on Android.