Page 1 of 1
Videos not playing
Posted: Wed Mar 15, 2017 4:09 pm
by Cristiander
I made a breathing animation for one of my characters but it doesn't always work.
I have it as a webm
The define code for it is this:
Code: Select all
image nep_body normal = Movie(channel="nep_body", play="sprites/nep/nep_body.webm", mask = "sprites/nep/nep_body_mask.webm")
And the call function is simply this:
But the animation doesn't always start. Sometimes it get's stuck on a specific frame, sometimes it doesn't start at all. I noticed that it has something to do with how fast I'm clicking. Is this a performance issue?
I don't understand what could be causing this.
Re: Videos not playing
Posted: Wed Mar 15, 2017 11:43 pm
by PyTom
It could be, but video decoding should be fast. It should catch up if it gets stuck, also.
Re: Videos not playing
Posted: Thu Mar 16, 2017 1:18 am
by indoneko
@Cristiander : can I
borrow your sprite for testing?
I tried using a random webm movie from the web as a sprite and it didn't get stuck. The problem is, it disappears when I push the "back" button....
Re: Videos not playing
Posted: Thu Mar 16, 2017 12:59 pm
by Cristiander
indoneko wrote:@Cristiander : can I
borrow your sprite for testing?
I tried using a random webm movie from the web as a sprite and it didn't get stuck. The problem is, it disappears when I push the "back" button....
Ok, so these are the resources of the image:
https://we.tl/wmy2ljcPPF
And this is how it's called:
Code: Select all
show whitetint zorder 100:
alpha 1.0
with Dissolve(5.0)
show nep_body normal at Tright_small
show nep_face closed_happy at Tright_small
show nep_hair normal at Tright_small
show nep_mought smile at Tright_small
show nep_eyebrows normal at Tright_small
where Tright_small is:
Code: Select all
transform Tright_small:
xalign 1.2
yalign 1.0
zoom 1.2
And whitetint is:
Code: Select all
image whitetint:
Solid("#ffffff")
additive 1.0
Re: Videos not playing
Posted: Thu Mar 16, 2017 8:28 pm
by indoneko
Thanks~
I tried your code + the nep sprite in a new project using Renpy 6.99.12.4.2168 with New Gui on Windows. It loads fine; I don't see it get stuck... until I push the
back button
Only the PNG parts of the sprite remains.
Where did the webm parts go?
It happens with other webm files I use... so I don't think the problem came from the webm file itself. Did I do something wrong? Is this a bug? Can anybody else confirm this?
Re: Videos not playing
Posted: Sat Mar 18, 2017 10:56 am
by Cristiander
indoneko wrote:Thanks~
I tried your code + the nep sprite in a new project using Renpy 6.99.12.4.2168 with New Gui on Windows. It loads fine; I don't see it get stuck... until I push the
back button
Only the PNG parts of the sprite remains.
Where did the webm parts go?
It happens with other webm files I use... so I don't think the problem came from the webm file itself. Did I do something wrong? Is this a bug? Can anybody else confirm this?
Odd. I don't have this problem...
When I go back all the images are the way they should be ...
Re: Videos not playing
Posted: Sun Mar 19, 2017 12:49 am
by Divona
I have the same problem of webm video displayable not playing when rollback. Add a second pause before load the displayable seem to help.
Re: Videos not playing
Posted: Sun Mar 19, 2017 3:01 am
by indoneko
Divona wrote:I have the same problem of webm video displayable not playing when rollback. Add a second pause before load the displayable seem to help.
Thanks for your suggestion. I tried it, but it still didn't work.
Can you test it on a new project using the nep sprite above, with the new GUI of newest Renpy (6.99.12.4) on Windows system? The sprite consistently disappeared when I rollback at the line right under the line which shows the last part of the sprite (using Cristiander code above but without the whiteint part)
Re: Videos not playing
Posted: Sun Mar 19, 2017 4:04 pm
by Imperf3kt
I always rolpback twice when I have any kind of animation or video.
Its annoying, but works perfect. I always assumed it was to do with how Ren'Py loads assets.