quicktime-java
[Prev] Thread [Next] | [Prev] Date [Next]
Re: about frame by frame step Rolf Howarth Mon Dec 08 01:06:53 2008
What exactly is it you're trying to do? Incrementing movie time every 10ms in a loop sounds an awful lot like playing it at 2.5x normal speed! If so, why not just set the movie playback rate to that?I suspect you're trying to play every frame, so some things to think about: - Setting the movie time doesn't guarantee that that frame is rendered. - Look at QTCallback - Try setting hintsPlayingEveryFrame - Look at MovieController.step()- Consider using nextTimeStep and visualMediaCharacteristic instead of nextTimeMediaSample in your call to getNextInterestingTime so you cope with edits etc.
Rolf At 23:23 +0100 6/12/08, Gill Bates wrote:
Content-Type: multipart/signed; boundary=Apple-Mail-2--960555854; micalg=sha1; protocol="application/pkcs7-signature" Hi all, currently I'm using following code to step forward/backward for n steps for (int i = 0; i < x; i++) {ti = visualTrack.getNextInterestingTime(StdQTConstants.nextTimeMediaSample, m.getTime(), -1);m.setTime(new TimeRecord(m.getTimeScale(), ti.time)); Thread.sleep(10); }But somehow when it is displayed in AWT windows, it looked full of lags, delays when it's stepping forward/backward. then I print out the time after each stem using "movie.getTime()", I found that each step is about 25 frames. And I do think manully call the thread to sleep isn't a wise way...Anyone has a better idea to step back/forward to specific time? Thx a lot. Ramon Attachment converted: Macintosh HD:smime 29.p7s ( / ) (001E06A4) _______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list ([EMAIL PROTECTED]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/rolf%40squarebox.co.uk This email sent to [EMAIL PROTECTED]
-- Rolf Howarth Square Box Systems Ltd Stratford-upon-Avon, UK. http://www.squarebox.co.uk _______________________________________________ Do not post admin requests to the list. They will be ignored. QuickTime-java mailing list ([EMAIL PROTECTED]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/quicktime-java/alexiscircle%40gmail.com This email sent to [EMAIL PROTECTED]
- about frame by frame step Gill Bates
- Re: about frame by frame step Rolf Howarth <=
- Re: about frame by frame step Gill Bates
- Re: about frame by frame step Rolf Howarth
- Message not available
- Re: about frame by frame step Rolf Howarth
- Re: about frame by frame step Gill Bates