Save reference movie - quicktime

hi
i am fairly new to applescript and hoping i am missing something obvious.
i am trying to save movies as reference movies via applescript. I found following command in the quicktime dictionary :
save reference movie v : Save a movie that references multiple versions of another movie to a file
save reference movie
to file : the destination file
using descriptors any : a list of records that can contain movieURL, dataRate, and platform, where platform can be desktop or iPhone
[replacing boolean] : should the original file be deleted first?
when i do the following:
save reference movie to moviepath using descriptors {} replacing 0
i get a reference file without any data in it - fine so far. Upon adding a record of descriptors
set movie_desc to {movieURL:"file://<path-to-movie>", dataRate:"1500", platform:"desktop"}
save reference movie to ml_mov using descriptors movie_desc replacing 0
i get a parameter error. What is the correct use of this command?
regards
Mikkel

Try this code...
tell application "QuickTime Player"
activate
try
if not (exists document 1) then display dialog "Please open a QuickTime movie." buttons {"Cancel"} default button 1 with icon 1
set thefile to (choose file name)
save document 1 in thefile
close document 1
end try
end tell
Tom

Similar Messages

  • Automator workflow for Quicktime "Save As... reference movie"

    I need just to "Save As (a reference movie)" from within Quicktime... I have tried using the "Compress using most recent settings" but that still tries to make it "self-contained," whereas i need specifically to Save As a Reference Movie.
    Any thoughts?

    If you save as a reference movie it just uses a pointer to the already existing content which you cannot move or molest, or it won't work. You want to compress it then you make a new movie, and self contained as a result.

  • Quicktime export still uses reference movie!

    I am trying to export a file to deliver to a client. It plays in QT player 7 fine--so I go to Export... and choose my settings, then click OK. Then I burn the resulting file to a DVD.
    When I try to play this file on another computer, I get an error saying an audio.aif cannot be found, and without it the movie cannot play properly. This is the same kind of warning you get when you save a reference movie and delete the original file. But I didn't do that...I exported and waited as it recopied every frame!
    What's going on?

    Same problems here and have spent days on every variable option. Thank you though for the tip of Snapz Pro. I'm downloading a trial now to see if that works but I'm concerned about the quality of the final file. I'm actually thinking of finding a way to export the Keynote into a video editing program and bring the AAC or .Mov files in separately and re-size them on top of the Keynote Quicktime to re-edit the timings. Anyone tried that yet?

  • How can I save a "trimmed" QuickTime movie at original high rez?

    I use QuickTime 10.1
    In the past, after lobbing off part of a QT movie using the "Trim" function, I was never asked what quality to save it in, it just saved when I clicked Save. I never imagined I was losing quality by saving a trimmed movie.
    Now, however, when I click Save a window pops up giving me two choices: 480p or 720p. Are we to assume the movie we're working on was no greater resolution than 720 to start with? Or is our movie being condensed against our will?
    A test suggests the latter is true. Even if I lob off just a teensy bit, a file saved at 720p is VASTLY reduced in size. What is going on here, and how can I save my movies at the same high quality they start out with? I find nothing in Help about this.
    Secondly, if I may slip this less important question in as well: Sometimes when I click Save I get an error message that "This operation cannot be completed," and QT crashes. This has happened a number of times, and I can't see that I'm doing anything wrong. Any clues?
    Many thanks.

    In the past, after lobbing off part of a QT movie using the "Trim" function, I was never asked what quality to save it in, it just saved when I clicked Save. I never imagined I was losing quality by saving a trimmed movie.
    Are you referring to a previous version of QT or your current v10.1 Lion version? Since the introduction of Snow Leopard and QT X v10.0, Apple has been moving towards a single combined "Save", "Save As...", and "Export" function with the name shifting from "Save" to "Export" as it evolved. (I.e., in the latest Mountain Lion rendering you are advised to read the "pop-up" option description to tell if you are performing a "Save/Save As..." or an "Export" action.)
    Now, however, when I click Save a window pops up giving me two choices: 480p or 720p. Are we to assume the movie we're working on was no greater resolution than 720 to start with? Or is our movie being condensed against our will?
    Since you have not indicated the encoded or anamorphic dimensions for the file you are working on, it is difficult to determine if the QT X player is acting normally or not here. Basically, whatever you are doing is triggering an export action which limits the dimensions to specific category levels. You cannot, for instance, export a 1280x544 (2.35:1) aspect file to a 1920x816 (2.35:1) aspect file but you can export it to a 720p 2.35:1 aspect file because it woud fit within the 1280x720 defined 720p dimension window. I.e., unlike QT 7 Pro, the application will not let you "upscale" the source file during the encode since this would reduce export quality and is the same as exporting the file at its current dimensions and simply rescaling the playback dimensions—a much faster workflow. As to "being condensed against our will," this could be the case in some instances. For instance, a 1280x720p30 file might be re-compressed to a 960x540p30 file for mobile device compatibility which, in turn, usually depends on the specific method of accessing the export action.
    A test suggests the latter is true. Even if I lob off just a teensy bit, a file saved at 720p is VASTLY reduced in size. What is going on here, and how can I save my movies at the same high quality they start out with? I find nothing in Help about this.
    If you are referring the to QT 7 Pro "Save As..." workflow and you still have your QT 7 Pro registration key, then the obvious answer would be to install the QT 7 v7.6.6 Player and key it for "Pro" use. Both QT players can be installed and used under OS X v10.6, v10.7, or v10.8 simultaneously. (I.e., by default QT X installs and runs/updates in "Applications" folder while QT 7 Pro installs and runs/updates from within the "Applications/Utilities" folder where they should be left.
    Secondly, if I may slip this less important question in as well: Sometimes when I click Save I get an error message that "This operation cannot be completed," and QT crashes. This has happened a number of times, and I can't see that I'm doing anything wrong. Any clues?
    This would be more difficult to answer. Since QT X is a product "in development" and has proven to be less stable than QT 7 Pro and includes far fewer editing features, I, for one, do not use it for any serious edits no matter how minor they may be. On the other hand, I have no real problems with its playback and conversion features as long as I work within the application's intrinsic limitations as it continues to evolve.

  • Save As Reference Movies for More than 1 file

    Hi,
    Okay, so I have like 25 AVI/MPG files that I want to save as MOV Referenced Files using Quicktime Pro. I know, I can do by opening 1 at a time and using Save As Option.
    However, the question is; Is there a script or automated way to do for all the AVI/MPG files with a single click or something automatic?
    Thanks,

    Only thing i can think of is instead of using a MAC ACL , u cud jus use the default class
    Policy Map Test
    class class-default
    police 56000 8000 exceed-action drop
    Class Map match-any class-default (id 0)
    Match any
    You would be saving a MAC-ACL ;-).

  • Aspect ratio, quicktime reference movie

    Hi, I'm trying to compress my movie edited in 1080i HDV to the h.264 Sequence iPod video 640x480.
    I've done this many many times exporting directly from FCP to compressor and it usually works.. But I have read (here and other places) that it is better to
    1. make a quicktime reference movie
    2. open that in compressor..
    3. render (compress) into the correct format
    When I do that it messes up the aspect ratio (making it even wider) any suggestions?
    J

    When converting like you did in the past, (where it changed the aspect of your image) did you go into the geometry controls of compressor and also select the proper aspect, found in the Frame Size controls.
    If you fail to do this, you would end up with the wrong aspect being applied. You may also have to pad your video, using the "Output Image Inset (Padding) controls as well to maintain your 16x9 aspect on a 4x3 aspect.

  • Quicktime X - Save As "Movie" - Is it transcoding free?

    Hi!
    I tried searching the forums, but were unable to come to a conclusive answer...
    Background:
    I have a bunch of (very long) video clips. Some of them are .avi clips from my old DV video camera, other are just long clips from my new digital camera, and some of them are from my iPhone.
    I'd like to "trim" these into more manageable sizes, some of them are GBs in size....
    Quicktime X "trim" feature is excellent for doing this, and i can then choose "Save As" and select "Movie" to "Save a movie file that contains media in the same format as the original movie.".
    However, what i am wondering is:
    __Does Quicktime X transcode the video during the process, or is it completely "passthrough"/"lossless"__ (i.e. It doesn't decode/encode the frames, it simple copies the old frames in the new file).
    I understand the the first few frames/last few frames will require lossy "encode/decode" due to the nature of many video formats, but i'm curious how Quicktime X handles the rest of the frames.
    Thanks in advance to anyone who has the answer!

    However, what i am wondering is: __Does Quicktime X transcode the video during the process, or is it completely "passthrough"/"lossless"__ (i.e. It doesn't decode/encode the frames, it simple copies the old frames in the new file).
    No, the "Save As... Movie" option does not transcode the content. It merely copies the range of designated frames from its current file container to an MOV file container.

  • QuickTime Reference Movies of Fully-Rendered Timeline Taking Forever

    Sometimes when I attempt to export a fully-rendered timeline as a reference QuickTime (NOT self-contained), the "Writing Audio and Video" bar takes over an hour (for an 8-minute project) and results in files sizes of many GBs. Has anyone else experienced this?
    Thanks,
    Zap

    If your Sequence isn't fully rendered before you export, the reference movie will have to perform the render ... taking extra time and it includes those renders as part of the reference file (hence the larger than expected file size).
    To avoid this, make sure the Sequence is fully rendered PRIOR to exporting.
    -DH

  • Quicktime reference movies?

    has FCP stopped making QT ref movies??? I am running FCP 6.0.3 and there is no tab in there to make a reference movie. Does this mean I need to stop working in FCP while compressor does it's thing now?

    Export/QuickTime/Current Settings/Audio and Video/No Recompression
    Then uncheck "make self contained."

  • Can't seem to save my movies

    Hello...I recently upgraded to QuickTime Pro so that I could combine the short clips that I take with my cellphone. I had no problem combining them, and no problem saving the new clip...or so I thought. When I went to the directory where I thought I saved the new clip, I couldn't find it. I did a search thinking I must've accidently saved it to a different directory, but I didn't get any results. So I ran a test. I created a new folder and did a 'save as' to one of the clips that I renamed. When I refreshed the folder view, the file was not to be found. Am I missing something? I can't seem to find any support or documentation on saving a new file except the distinction between a self-contained vs reference movie. I have to be missing something. Can someone help me?

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes creates an empty library file in Windows

  • QTSS won't recognize reference movie

    I have uploaded a reference movie (which contains links to alternate movies) that to a Quicktime Streaming Server directory.
    When I open the URL in Quicktime Player 7, I get an 'unsupported media type 415' error. If I upload the reference movie to a folder on my web site instead, the appropriate video will start to stream. However, QT Player 'thinks' it is a live broadcast.
    Something still isn't right.
    * ALL files in the folder within the QTSS directory have hinted tracks.
    * the non-referenced movies on the QTSS all play when the URLs are opened in QT Player7.
    * the reference movie, which is supposed to call the appropriate movie for streaming, reports 'unsupported media type 415' error when I try to open the URL in Quicktime Player 7.
    * the reference movie, which is supposed to call the appropriate movie for streaming, works fine when I open the file on my hard drive, i.e. it starts playing the appropriate file from the streaming server (I used absolute URLs)
    * the reference movie, which is supposed to call the appropriate movie for streaming, works fine if I upload it to a directory on my web site (http) instead of a directory on the streaming server (rtsp).
    I used MakeRefMovieX to make the reference movie. To keep things simple, I did not flatten a default movie into the reference movie.
    The Apple tuorial for reference movies says:
    Save the reference movie and place it and all the alternate movies in the same directory. Upload the directory or folder to the server.
    http://www.apple.com/quicktime/tutorials/refmovies.html
    Another tutorial says:
    http://www.iupui.edu/~nmstream/tutorials/quicktimevideo.php
    FTP this file to your streaming server and ideally place it under the same folder that holds the streaming video files.

    To get the captioned text to appear BELOW the movie,
    do you simply adjust the coordinates for the text box
    in the text file before adding it to the reference
    movie?
    Hi Cris
    Well the answer is yes and no, yes you do have to set the coordinates of both the movie and the text, but these are controlled by a third file known as a .smil file.
    Here's how you make it all work, (all these documents are located on the http server, in the same directory together, with the exception of the http document, which can be located in a different folder if you choose:
    Documents involved are:
    http web page, with QT java code embedded in it, http://www.apple.com/quicktime/tutorials/embed.html
    .smil file, which contains the window size, movie and captioning text file.
    .mov or text file, containing the captioning text only, with timecode reference as part of the file.
    MSTR.mov, also know as the reference movie, containing the alternate movie locations.
    You need to create an http document with the QT java code embedded in it, the window size, which needs to be able to accommodate the movie window, the text window and if you choose the movie control bar, which is controlled via java code, which references the .smil file.
    When a patron opens this document, this sends a request to the .smil file, which is located in the same directory as the MSTR.mov, (ref movie) as well as the .txt or .mov text file. The .smil file then contains all of the information that controls over all window size of the displayed parts, MSTR.mov, (ref movie) and text or .mov text file.
    You may wonder why the window size is in both the http document as well as the .smil file, this is because the http document is making a hole for the .smil file to be displayed in the http document and the window size in the .smil file is for combining all the independent files or as you put it, coordinates for each part. These appear in the hole, created in the http documents QT java script window size, (think of the http document as the mask for the .smil file.)
    When the .smil file is accessed, the reference movie contacts the QT RTSP streaming server, then places the movie and text, (captioning file) together and are sent to the http document where they are viewed as a unified web page.
    The .smil file has specific code and can be found here: http://developer.apple.com/documentation/quicktime/Conceptual/QTScripting_SMIL/i ndex.html
    When I get back to work on Monday, (if you need me to) I can post you both the java scripting we use in our web pages and the .smil coding in our .smil files.

  • Can't save changes in Quicktime pro on Windows 8.1

    I can't save any changes i make in quicktime pro 7.7.5. I am trying to trim a video clip.
    I am using QP just as i would on my mac version, modifying start and end points.
    When i click save, literally nothing happens .not even an eror message, nothing.

    OK. That rules out a "reference movie".
    You make a "selection" (in and out points) in the timeline and then you're using the "Cut" or "Trim to Selection" from the Edit menu?
    And then "Save As" or "Save"? Do you get the next window where you can edit the file name and change the destination directory?

  • Reference Movies and Streaming Server

    I have compressed my movie in multiple streaming sizes, 56k-T1. I have tried several times to use MakeRefMovie app to make a MSTR movie that will deliver up the propery version of the movie on the Streaming server they will reside. I get an error everytime.
    It works locally, but not when embedded in an HTML page.
    I've tried pulling the movies into MakeRefMovie and then changing their location to a URL, no dice.
    I've tried opening the movie in Quicktime Pro using the Open URL, then doing a save as and calling that movie into MakeRefMovie. No dice.
    Do I not need a reference movie with streaming video? Or should the server call it up automatically? If so, what is the HTML I should put in my page to make this happen?
    -Kirk

    If your files are served using streaming server software the audio and video tracks need "hint" tracks.
    You can create them without re-exporting using the Automator app.
    QuickTime Pro already includes "Export to Web" which can make three different versions of your file and automatically serve up the correct version based on your page visitor settings.
    It even writes the proper html code which you can copy/paste into your existing pages. These files are served via HTTP and no streaming server software or hint tracks are required.

  • Web Reference Movies

    I am trying to save a reference movie from my quicktime streaming server but every time I save it I am stuck with the afp protocol, requiring anyone who wants to watch it to authenticate (which they obviously can't). How do I save the reference movie with an http protocol?

    Try webbedfeet.info
    clicking on the sign activates the href to the reference movie, which chooses the 'iPhoto exported' slideshow to play from another server. Since the 7.4 updates, nothing plays.

  • HDV QT Reference Movie Exported from FCP5 Freezes

    I'm having a problem when I export HDV to a Quicktime Reference Movie. The video plays back to a specific point, then freezes, while the audio keeps playing.
    This happens even with cuts-only (or even uncut footage), no effects movies when they are exported as QT Reference Movies.
    Can anyone give me some advice?

    STUDIO X: I tried rendering the QT Reference Movie to the same disk as the media, but I still get the same video freeze with audio that works just fine. The video freezes 21-minutes into the 42-minute video.
    FINAL CUT PRO: Thank you for your suggestion, but QT Reference Movies were designed to accomplish specific function. I use them to burn DVD's, create videos for the internet and mobile phones... lots of things. Your suggestion is simply circumventing a function that SHOULD work. Your suggestion also takes much more time and disk space. You're taking something that should be simple and making it complicated. Unless I have to move a copy of my HDV movie to another computer outside of my studio, this is unacceptable.

Maybe you are looking for