Preparing QuickTime (.mov and .mp4) Files for Streaming


With the addition of hint tracks, existing QuickTime files can be streamed on the campus streaming server. You will need to use QuickTime Pro to "hint" the files. Refer to Apple.com for [ http://www.apple.com/quicktime/tutorials/hinttracks.html ] step-by-step instructions. A QuickTime Pro license can be purchased [ http://www.apple.com/quicktime/download/ ] directly from Apple.com.

Unlike [ http://help.unc.edu/?id=3935 ] other streamable file types, .mov and .mp4 files cannot be linked to in the usual way. For example, if you wanted to use email to distribute a direct URL to a streaming QuickTime file, that address would begin with an rtsp:// rather than an http:// :

rtsp://mediaserv.unc.edu/yourdirectory/anysubdirectories/filename.mov

If you want to include a link in a web page to a streaming QuickTime file, you'll first need to create a separate HTML file in which the QuickTime file is embedded as an object. Use the object code snippet below to get started. You will need to replace two types of information in the code:

  • the default width and height dimensions with those of your file

  • the three generic URLs with ones that point to your file

Note

The second URL is the file's http:// address, which is its download address, not its streaming address.

    <object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" 
     width="320" height="240"
     CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">

     <param name="qtsrc"
       value="rtsp://mediaserv.unc.edu/yourdirectory/anysubdirectories/filename.mov">

     <param name="autoplay" value="true">
     <param name="loop" value="false">
     <param name="controller" value="true">

     <embed src="http://www.unc.edu/yourdirectory/anysubdirectories/filename.mov"
       qtsrcsrc="rtsp://mediaserv.unc.edu/yourdirectory/anysubdirectories/filename.mov"
       width="320" height="240"
       autoplay="true" loop="false" controller="true"
       pluginspage="http://www.apple.com/quicktime/"></embed>
   </object>

Once you've

you can direct your audience either to

  • the rtsp:// address (to open outside of a browser, directly in the QuickTime viewer) or

  • the http:// address to the web page that includes the embedded object code.

For more detailed information about options for embedding QuickTime files in web pages, refer to [ http://www.apple.com/quicktime/tutorials/embed.html ] Apple's tutorial.

Copyright 2002-2007 The University of North Carolina at Chapel Hill.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 United States License.

Post a Comment

This form is for document feedback. If you need technical assistance, and are affiliated with UNC-Chapel Hill, please Submit a Help Request
Optional
Optional
So that we may contact you.
Do not fill out this form, this is a spam trap.
Top
University of North Carolina - Chapel Hill