Videos not playing

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Videos not playing

#1 Post 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:

Code: Select all

show nep_body normal at right
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.

User avatar
PyTom
Ren'Py Creator
Posts: 16088
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: Videos not playing

#2 Post by PyTom »

It could be, but video decoding should be fast. It should catch up if it gets stuck, also.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Videos not playing

#3 Post 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.... :o
My avatar is courtesy of Mellanthe

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: Videos not playing

#4 Post 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.... :o

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

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Videos not playing

#5 Post by indoneko »

Thanks~ :D

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 :shock: :shock:
screenshot0001.png
Only the PNG parts of the sprite remains. Where did the webm parts go? :lol:
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?
My avatar is courtesy of Mellanthe

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: Videos not playing

#6 Post by Cristiander »

indoneko wrote:Thanks~ :D

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 :shock: :shock:

Only the PNG parts of the sprite remains. Where did the webm parts go? :lol:
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 ...

User avatar
Divona
Miko-Class Veteran
Posts: 678
Joined: Sun Jun 05, 2016 8:29 pm
Completed: The Falconers: Moonlight
Organization: Bionic Penguin
itch: bionicpenguin
Contact:

Re: Videos not playing

#7 Post 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.
Completed:
Image

User avatar
indoneko
Miko-Class Veteran
Posts: 528
Joined: Sat Sep 03, 2016 4:00 am
Contact:

Re: Videos not playing

#8 Post 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. :roll:

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)
My avatar is courtesy of Mellanthe

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Videos not playing

#9 Post 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.
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

Post Reply

Who is online

Users browsing this forum: No registered users