Importing a Movie -- Please Help?

Questions, skill improvement, and respectful critique involving music, sound, and movies.
Post Reply
Message
Author
kittilumpo
Newbie
Posts: 1
Joined: Thu Jan 15, 2015 12:07 am
Tumblr: kittilumpo
Contact:

Importing a Movie -- Please Help?

#1 Post by kittilumpo »

I'm trying to put a movie into my game -- its supposed to be a "bonus" video for getting the good ending. Unfortunately the tutorial is less helpful than it is frustrating, since it makes the steps sound easy, but I just don't understand it and even opening the script file to see how the tutorial video is coded hasn't worked.

I've looked and looked and looked for a thread that could help me here, but I guess I haven't looked deep enough. All of the tutorials and threads I've found tell me how to put videos in the menu, but i don't need the video in the menu, so nothing works and I'm at my wit's end ;n;

If anyone can tell me how to put my video in please do -- at this point I'm done trying to figure out where I'm wrong and just want an example of how to do it right!

(btw the video i'm trying to import is a 24-second MP4. i can convert it to another file type if renpy doesn't support .mp4 but for now i know that isn't the main problem.)

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Importing a Movie -- Please Help?

#2 Post by 78909087 »

Sorry if this is wrong, but in an attempt to help, I've just read the code.

At the beginning of the demo, it places this under the init:

Code: Select all

init:
    image movie = Movie()
Have you tried this?

Then, when reading further, inferring that the demo 'Eisenhow1952.mpg' is contained in the 'Game' folder, I believe you call it using.

Code: Select all

                $ renpy.movie_cutscene('Eisenhow1952.mpg', 63.0)

                show movie at Position(xpos=420, ypos=25, xanchor='left', yanchor='top')

                $ renpy.movie_start_displayable('Eisenhow1952.mpg', (352, 240))
And stop it with:

Code: Select all

                $ renpy.movie_stop()
                hide movie



I'm sorry if I'm wrong, but I've never used movies before :/

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: Importing a Movie -- Please Help?

#3 Post by PyTom »

Actually, it's simply:

Code: Select all

$ renpy.movie_cutscene("movie.webm")
That'll display movie.webm fully inside the window. I'd suggest using webm for the movie format, as it's most likely to work - webm constrains most of the movie's parameters, making it more likely to work.
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

User avatar
FrontierGai
Newbie
Posts: 19
Joined: Fri Aug 29, 2014 7:54 pm
Projects: Irathian Chronicles
Organization: Frontier First Innovations LLC
IRC Nick: FrontierGuy
Location: Pittsburgh, PA
Contact:

Re: Importing a Movie -- Please Help?

#4 Post by FrontierGai »

PyTom wrote:Actually, it's simply:

Code: Select all

$ renpy.movie_cutscene("movie.webm")
That'll display movie.webm fully inside the window. I'd suggest using webm for the movie format, as it's most likely to work - webm constrains most of the movie's parameters, making it more likely to work.
Huzzah, I was going to post about this, but glad I found it here first!

Thanks big T!

Post Reply

Who is online

Users browsing this forum: No registered users