Need Help With Video?

Questions, skill improvement, and respectful critique involving music, sound, and movies.
Post Reply
Message
Author
User avatar
Amilychan
Newbie
Posts: 2
Joined: Fri Aug 02, 2013 7:35 am
Projects: Together Forever
Contact:

Need Help With Video?

#1 Post 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.

User avatar
Yuzu-kun ^-^
Newbie
Posts: 15
Joined: Sat Apr 12, 2014 7:18 am
Projects: Plantasia
IRC Nick: Yuzu-kun
Location: Philippines
Contact:

Re: Need Help With Video?

#2 Post by Yuzu-kun ^-^ »

Convert it to .MPG or .MOV instead of .AVI

Asceai
Eileen-Class Veteran
Posts: 1258
Joined: Fri Sep 21, 2007 7:13 am
Projects: a battle engine
Contact:

Re: Need Help With Video?

#3 Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users