Hi friends, I am Anty and I want to control the movie’s speed by .speed() but it seems not working in my code. Whatever the number I wrote to “.speed(0.5)” “.speed(5)” all of them are the same speed.
This is my code:
import processing.video.*;
Movie m;
void setup(){
iRate=0.5;
size(500,300);
frameRate(30);
m=new Movie(this,"m.mov");
m.speed(0.1);
m.loop();
}
void draw(){
if(m.available()){
m.read();
}
image(m,0,0,width,height);
}```
Thank you for your answer!
Seems like you have the same exact thing ! But your omg has width and height did you try and see how it works without the width and height variables present ?
Hi friend,
Thank you!
I tried it without heigh and width variables present. It still doesn’t work with the speed. And I followed the guide of the link that you put. I cannot get more information about speed. It is not working…
<I want to achieve a function that the video’s speed follow with the music’s loudness or music’s frequency so that’s why I need control the speed of video. As well as before I used this way, I have tried to use frameRate() to control the image’s appear’s speed, but it is also not working well, because the frameRate() became slower and slower >
Anty
Oh!!!
Got it! It is working for this example!
I will try it again in my sketch!
Thank you kll!
My system is Mac…
Just now I thought that you ask me to try the example code of website.
Just now I tried the example inside of processing. It is working now!!!
I actually found out what is the problem. You must set the speed while the movie is playing ! in your original code, you just need to move the m.speed(0.1); to the line after m.loop();.
Hope this works and helps !