|
Author |
Topic: Please Help with Quicktime in Processing! (Read 1816 times) |
|
cch258
|
Please Help with Quicktime in Processing!
« on: Feb 23rd, 2005, 7:27am » |
|
I am new at this. I have succesfully loaded a Quicktime movie file onto the sketchpad, but now I need to figure out how to move the movie in relation to the mouse, or a joystick, or some kind of hardware with an x-axis or something. I essentially want to coordinate the "cursor" of the movie image to move with a mouse, for example, so that the movie rewinds as the mouse moves to the left and fast-forwards as the mouse goes to the right. Any suggestions? Thanks
|
|
|
|
fjen
|
Re: Please Help with Quicktime in Processing!
« Reply #1 on: Feb 23rd, 2005, 11:20am » |
|
PLEASE! NO DOUBLE POSTING! a group of very nice people is steadily trying to answer any question. flooding the board won't get you your answers any sooner ... and it's not really helpful for other users in finding answers if you ask a video question in i.e. "theory and practice". so: no double posting and try to find the best fitting category for your posts. please. that said, about your question: currently there's no direct implementation in BVideo for what you want to do (rewind, fastforward, setting the movie to a certain frame, ..). what you can do is use quicktime for java (around which BVideo was build) to control the movie. you can access the quicktime.std.movies.Movie in BVideo with: BVideo.movie Code: // getting the frame count of a movie BVideo bv = loadVideo("somevideo.mov"); int totalFrames; try { int lastTrack = bv.movie.getTrackCount(); totalFrames = bv.movie.getIndTrack(lastTrack).getMedia().getSampleCount(); } catch (Exception e) { e.printStackTrace(); } // setting the movie to a certain frame try { bv.movie.setTimeValue( (int)(totalFrames * mval) ); // where 0.0 >= mval <= 1.0 } catch (Exception e) { e.printStackTrace(); } |
| /F
|
|
|
|
fry
|
Re: Please Help with Quicktime in Processing!
« Reply #2 on: Feb 23rd, 2005, 4:02pm » |
|
more important, there's no reason *ever* to post six times. that's ridiculous and means we have to waste time to go through and remove the others. please don't ever do that again.
|
|
|
|
cch258
|
Re: Please Help with Quicktime in Processing!
« Reply #3 on: Feb 23rd, 2005, 6:33pm » |
|
Sorry. I didn't realize I was breaking any rules. If that is such a problem, you should put notices somewhere, telling people not to do it.
|
|
|
|
|