Need help to insert movie to renpy game

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
blindeyes
Newbie
Posts: 7
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Need help to insert movie to renpy game

#1 Post by blindeyes » Thu Mar 10, 2011 11:57 pm

i have an swf file and have convert it to avi file and to ogv file.... but why i can't play the movie in my game....????

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Need help to insert movie to renpy game

#2 Post by Greeny » Fri Mar 11, 2011 7:20 am

Depends...
- Have you prayed to your god lately?
- Does the video work in a regular media playback software?
- Did you put the file in the game's file directory?
- Did you call the video with the correct filename?
- Do you have the latest version of Ren'Py?
- What are you wearing?
- What OS do you have, and is your computer reasonably fast?
- What code did you use to play the movie?

Anyways, I think only the avi will work.
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

blindeyes
Newbie
Posts: 7
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Re: Need help to insert movie to renpy game

#3 Post by blindeyes » Mon Mar 14, 2011 8:00 am

Greeny wrote:Depends...
- Have you prayed to your god lately?
- Does the video work in a regular media playback software?
- Did you put the file in the game's file directory?
- Did you call the video with the correct filename?
- Do you have the latest version of Ren'Py?
- What are you wearing?
- What OS do you have, and is your computer reasonably fast?
- What code did you use to play the movie?

Anyways, I think only the avi will work.
i have tried using an example movie and it's ok, but when i use my ogv file it doesn't work at all, i use (play movie "gw.ogv")
and i have tried to convvert it to all type of file like avi etc, but it's still doesn't work too.... :(

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Need help to insert movie to renpy game

#4 Post by Greeny » Mon Mar 14, 2011 8:14 am

I don't think you can use a .ogv.
What program did you use to make the video?
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

User avatar
papillon
Arbiter of the Internets
Posts: 4053
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: Need help to insert movie to renpy game

#5 Post by papillon » Mon Mar 14, 2011 11:02 am

Of course you can use ogvs! But last time we tried it, you had to use the _exact right_ version of the codec for it to work. A newer or older version would flake out.

blindeyes
Newbie
Posts: 7
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Re: Need help to insert movie to renpy game

#6 Post by blindeyes » Tue Mar 15, 2011 7:49 am

papillon wrote:Of course you can use ogvs! But last time we tried it, you had to use the _exact right_ version of the codec for it to work. A newer or older version would flake out.
what is flake out??
Greeny wrote:I don't think you can use a .ogv.
What program did you use to make the video?
i make it from flash project (.swf) and i convert it using format factory to ogv... but it doesn't work..

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Need help to insert movie to renpy game

#7 Post by Greeny » Tue Mar 15, 2011 9:37 am

How did you make the flash project.
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

blindeyes
Newbie
Posts: 7
Joined: Mon Nov 01, 2010 7:16 pm
Contact:

Re: Need help to insert movie to renpy game

#8 Post by blindeyes » Tue Mar 15, 2011 11:40 pm

i make it just simple one, like a simple animation

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Need help to insert movie to renpy game

#9 Post by Greeny » Wed Mar 16, 2011 7:41 am

You didn't answer the question, and you didn't answer a lot of my earlier ones either.
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

Silphy
Newbie
Posts: 23
Joined: Sun Jan 23, 2011 3:09 am
Contact:

Re: Need help to insert movie to renpy game

#10 Post by Silphy » Wed Mar 16, 2011 12:13 pm

I am also having a bit of trouble having my video play....

I'm using a .avi file and this code

Code: Select all

   $ renpy.movie_cutscene("TLC.avi")
the filename is correct and it IS in the correct directory, when i play the game and get to the spot where the cutscene should be, the screen flickers for a second, and continues with the lines past the cutscene....

currently i have this code under the "lable" part of the game...is it supposed to be in the options tab? or under init? i cant figure out why it wont work...

User avatar
papillon
Arbiter of the Internets
Posts: 4053
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: Need help to insert movie to renpy game

#11 Post by papillon » Wed Mar 16, 2011 2:22 pm

Greeny wrote:How did you make the flash project.
Why would it matter how e made the flash project? Once it's a video, it's a VIDEO, and it's how you made the VIDEO that matters.

What exact version of the ogg codecs did you use to make the ogv with? If you don't know, then it was almost certainly not the right one and the video won't work.

Does the video work at all when used in a normal video player and not in RenPy?

'Flake out' is just an expression meaning to screw up or do something silly.

Silphy
Newbie
Posts: 23
Joined: Sun Jan 23, 2011 3:09 am
Contact:

Re: Need help to insert movie to renpy game

#12 Post by Silphy » Wed Mar 16, 2011 6:46 pm

the video im using plays fine in other media players. the error i get in the console (no error in lint or when i load the game) is "could not open codecs"


EDIT: i re-converted my video from an mp4 to an avi again and it "Seems" to be working i get no errors from lint, the game, or the console....and the video does start playing...however all i get is sound and a black window =<....dunno what to do...my version of ren'py was 6.11.2, so i just checked and DL'd the newest version 6.12.0.

Its still jusck black , so i loaded the tutorial, and the video in the tutorial is also black?! only sound and a black screen.....

this must be an issue with my computers settings? does anyone know what settings might affect this? my old computer was fine and it was horrible..and this one is newer =/

the video plays fine if i play it in other video players...

User avatar
Greeny
Miko-Class Veteran
Posts: 921
Joined: Sun Dec 20, 2009 10:15 am
Completed: The Loop, The Madness
Projects: In Orbit, TBA
Organization: Gliese Productions
Location: Cantankerous Castle
Contact:

Re: Need help to insert movie to renpy game

#13 Post by Greeny » Thu Mar 17, 2011 7:14 pm

Instead of converting your file, it could help to export directly to .avi from your flash software.
In Orbit [WIP] | Gliese is now doing weekly erratic VN reviews! The latest: Halloween Otome!
Gliese Productions | Facebook | Twitter
Image

Post Reply

Who is online

Users browsing this forum: Google [Bot], renardjap, Syrale