can we play video in a game?
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
can we play video in a game?
In the ren'py features we can read:
"Can play mpeg1 movies."
what does that mean? we can put video? It would be so cool if i can make my own credit with movie maker and then put it in my game!
and, what's a mpeg1 movie by the way ?
"Can play mpeg1 movies."
what does that mean? we can put video? It would be so cool if i can make my own credit with movie maker and then put it in my game!
and, what's a mpeg1 movie by the way ?
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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: can we play video in a game?
Mpeg-1 is a type of movie format that many programs can produce. While it's not the world's best movie format, it has the benefit that every even remotely modern computer can play it at a reasonable speed.
So the answer is yes, Ren'Py can play video, provided it's in the right format.
So the answer is yes, Ren'Py can play video, provided it's in the right format.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: can we play video in a game?
thank you very much
so, once you got the right type of video, how do you pu it into the game, it's like
play "nameofthevideo.mpg1" ?
as we do for music?
so, once you got the right type of video, how do you pu it into the game, it's like
play "nameofthevideo.mpg1" ?
as we do for music?
-
- Veteran
- Posts: 338
- Joined: Wed Dec 26, 2007 5:26 am
- Location: US
- Contact:
Re: can we play video in a game?
Code: Select all
renpy.movie_cutscene(filename, delay=None, loops=0)
Project - R.E.M: Reality's Dream - Team head/Lead Writer
Other projects - Jamais Vu (script 10k), Chronicles of Etemis
Scripts in planning- 1
Other projects - Jamais Vu (script 10k), Chronicles of Etemis
Scripts in planning- 1
Re: can we play video in a game?
awwww, i'm such a dumb ! it didn't work o_o
may i ask for an exemple?(forgive me ^_^')
and is there something to do with python or declare it with the image before?....
may i ask for an exemple?(forgive me ^_^')
and is there something to do with python or declare it with the image before?....
-
- Veteran
- Posts: 338
- Joined: Wed Dec 26, 2007 5:26 am
- Location: US
- Contact:
Re: can we play video in a game?
Code: Select all
$ renpy.movie_cutscene("On_Your_Mark.mpg", 394)
Project - R.E.M: Reality's Dream - Team head/Lead Writer
Other projects - Jamais Vu (script 10k), Chronicles of Etemis
Scripts in planning- 1
Other projects - Jamais Vu (script 10k), Chronicles of Etemis
Scripts in planning- 1
Re: can we play video in a game?
the game work but don't read the video while making a strange noise.... i'm driving crazy ><
thanks for the help, but i think i'm gonna give up.......
thanks for the help, but i think i'm gonna give up.......
Re: can we play video in a game?
Are you sure that the movie is the right format, though? It's not that common to find videos encoded into MPEG1 these days unless something specificially needs it, because more-recent formats are better in terms of compression.Guest wrote:the game work but don't read the video while making a strange noise....
IIRC MPEG1 is what VCDs are encoded in; DVDs are MPEG2, and things like DivX and H.264 are various implementations of MPEG4. I've not tried getting Ren'Py to play movies at all, myself, but it seems pretty likely that you'll have to convert video from most sources into the appropriate format. Unfortunately I don't think you can get Movie Maker to output in that format, so you'll need to find some other tool to re-encode the output.
Server error: user 'Jake' not found
Re: can we play video in a game?
thanks but i did convert well on an online converter that i like very much "media convert"
it's very useful ^^
it's very useful ^^
-
- Newbie
- Posts: 22
- Joined: Fri Dec 07, 2007 3:57 pm
- Completed: Threed's Heroes and Happy Happy Halloween
- Projects: Yotsuba&! Kinetic Novel, Other Projects.
- Location: Birmingham
- Contact:
Re: can we play video in a game?
Thats odd, Whenever I try to add video to my game, i get the text, a blank screen, and lots of weird static noises. It happens with every video that i try. Audio / Video can be provided upon request.
"My Name is Ozymandias, King of Kings: Look On My Works Ye Mighty And Despair!"
-
- Miko-Class Veteran
- Posts: 649
- Joined: Fri Dec 16, 2005 5:21 pm
- Completed: Fading Hearts, Infinite Game Works
- Projects: Don't Save the World
- Organization: Sakura River
- Location: Canada
- Contact:
Re: can we play video in a game?
I think it's just trying to make sure it's mpeg1 format... not 2 or 4. I think most VN trailers are in mpeg1 format because it's easy to play and japan has fiber at home.
- PyTom
- Ren'Py Creator
- Posts: 16096
- 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: can we play video in a game?
Providing video would really help.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Eileen-Class Veteran
- Posts: 1258
- Joined: Fri Sep 21, 2007 7:13 am
- Projects: a battle engine
- Contact:
Re: can we play video in a game?
Even just the first 32kb or so of said video file would probably suffice for determining what it is.
-
- Newbie
- Posts: 22
- Joined: Fri Dec 07, 2007 3:57 pm
- Completed: Threed's Heroes and Happy Happy Halloween
- Projects: Yotsuba&! Kinetic Novel, Other Projects.
- Location: Birmingham
- Contact:
Re: can we play video in a game?
here it is
- Attachments
-
[The extension mpg has been deactivated and can no longer be displayed.]
"My Name is Ozymandias, King of Kings: Look On My Works Ye Mighty And Despair!"
-
- Regular
- Posts: 115
- Joined: Wed Apr 16, 2008 10:36 am
- Contact:
Re: can we play video in a game?
does the video only need to be in mpeg1? I'm wondering if it requires specific FPS or resolution...
I'm hidden and no one expects much of me... I just hope I don't disappoint anyone...
I'd rather fail doing something I love than succeed doing something I hate...
I'd rather fail doing something I love than succeed doing something I hate...
Who is online
Users browsing this forum: Ahrefs [Bot], Majestic-12 [Bot]