Am 22.06.2011 um 23:06 schrieb Louis:

>> Oh. Please call Idle method in this case to give CPU time to the class for
>> updating the video frame.
> You're right Arnaud, I'm using the position property.
> 
> I did that too, also without success.
> 
> Here's the final code that doesn't work.

And that code works for me:

  dim file as FolderItem = SpecialFolder.Desktop.Child("test.m4v")
  dim m as movie = file.OpenAsMovie
  
  dim f as new QTFrameExtractorMBS(m)
  dim posit as Double = 0
  
  do
    f.Position = posit // set new position
    f.Idle // update currentpicture
    
    dim p as Picture = f.CurrentPicture
    
    file = SpecialFolder.Desktop.Child(str(posit)+".jpg")
    p.Save(file, p.SaveAsJPEG)
    
    posit = posit+1 // next second
  Loop Until posit>29
  
I write pictures to disk. I expect your problem is more that window does not 
update. Maybe you add something like window.UpdateNow.

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to