Visitar URL original
myMovie.time() returns incorrect value · Issue #210 · processing/processing-video · GitHub
Skip to content

myMovie.time() returns incorrect value #210

Description

@illusionmanager

I'm having trouble with looping the video. the loop() call itself doesn't work, and the workaround
if (m.duration() - m.time() < 0.05) {
m.jump(0);
}
seems unreliable. I had to increase the value to 0.15 to make it work and then the loop isn't even seamless. So instead of using a movieEvent() to read the frame, I thought perhaps loop() works when using available() and read() inside the draw() function. It doesn't help. So for debugging purposes I added println (myMovie.time(). At the end of the movie it keeps printing 20.02. However sometimes it prints -1.0E-9. That might be the systems attempt to loop the movie, but clearly it is wrong and doesn't work.

Activity

  1. illusionmanager commented on Nov 8, 2022

    @illusionmanager
    Author

    interesting enough the duration() reports 20.096 but the time stops increasing at 20.02 (the movie itself has 29.97 fps). does it stop reading before the actual end is reached??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions