She's waiting...ready to tease you live - Jerkmate is free! Join Now!
x

Ren'Py movie as image

Cohibozz

Member
Game Developer
Aug 14, 2018
154
154
173
Good morning everyone,
I’m trying to add short 5-second looping videos to the character presentation, but I can’t get the video to display in any way.
I’ve tried using .ogv and .webm formats, even converted them with HandBrake to webm (vp9), but still nothing shows up.
I’ve checked other posts in the forum and tried the various suggestions (that’s actually how I discovered HandBrake), but the video still doesn’t appear…
I’m surely making a silly mistake somewhere, but I’d rather humbly ask for help than throw my PC out the window :)

I’m attaching the video I’m using in webm vp9 format.

Thanks for your replies!

Python:
label cambio_nomi:
    image presU = Movie(play="video/presU.webm", channel="movie", loop=True, size=(1920, 1080))

    gm " ciao [mcname], prima di iniziare presentami gli altri personaggi"

    mc "lei è [uname]"
    scene mansion
    with None
    show presU
    with dissolve
    "è la donna che mi ha preso in affidamento se vuoi scegli un nome e una parentela differente"
    "[uname] in verità si chiama ....."
 

Winterfire

Conversation Conqueror
Respected User
Game Developer
Sep 27, 2018
6,402
9,180
800
Are you sure it's not a path issue?

Python:
image videoName = Movie(play="video/videoname.webm")

label start:
    scene videoName
    mc "test"
    return
This should be good enough, the rest is already default afaik.

You can also try to set a start_image to see if that shows up:
 

Cohibozz

Member
Game Developer
Aug 14, 2018
154
154
173
Are you sure it's not a path issue?

Python:
image videoName = Movie(play="video/videoname.webm")

label start:
    scene videoName
    mc "test"
    return
This should be good enough, the rest is already default afaik.

You can also try to set a start_image to see if that shows up:
Thanks for the quick reply!
Thanks to you confirming that everything was correct, I went back to check the paths and names and... the video folder is actually called "movie" — but since I’m a clueless Italian, in the code I had written "video".
Now it works perfectly. Sorry for the trouble — you guys are the best!
 

Insomnimaniac Games

Degenerate Handholder
Game Developer
May 25, 2017
5,768
10,868
921
Thanks for the quick reply!
Thanks to you confirming that everything was correct, I went back to check the paths and names and... the video folder is actually called "movie" — but since I’m a clueless Italian, in the code I had written "video".
Now it works perfectly. Sorry for the trouble — you guys are the best!
Winterfire is also Italian. :ROFLMAO:
 
  • Like
Reactions: Winterfire

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
12,795
21,079
1,026
By the way...

Python:
label cambio_nomi:
    image presU = Movie(play="video/presU.webm", channel="movie", loop=True, size=(1920, 1080))
This is wrong.
image (as well as style, define, default and transform) is a statement at init level. It should be kept outside of label, with 0 indentation.

Strictly speaking it will works if wrote like you did, but it break the label flow, making it look empty, then followed by stand alone code that aren't actually located in a label.
So far, it isn't an issue, but with Ren'Py constantly evolving, there's no guaranty that it will continue in the future.
 

Cohibozz

Member
Game Developer
Aug 14, 2018
154
154
173
By the way...



This is wrong.
image (as well as style, define, default and transform) is a statement at init level. It should be kept outside of label, with 0 indentation.

Strictly speaking it will works if wrote like you did, but it break the label flow, making it look empty, then followed by stand alone code that aren't actually located in a label.
So far, it isn't an issue, but with Ren'Py constantly evolving, there's no guaranty that it will continue in the future.
Thank you very much, I’ll add it together with the other image statements outside the label.
 
  • Like
Reactions: osanaiko