Re: Export Quicktime Pro to multiple mp4 formats
Re: Export Quicktime Pro to multiple mp4 formats
- Subject: Re: Export Quicktime Pro to multiple mp4 formats
- From: Thomas Fischer <email@hidden>
- Date: Tue, 6 Jul 2010 07:43:33 +0200
Hello,
this script seems to work for me in principle (Mac OS X 10.6.4, Quick Time Player 7 7.6.6).
The only problem is with the "using settings preset movPreset": I have to replace "Broadband - High" with the German "Breitband - Hoch", but don't know what to do with "2x CD-ROM": this looks the same in German, but produces an error message, saying essentially "the given object is a property and not an element" (number -10008).
And I can't find the correct term, since
save export settings document 1 for AVI to exportFilePath
doesn't work either.
The transformed movies (from mp4 to mp4 and avi) run flawlessly.
Cheers
Thomas
Am 05.07.2010 um 18:51 schrieb email@hidden:
> That is odd. I get the behavior you describe if the extension doesn't match the format.
>
> Make sure that those formats and settings are available in your quicktime UI.
>
> I'm running Quicktime Player version 7.6.6
> and
> Mac OSX 10.6.4
>
> I'm wondering if that script works for anyone else
>
> ES
>
> On Jul 4, 2010, at 9:44pm, John Muchow wrote:
>
>> Thanks very much!. I was able to run the script as you wrote it and I
>> clearly must have something wrong with my install of Quicktime as I
>> still get an unwatchable movie when I play the exported file - it
>> appears are colored noise, no discernible content.
>>
>> I have no idea how to track this one down...maybe a reinstall of QuickTime ?
>>
>> On Sun, Jul 4, 2010 at 9:48 PM, email@hidden <email@hidden> wrote:
>>>
>>> On Jul 4, 2010, at 2:35pm, John Muchow wrote:
>>>
>>>> Can anyone successfully use the script to convert a file?
>>>
>>> This works for me. To get the combination of format, setting and extension you need for each export you need to look in the dictionary and the UI export dialog. These two examples should be enough to get you started.
>>> ---------------
>>> tell application "QuickTime Player 7"
>>> set AVIsettings to {AVI, "2x CD-Rom", "avi"}
>>> set MPEG4settings to {MPEG4, "Broadband - High", "MP4"}
>>> end tell
>>>
>>>
>>> set formatList to {AVIsettings, MPEG4settings}
>>> tell application "Finder"
>>> set the startup_disk to the name of the startup disk
>>> end tell
>>> set User to do shell script "whoami"
>>> set input_folder_name to "Input"
>>> set input_folder to startup_disk & ":Users:" & User & ":Desktop:" & input_folder_name & ":"
>>> set user_desktop to startup_disk & ":Users:" & User & ":Desktop:"
>>> set output_folder to startup_disk & ":Users:" & User & ":Desktop:Output:"
>>> try
>>> tell application "Finder"
>>> make new folder at user_desktop with properties {name:"Output"}
>>> end tell
>>> end try
>>> set the_folder_list to list folder input_folder without invisibles
>>> repeat with x from 1 to count of the_folder_list
>>>
>>> set the_file to input_folder & item x of the_folder_list
>>> tell application "QuickTime Player 7"
>>> activate
>>> open the_file
>>> repeat with myFormat in formatList
>>> set {movFormat, movPreset, movExtension} to myFormat
>>> set file_extension to "-lo." & movExtension
>>> set output_file to output_folder & item x of the_folder_list & file_extension
>>> with timeout of 600 seconds
>>> export front document to output_file as movFormat using settings preset movPreset with replacing
>>> end timeout
>>> end repeat
>>> close front document
>>> end tell
>>> end repeat
>>> ----------
>>> --FWIW, this is not at all how I'd write this script.
>>> I'd reduce all the finder and path manipulation to two or three lines, and probably replace the original extension with the export extension, rather than just append.
>>>
>>>
>>>
>>> HTH,
>>>
>>> ES
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden