Quicktime Pro Scripting

Hello,
I'm using Quicktime Pro to convert video files to hinted mp4 files that that can be streaming using Darwin Streaming Server. Right now I'm manually converting everything- what I'd like is a way (jscript?) to have the server convert uploaded movies for streaming. Is this possible?
Thanks,
Nick

That sort of thing's beyond my technical abilities I'm afraid, Nick.
If you don't get any more-helpful replies here, it might be worth checking in at the QuickTime-users mailing list to see if someone there has some advice:
http://lists.apple.com/mailman/listinfo/quicktime-users

Similar Messages

  • QuickTime Pro Scripting - Audio Channel Mapping

    Does anyone know if there is a way to script audio channel mapping and renaming in QuickTime Pro 7? I deal with a lot of 5.1 audio that needs to be channel mapped and renamed to its specific channel  for iTunes uploading. I'm currently doing this task manually in QuickTime Pro, but I'd love to know if there is a possibility to automate this task. I'm new to scripting, and its been very helpful with a lot of my day to day tasks, but I can't seem to figure this one out. Any suggestions would be awesome! Thanks!

    Hello
    A QT file contains sound tracks and a sound track contains audio channels.
    If you mean your QT file has 4 sound tracks each of which contains one audio channel marked as "Mono", you may try the following script. Please make sure you have complete backup of files in advance, for this script will overwrite the files.
    Script is basically the same as the one posted in the following thread except for the channel_layouts_map definition.
    Quicktime Pro Applescript - Assign audio channels
    https://discussions.apple.com/thread/6055790
    Notes.
    * You need to have QuickTime Player 7 Pro. QuickTime X Player is useless for this.
    * You need to enable GUI scripting.
    cf.
    OS X: Using AppleScript with Accessibility and Security features in Mavericks
    http://support.apple.com/kb/HT5914
    Briefly tested with QuickTime Player Pro 7.6.6 (1710) (QuickTime version 7.6.6 (1800)) under OS X 10.6.8.
    Good luck,
    H
    on run
        open (choose file with prompt ("Choose movie file(s)") ¬
            of type {"com.apple.quicktime-movie", "public.mpeg-4"} ¬
            with multiple selections allowed)
    end run
    on open aa
        set channel_layouts_map1 to {¬
            {1, 1, {"Unused"}}, ¬
            {2, 2, {"Unused"}}, ¬
            {3, 3, {"Mono"}}, ¬
            {4, 4, {"Mono"}} ¬
        set channel_layouts_map1 to {¬
            {1, 1, {"Unused"}}, ¬
            {2, 2, {"Unused"}} ¬
        repeat with a in aa
            set f to a's POSIX path
            set k to count_sound_tracks(f, {_close:false})
            if k = 4 then
                remap_audio_channels(f, channel_layouts_map1)
            else
                -- ignore it (just close it)
                close_document(f, {_save:false})
            end if
        end repeat
    end open
    on count_sound_tracks(f, {_close:_close})
            string f : POSIX path of QT movie
            boolean _close: true to close document, false othewise
        tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
            open (f as POSIX file)
            tell (document 1 whose path = f)
                repeat until exists
                    delay 0.2
                end repeat
                set k to count (tracks whose audio channel count > 0)
                if _close then close
            end tell
        end tell
        return k
    end count_sound_tracks
    on close_document(f, {_save:_save})
            string f : POSIX path of QT movie
            boolean _save: true to save document (if modified), false othewise
        tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
            tell (document 1 whose path = f)
                if exists then
                    if _save and modified then save
                    close
                end if
            end tell
        end tell
    end close_document
    on remap_audio_channels(f, channel_layouts_map)
            string f : POSIX path of source movie
            list channel_layouts_map : list of {trk, trk_new, layouts}
                trk = (string or integer) name or index of source sound track
                trk_new = (string or integer) new name for source track (integer i denotes original name of sound track i)
                layouts = list of audio layout for channel(s) in source sound track
                    Mono
                    Left
                    Right
                    Center
                    LFE Screen
                    Left Surround
                    Right Surround
                    Left Center
                    Right Center
                    Center Surround
                    Rear Surround Left
                    Rear Surround Right
                    Left Total
                    Right Total
                    Discrete-0
                    Discrete-1
                    Unused
                e.g. 1
                   {{"Sound Track 1", "Left", {"Left"}}, ¬
                    {"Sound Track 2", "Right", {"Right"}}, ¬
                    {"Sound Track 3", "Center", {"Center"}}, ¬
                    {"Sound Track 4", "LFE Screen", {"LFE Screen"}}, ¬
                    {"Sound Track 5", "Left Surround", {"Left Surround"}}, ¬
                    {"Sound Track 6", "Right Surround", {"Right Surround"}}, ¬
                    {"Sound Track 7", "Left Total", {"Left Total"}}, ¬
                    {"Sound Track 8", "Right Total", {"Right Total"}}}
                e.g. 2
                   {{1, 1, {"Left", "Right"}}, ¬
                    {2, 2, {"Center", "LFE, Screen"}}, ¬
                    {3, 3, {"Left Surround", "Right Surround"}}, ¬
                    {4, 4, {"Left Total", "Right Total"}}}
            * this handler behaves as follows:
                1) open f
                2) scan sound tracks of document 1 for each trk and remap the track's audio channel layouts as specified
                3) scan sound tracks of document 1 for each trk and rename the track as specified
                4) save and close document 1
                * if specified trk is not found, it is ignored and no remapping is performed on the track.
                * if specified layout is not found, it is ignored and no remapping is performed on the layout.
                * if specified layout count is greater than channel count of the target track, excessive layouts are ignored.
                * if specified layout count is smaller than channel count of target track, excessive channels are ignored.
                * if trk and trk_new denotes the same track, renaming is not performed on the track.
        script o
            property map : channel_layouts_map
            property pp : {}
            property qq : {}
            -- get name and id of sound tracks
            tell application id "com.apple.quicktimeplayer" -- QuickTime Player 7 Pro
                activate
                open (f as POSIX file)
                tell (document 1 whose path = f)
                    repeat until exists
                        delay 0.2
                    end repeat
                    tell (tracks whose audio channel count > 0)
                        set {pp, qq} to {name, id} -- name and id of sound tracks
                    end tell
                end tell
            end tell
            -- remap audio channel layouts as specified
            tell application "System Events"
                tell (process 1 whose bundle identifier = "com.apple.quicktimeplayer")
                    -- open movie properties window
                    keystroke "j" using {command down}
                    tell (window 1 whose subrole = "AXDialog") -- properties for movie
                        repeat until exists
                            delay 0.2
                        end repeat
                        repeat with m in my map
                            set {trk, undef, layouts} to m
                            -- [TRK:
                            repeat 1 times
                                if trk's class = integer then
                                    if trk < 1 or trk > (count my pp) then exit repeat -- TRK:
                                    set trk to my pp's item trk
                                end if
                                tell scroll area 1
                                    tell table 1
                                        tell (row 1 whose text field 1's value = trk) -- target sound track whose name = trk
                                            if not (exists) then exit repeat -- TRK:
                                            select
                                        end tell
                                    end tell
                                end tell
                                tell tab group 1
                                    click radio button 3 -- audio settings
                                    tell scroll area 1
                                        tell table 1 -- channel assignment table
                                            set ix to count layouts
                                            repeat with i from 1 to count rows
                                                if i > ix then exit repeat
                                                tell row i -- channel i
                                                    tell pop up button 1
                                                        click
                                                        tell menu 1 -- channel assignment menu
                                                            tell (menu item 1 whose title = layouts's item i)
                                                                if exists then click
                                                            end tell
                                                        end tell
                                                    end tell
                                                end tell
                                            end repeat
                                        end tell
                                    end tell
                                end tell
                            end repeat
                            -- /TRK:]
                        end repeat
                        -- close movie properties window
                        click (button 1 whose subrole = "AXCloseButton")
                    end tell
                end tell
            end tell
            -- rename sound tracks as specified
            tell application id "com.apple.quicktimeplayer"
                tell document 1
                    repeat with m in my map
                        -- [RENAME:
                        repeat 1 times
                            set {x, y} to m's items 1 thru 2 -- {old name or index, new name or index}
                            if x's class = integer then
                                if x < 1 or x > (count my pp) then exit repeat -- RENAME:
                            else
                                set x to my _index_of(pp, x)
                                if x = 0 then exit repeat -- RENAME:
                            end if
                            if y's class = integer then
                                if y < 1 or y > (count my pp) then exit repeat -- RENAME:
                                set y to my pp's item y
                            end if
                            set p to my pp's item x
                            set q to my qq's item x
                            if p ≠ y then set track id q's name to y
                        end repeat
                        -- /RENAME:]
                    end repeat
                    if modified then save
                    close
                end tell
            end tell
        end script
        --tell o to run
        run script o
    end remap_audio_channels
    on _index_of(xx, x)
            list xx : source list
            anything x : item to be searched in xx
            return integer : the first index of x in xx if {x} is in xx, or 0 if not.
        script o
            property aa : xx
            local i, j, k
            if {x} is not in my aa then return 0
            set i to 1
            set j to count my aa
            repeat while j > i
                set k to (i + j) div 2
                if {x} is in my aa's items i thru k then
                    set j to k
                else
                    set i to k + 1
                end if
            end repeat
            return i
        end script
        tell o to run
    end _index_of

  • Help with Automator Script for QuickTime Pro Movie Conversion from Vado

    All my videos from my Creative Vado do not show up in iMovie 09 initially on import. By trial and error, I have discovered that the old version of QuickTime Pro 7 ($29.95) will convert them to .mov files that can be seen by iMovie 09 once the converted videos are imported back into iPhoto.
    I am (very) new to mac things, and it looks like in theory I could use Automator to handle to conversion process, and perhaps even the re-import into iPhoto. Does anyone have any suggestions on how to go about this? Where would be a good site to post this as a project that I could pay some one to help me, provide an automator script/workflow?
    Are any other solutions available? Buy Final Cut etc?
    PS (Rant): One of the reasons I bought a MacBook Pro and iLife was to take advantage of what I thought was supposed to be Apple's superior multimedia handling. It seems ludicrous to me that with a MacBook Pro running the latest software (10.6.4), and using the latest versions of iLife, I'd have to buy an old version of QuickTime to convert my videos so that I could manipulate them in iMovie. Sigh.

    MPeg Stram clip will export files which are compatible with iMovie '09. It (iMovie )can import the following.
    DV
    AIC
    Motion-JPEG
    Photo-JPEG
    MPEG-4 (Supported profiles)
    H.264 (Supported profiles)
    Apple Animation (Movie '09 only)
    Apple Video (iMovie '09 only)
    iMovie '08/'09 will not accept files containing extraneous data tracks such as:
    'Tween
    Text
    Chapter
    Closed Caption
    Secondary audio such as AC3
    etc.
    iMovie '08/'09 Will not accept files that rely on proprietary/third-party components such as
    DivX
    WMV
    XviD
    etc.

  • White screen after Quicktime Pro 7 captures

    I use an automator script in combination with iCal and Quicktime Pro 7.6.6 to capture video content overnight from a commercial satellite. Most mornings when I wake the screen from sleep (I don't put the processor to sleep) Quicktime Pro has successfully capture the program, but the video window that's open on the screen is pure white (just within Quicktime - the remainder of the desktop is normal). Pressing play will begin to play the video; you just can't see anything except white, though you can hear the audio. I have to quit Quicktime and then open the video document again to see the perfectly normal video. Same is true of any other video file on my hard drive. If I don't quit and restart Quicktime, all I get is a white video window. I'm wondering if this is related to the fact that my iMac 24 screen is asleep when the capture process is taking place.
    Any suggestions?

    After upgrading to 7.1, i noticed this problem as well. The sound plays fine, but all i see is a white video. This only happened for videos using an H.264 Decoder or MPEG4 decompressor (.mp4, .m4v, most .mov files). However, the picture was fine while playing any other file type (.avi, .mpg, .mpeg, .swf).
    I then figured out a way to fix this problem. If you go into A/V controls and move any of the four sliders under "Video" (Brightness, Color, Contrast, Tint), the video will play fine. It doesn't matter which slider/how many you move, nor does it matter how much you move the slider. If at least one of the sliders isn't centered, the video will play. The only problem with this is that you have to do it every time you watch a video, which can get annoying.
    Also, after reading this thread, I disabled Direct3D video acceleration as mentioned above, which worked wonderfully! Thank you!
    So, really the only purpose of this post is to provide more information so Apple can fix it in their next release of QT.
    Dell Optiplex GX270   Windows XP Pro  

  • Automatic Quicktime Pro import?

    I am using Quicktime Pro 7 on a macbookpro os 10.6.8. I found you can compile separate video clips into one file by doing a copy and paste pattern but it takes time to go through many clips. Is there an Automator script or any other automatic method of compiling many video files into one QT file?
    Marc

    I am using Quicktime Pro 7 on a macbookpro os 10.6.8. I found you can compile separate video clips into one file by doing a copy and paste pattern but it takes time to go through many clips. Is there an Automator script or any other automatic method of compiling many video files into one QT file?
    I find it quicker/easier to use the free MPEG Streamclip app. Simply give the files alpha-numeric names representing the order in which you want the files merged and then simultaneously "drag 'n drop" all files to the main work window. The files will automatically merge in their filename order and can then be saved using the "Save As..." File menu option which copies all audio and video data to a new MOV file container without recompressing the data (unless you need to flatten files containing mixed data formats for playback on mobile devices which do not like having data distributed across multiple tracks).

  • Can I save custom export settings in QuickTime Pro?

    I'm using QuickTime Pro a lot to export/convert  many different projects, but every time I need to change the export settings, because there is no way to save them inside QuickTime
    I've found a description on how to do it wil Apple Script: http://lists.apple.com/archives/QuickTime-Users/2002/Nov/msg00295.html
    But the problem is that it needs to run also Apple script to actually perform the export, and I don't want it - I'm not a scripter, and I need the settings to be easy to load.
    I thoigh there is some prefs folder, where QT actually stores those default presets, where I can put some custom ones, but I didn't find such a folder...
    Is there any way to do it?
    Thanks

    QuickTime can only view WMP (Windows Media Player) files with third party software help:
    http://flip4mac.com
    To use Pro to export these files to QuickTime formats you'll need to pay for the upgrades at Flip4Mac.
    Not all WMP files are supported.

  • Saving Quicktime Pro Export Settings

    I regularly convert video from one size/bitrate to another using the export function of QTpro.
    Is there any way I can save this setting permanently in the export settings menu and call the setting something?
    Does this need apple scripting?
    Has anyone done it? I'm sure they must have.
    Paul

    ***** that this feature has been removed since it's perfectly obvious and useful to have. As a workaround, if you are a Final Cut Pro user and have Compressor installed, you could set up a preset with custom settings and batch process to a folder of your choice from there.
    Also, I'd stumbled on a action script someone had put together for saving most recent settings presets in quicktime pro but don't have a link to provide you. It's definitely out there but might be more complicated to throw together if you don't know or have the time to learn scripting.

  • I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    I have quicktime pro and it does NOT have the screen record mode that Quicktime is suppose to have.  Can I uninstall it and go back to an older version that would have screen recording?  If so, how?  Step by step needed.  Thank you for your time.

    Did you remove Quicktime X?
    On a normal install Quicktime 7 is installed in the Utilities folder and Quicktime Pro in the main Applications folder.
    You will need to reinstall OS X to get Quicktime X back if you have deleted it.
    I notice yor profile says 10.5.8. Quicktime X is only available on 10.6 and above.

  • Unable to use 'copy' feature with registered version of quicktime pro.

    Hi.
    I have a registered version of Quicktime pro (7.1.6), and i am unable to use the copy feature. I captured several videos from work using a windows box and an application whose name escapes me at the moment. Due to the windows app being garbage, i was only able to capture in MPEG1 format (MPEG2 caused the app to crash, of course). I have brought the files home and am now unable to copy selections of it for exporting into smaller files. I can highlight lengths of the video (no audio, just video) but the 'copy' feature is grayed out still. Any ideas on what is causing this? The video format is as follows:
    MPEG1 Muxed, 640 x 480
    FPS: 29.97
    Data rate: 4066.42 kbits/sec
    I'm running 10.3.9, but have also had no success on a 10.4 macmini, so the OS doesn't seem to be the issue.
    I'm trying to get this video into imovie, but since it's over 600 megs, imovie cops out after a few hours and says it can't import it.
    Help?

    Not all multiplexed videos come with AC3. They don't have to have audio in the first place. Some of them come with Linear PCM, which is the case for iDVD's VOB files, and MP2. If a multiplexed video is equipped with AC3, you are right, and the resulting modified sub-clip won't contain audio. But if it's Linear PCM or MP2, the edited sub-clip will contain audio.
    I'm finished with this case.
    Message was edited by: Horror in Oklahoma

  • Quicktime Pro export  does not work

    I am trying to export a streaming movie to a MP4 or other to play it on my Ipod touch. The particular movie is located on http://multimedia.slowfood.it/index.php?method=multimedia&action=zoom&id=37
    I have experienced this with other movies too:
    When saving it from my browser it saves 1 1KB link, which I can play in Quicktime pro.
    However exporting it to MP4 results in a 4 MB file, which when played only shows the quicktime logo. Exporting it to one of the other formats does the same. I am new to this. Any ideas?

    It's a streaming video. You can't save a streaming video. Streaming videos stay on the sever and aren't cached on your computer. Most videos that you see on the internet are progressive video's. A progressive video can be save to your computer.

  • I am traveling with my macbook pro and I forgot to install final cut express and quicktime pro before I left. How can I in a way download them for free on my laptop from where I am

    I am traveling with my macbook pro and I forgot to install final cut express and quicktime pro before I left. How can I in a way download them for free on my laptop from where I am? I need them and don't want naturally to buy them again!!!
    Thank you    

    Assuming you purchased QT Pro, you can always download it again at no extra charge by logging in to your Apple account.
    Regarding FCE, there is no way to download & install the product.  You need an original FCE install disk and your FCE serial number.
    Final Cut Pro X (aka FCPX) can be purchased & downloaded from the App Store.

  • QuickTime Pro - I am trying to find a way to retrieve my Quick Time Pro code and re-register it but, because I bought it more than 180 days ago, I cannot find the code anywhere, or any way to get an answer from Apple's website.

    I have been going round in circles, trying to resolve this
    I bought the MPEG2 component from the Apple UK store on 4th July 2010. I still have the email and the order number but they are no use to me because it is more than 180 days since I ordered this from them.
    My operating system got corrupted and I had to do a clean install, then a return of the relevant files, folders and applications from my Time Machine. With that should have been my MPEG2 component for QuickTime Pro but it refuses to register.
    I need it to convert my videos taken on my older video camera, which is a Sony, using mpeg2. I cannot look at any of these videos any more, which is deeply irritating. Still lots of editing to do.
    I think it is a bit off if I have to buy it all over again
    Any ideas?
    Mac OS X 10.6.8
    Quick Time and Quick Time 7

    I still have the email and the order number but they are no use to me because it is more than 180 days since I ordered this from them.
    The registration cade is contained in the email Apple sent you on purchasing.

  • I cannot enter the key code for updating to QuickTime Pro 7 as there is no Icon in Preferences and no Registration option in menu?

    I have followed the clear instructions to enter the purchased key code for QuickTime Pro 7. There are two options offered:-
    1. Go into Preferences and select the QuickTime Player icon and enter the code that way.
    2. Open QuickTime Player and open up ‘registration’ and enter the key code.
    For whatever reason I have neither option available to me although QuickTime player is on my system and I use it regularly. It is version 10 build (118). I have run software updates and there is no upgrade available. I have downloaded the latest version and tried to load it but this fails because the system finds a version already available. I have attempted to uninstall but whilst it moves it from the Application folder, it remains on the Mac as it is part of the system files. So I cannot use the Pro version. The iMac is a 27” Intel about a year old and has all the software updates available to me installed.
    Any offers for suggestions or past experiences that can help me overcome this conundrum?

    Both answers were spot on. I made the mistake yesterday of downloading the version for Leopard in my haste. I also thought the issue was related to having to uninstall the current version X.
    So the moral of the episode is check the version you have and make certain you download the correct version for your system. All works now.
    Thanks chaps!

  • I would like to convert an animated Gif to .mov, will Quicktime Pro 7 do this? Should I spend the money?

    Hi everyone.
    I'm looking to put a few animations onto keynote and I'm making my presentation on PowerPoint.
    I need to convert an animated gif into a .mov file and was wondering whether Quicktime Pro 7 does this?
    Thanks

    I need to convert an animated gif into a .mov file and was wondering whether Quicktime Pro 7 does this?
    Since it appears QTKirk has provided the best answer for your specific work flow issue as stated, I will answer your more general question...
    Yes, QT 7 Pro can open an animated GIF file and save it as an MOV file. At this time the real question is whether or not the MOV file produced is suitable for your needs. Basically the MOV file can be then then be played—but it only plays one pass in the normal playback mode. You can, of course opt to loop the playback which, for a small files, plays much as the original GIF.
    Unfortunately, the "Loop" setting is not saved when the MOV file is saved, so this option must be re-initialized each time the MOV file is opened. This would not be a problem if all you are doing is openening the file in the QT 7 player and letting it play in the looped mode all day as some sort of display but would likely be an unsatisfoactory solution for sending the MOV file to someone else. You could, of course, turn the MOV file into a QTL file with the loop option set to get around this problem.
    While I would be hard pressed to say it would be a good investment just for the creation of GIF movie files, QT 7 Pro does offer a lot of other features that make it a bargain utility for many quick edit requirements if you use/need them.

  • Streaming and Delivery using Quicktime Pro software.

    I was reading the tutorial about Streaming and Delivery with the Quicktime Pro software. I have questions around the steps that are listed to be taken in order to create a streaming video. Here are a list of the steps and the link to this website page.
    http://www.apple.com/quicktime/tutorials/
    Streaming & Delivery
    Interested in streaming content from your site? Learn how to do everything from preparing your media for streaming to setting up a live broadcast and even displaying your media right inside the web browser.
    1. Preparing to Deliver Streaming Media
    2. Hint Tracks
    3. Delivering Live Streaming Media
    4. Reference Movies
    5. Embedding QuickTime
    The question I have is about step 2 Hint Tracks and what the tutorial says:
    Movies that are intended for streaming via QuickTime Streaming Server must be hinted—that is, they need a hint track for every streamable media track. The hint tracks tell the server exactly how to package the media data for the network.
    So these movies are not intended for streaming via Quicktime streaming server.. not even sure what this means but our server I believe is Windows 2000. So can I skip this part of setting up the video for streaming and just follow steps 1,3,4 and 5 or do I need to find someother way to do this?
    Daphne

    http://www.apple.com/quicktime/streamingserver/
    QuickTime Pro only helps make .mov and .mp4 files ready for streaming. The files it creates must be served using special software.

Maybe you are looking for

  • I need a number for customer service!  Please HELP.

    I bought  photoshop elements from best buy.  I put in the code to retreive serial number. Message to contact customer service,  I've been all over this website and can not find a number to contact them.  HELP.!!!!

  • Block some parameter in control indicater setting

    Hi Experts, I would like to block some parameters in control indicator of inspection characters to make them can only be displayed, how can I realize it? Because sometimes I ticked the parameter in control indicator by accident when I maintain charac

  • Driver program for SAP CONNECT

    hi guys, I am sending a output request from spool to be sent via mail and that is through SAP CONNECT. can anyone tell me wat is the driver program behind it? i tried to debug it but cudnt find. i want the program that send the request from spool to

  • Help Needed - Even after lodging "Presidential Complaint"

    Help needed please!!To make a long story short I have been through nothing but aggravation the past week trying to get my phone working. Service call on 7/6 to install Fios Internet, TV and phone. Internet and TV work fine, but Phone has no dial tone

  • Why Firefox can not handle HTTP server pages?

    This is almost an old unresolved bug<br /> So when I have access to the modem page, I find that the Firefox browser he can not handle it! I can not even browse the modem page "So simply some of the pages and sites have slow download sites! Should imp