Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

QTMovieExporterMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class QuickTime MBS QuickTime Plugin 3.1 Yes Yes No No No
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

Feedback, Comments & Corrections

  • 3 events
  • 12 properties
  • 35 methods
    • method Close
    • method ConvertMovieToFile(mov as movie, file as folderitem, filetype as string, filecreator as string, flags as Integer) as boolean
    • method ConvertMovieToFile(movHandle as Integer, file as folderitem, filetype as string, filecreator as string, flags as Integer) as boolean
    • method ConvertMovieToFile2(mov as movie, byref file as folderitem, filetype as string, filecreator as string, flags as Integer) as boolean
    • method ConvertMovieToFileTrack(mov as movie, trackhandle as Integer, file as folderitem, filetype as string, filecreator as string, flags as Integer) as boolean
    • method ConvertMovieToFileTrack2(mov as movie, trackhandle as Integer, byref file as folderitem, filetype as string, filecreator as string, flags as Integer) as boolean
    • method CreatorType as string
    • method ExportToFile(mov as movie, file as folderitem) as boolean
    • method ExportToFile(mov as movie, file as folderitem, StartPositionInFrame as Integer, DurationInFrames as Integer) as boolean
    • method ExportToFileTrack(mov as movie, TrackHandle as Integer, file as folderitem) as boolean
    • method ExportToFileTrack(mov as movie, TrackHandle as Integer, file as folderitem, StartPositionInFrame as Integer, DurationInFrames as Integer) as boolean
    • method ExportToMemory(mov as movie) as memoryblock
    • method ExportToMemory(mov as movie, StartPositionInFrame as Integer, DurationInFrames as Integer) as memoryblock
    • method ExportToMemoryTrack(mov as movie, TrackHandle as Integer) as memoryblock
    • method ExportToMemoryTrack(mov as movie, TrackHandle as Integer, StartPositionInFrame as Integer, DurationInFrames as Integer) as memoryblock
    • method ExportToString(mov as movie) as string
    • method ExportToString(mov as movie, StartPositionInFrame as Integer, DurationInFrames as Integer) as string
    • method ExportToStringTrack(mov as movie, TrackHandle as Integer) as string
    • method ExportToStringTrack(mov as movie, TrackHandle as Integer, StartPositionInFrame as Integer, DurationInFrames as Integer) as string
    • method FileExtensions as string
    • method FileNameExtension as string
    • method FileTypes as string
    • method OpenAIFFExporter as boolean
    • method OpenExporter(subtype as string, manufacturer as string) as boolean
    • method SetSoundFormat(SampleSize as Integer, SampleRate as Integer, DataFormat as Integer, NumChannels as Integer)
    • method SetSoundFormat(SampleSize as Integer, SampleRate as Integer, DataFormat as string, NumChannels as Integer)
    • method SetupDialog(mov as movie) as boolean
    • method SetupDialog(mov as movie, StartPositionInFrame as Integer, DurationInFrames as Integer) as boolean
    • method SetupDialog(movHandle as Integer) as boolean
    • method SetupDialogTrack(mov as movie, trackhandle as Integer) as boolean
    • method SetupDialogTrack(mov as movie, trackhandle as Integer, StartPositionInFrame as Integer, DurationInFrames as Integer) as boolean
    • method Validate(mov as movie) as boolean
    • method Validate(movHandle as Integer) as boolean
    • method ValidateTrack(mov as movie, trackhandle as Integer) as boolean
    • method ValidateTrack(movHandle as Integer, trackhandle as Integer) as boolean

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 FileMaker Plugins