The example "QTKit Create Movie in memory" works well (code below). it uses a 
codec that seems to be a tiff codec applied to each image of the movie, not a 
movie codec. 

                q.addImage image, duration, "tiff", 
QTKitModuleMBS.codecHighQuality

Is there any way to specify a movie codec, such as h.264, using MBS QTkit 
plugin?

John Kubie

----

I'm appending the code from the example, "QTKit Create Movie in memory" which 
uses the QTkit plugin. 
-----
  // create movie in memory
  dim q as new QTKitMovieMBS
  
  // create duration for the picture
  dim duration as QTKitTimeMBS = new QTKitTimeMBS(20, 600)
  
  // create a picture
  dim p as new Picture(500,500,32)
  dim g as Graphics = p.Graphics
  
  // prepare
  g.ForeColor = &cFFFFFF
  g.FillRect 0,0,500,500
  g.PenWidth = 10
  g.PenHeight = 10
  
  // let's add 501 frames
  for i as integer = 0 to 500
    
    // draw something. e.g. a line
    g.ForeColor = &cFF0000
    g.drawline 0, 0, i,i
    
    // add the image
    dim image as new NSImageMBS(p)
    q.addImage image, duration, "tiff", QTKitModuleMBS.codecHighQuality
    
  next
  
  // where to write?
  dim outputfile as FolderItem = SpecialFolder.Desktop.Child("test2.mov")
  
  // save file
  dim error as NSErrorMBS
  if q.flattenToFile(outputfile, error) then
    q = nil
    outputfile.Launch
    
  else
    MsgBox error.description
  end if
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to