MBS Xojo Developer Conference and Training
Join us from 3rd to 6th May 2017 in Berlin, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

QTMovieExporterMBS class

class, QuickTime, MBS QuickTime Plugin (QTMovieExporter), class QTMovieExporterMBS,
Plugin version: 3.1, Mac: Yes, Win: Yes, Linux: No, Console & Web: No, Feedback.

Function: A class for exporting movies.
Example:
// An example which gets an example movie and converts it to the sound
dim q as QTMovieExporterMBS
dim m as movie
dim s as String

m=SpecialFolder.Desktop.Child("Sample Movie").OpenAsMovie
q=new QTMovieExporterMBS

if m=nil then
MsgBox "No movie?"
else
if q.OpenAIFFExporter then
// 22050Hz are &h56220000 (=22050 * 65536)
// "Qclp" is Qualcomm Purevoice
q.SetSoundFormat 16,&h56220000,OSTypeFromStringMBS("Qclp"),1
if q.Lasterror=0 then
if q.ConvertMovieToFile(m,SpecialFolder.Desktop.Child("Sample Movie.aif"),"AIFF","TVOD",0) then
MsgBox "Saved Sample Movie.aif"
else
MsgBox "Error on converting movie: "+str(q.Lasterror)
end if
Else
MsgBox "Can't set sound format: "+str(q.Lasterror)
end if
else
MsgBox "Can't open the AIFF Exporter. ("+format(q.Lasterror,"-0")+")"
end if
end if
Notes:
The class was originally designed to enable the example above: Exporting AIFF sound from any movie. Over time more functionality was added.
Please send in requests if you need additional functionality.

Please read the MPEG4 Audio licensing stuff for Windows:
http://developer.apple.com/qa/qa2001/qa1347.html

This class has no sub classes.

Some examples which use this class:


The items on this page are in the following plugins: MBS QuickTime Plugin.


QTMetaDataMBS   -   QTMovieModernizerMBS




Links
MBS Xojo blog