Can't get my fullscreen movie to work
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.
Can't get my fullscreen movie to work
I'm trying to add an mp4 movie to my renpy game, but it's not working- it basically acts like I didn't call it to play my movie. I found this renpy tutorial on adding movies: https://www.renpy.org/doc/html/movie.html But it didn't work. I'm wondering if perhaps the mp4 format I'm using isn't right? This is the line I added to my script: $ renpy.movie_cutscene("Coatepec_Van.mp4") , with Caotepec_Van.mp4 being the name of my movie. My movie file is in the game folder of the game I'm working on. Any suggestions welcome.
- Ocelot
- Lemma-Class Veteran
- Posts: 2410
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Can't get my fullscreen movie to work
Which video and audio codecs does your movie use?
< < insert Rick Cook quote here > >
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Can't get my fullscreen movie to work
mp4 is not part of the MPEG-4 part 2 codec - the same format used for DVD movies. You are probably confusing it with h.264, which is commonly used in an mp4 format, and is MPEG-4 part 10Phoenyx75 wrote: ↑Tue Apr 05, 2022 8:30 pm I'm trying to add an mp4 movie to my renpy game, but it's not working- it basically acts like I didn't call it to play my movie. I found this renpy tutorial on adding movies: https://www.renpy.org/doc/html/movie.html But it didn't work. I'm wondering if perhaps the mp4 format I'm using isn't right? This is the line I added to my script: $ renpy.movie_cutscene("Coatepec_Van.mp4") , with Caotepec_Van.mp4 being the name of my movie. My movie file is in the game folder of the game I'm working on. Any suggestions welcome.
You need to use one of the following
VP9
VP8
Theora
MPEG-4 part 2 (including Xvid and DivX)
MPEG-2
MPEG-1
in one of the container formats below
WebM
Matroska
Ogg
AVI
Various kinds of MPEG stream.
I would suggest vp9 in an mkv format. Set your video output encoder / recording software to this format and extension.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Re: Can't get my fullscreen movie to work
Thanks . I had thought that perhaps mp4 might not be MPEG-4 Part 2, but since it said nothing about the format being wrong, I thought that probably wasn't it :-p.Imperf3kt wrote: ↑Wed Apr 06, 2022 4:15 ammp4 is not part of the MPEG-4 part 2 codec - the same format used for DVD movies. You are probably confusing it with h.264, which is commonly used in an mp4 format, and is MPEG-4 part 10Phoenyx75 wrote: ↑Tue Apr 05, 2022 8:30 pm I'm trying to add an mp4 movie to my renpy game, but it's not working- it basically acts like I didn't call it to play my movie. I found this renpy tutorial on adding movies: https://www.renpy.org/doc/html/movie.html But it didn't work. I'm wondering if perhaps the mp4 format I'm using isn't right? This is the line I added to my script: $ renpy.movie_cutscene("Coatepec_Van.mp4") , with Caotepec_Van.mp4 being the name of my movie. My movie file is in the game folder of the game I'm working on. Any suggestions welcome.
You need to use one of the following
VP9
VP8
Theora
MPEG-4 part 2 (including Xvid and DivX)
MPEG-2
MPEG-1
in one of the container formats below
WebM
Matroska
Ogg
AVI
Various kinds of MPEG stream.
I would suggest vp9 in an mkv format. Set your video output encoder / recording software to this format and extension.
Re: Can't get my fullscreen movie to work
Alright, so I used handbrake to convert my mp4 movie into a webm movie, using the VP9 MKV 1080p30 (Modified) format. I got the same problem- basically, it ran through the rest of the code and then it just ignored my line of code to show the movie. Here's my precise code, skipping the initial define statement and removing some # stuff:
**
label start:
scene bg room
show eileen happy
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
$ renpy.movie_cutscene("Coatepec_Van.webm")
return
**
**
label start:
scene bg room
show eileen happy
e "You've created a new Ren'Py game."
e "Once you add a story, pictures, and music, you can release it to the world!"
$ renpy.movie_cutscene("Coatepec_Van.webm")
return
**
Re: Can't get my fullscreen movie to work
Well the code itself is correct. My clips (VP8 / webm) play no problem.
Re: Can't get my fullscreen movie to work
Thanks for your response . I figured out the problem. Or at least got it to work. I guessed that perhaps I got the encoding wrong again somehow, so I re encoded it. This time it worked .
Who is online
Users browsing this forum: No registered users