QuickTime SMIL Activity - Assemble files
- To use the files you just created with MAGpie, copy the captions file ("csun2006_en.US.qt.txt") and the SMIL file ("csun2006.qt.smil") to the QuickTime folder.
- Open SMIL file generated by MAGpie ("csun2006.qt.smil") in a text editor by dragging the file to the TextEdit icon.
- In the following steps, you will be typing in the bolded text as shown below:
- In the SMIL file, add "SMILtext" to beginning of file. This allows QuickTime to recognize the file as a QuickTime SMIL file so it will display it properly.
- Add metadata to the meta tags.
- Add a title where "CSUN 2006 Captioning Demo" is shown above (for example, "EEOC Video").
- Add an author where "Fritz Thompson" is shown above (for example, type your name).
- Add copyright information where "2006" is shown above (for example, "2006").
- Check <par dur>, <video dur> and <textstream dur> tags to confirm that they match the video run time as displayed in the QuickTime "Movie Info" dialog as follows:
- Run the video in QuickTime.
- Select Window->Show Movie Info.
- Find the movie's duration, also called total run time. Use this value in the <par dur>, <video dur>, and <textstream dur> tags where the code above shows "0:01:03.71".
- Check videoregion src= parameter to make sure the video file name and path are correct. Your SMIL file should use the file name "CSUN2006.MOV" for the video file. In this case, no path is needed, since the video is located in the same location as the SMIL file. (Note that you should use "http://" if the file is located on a different server or domain.)
- Check textregion src= parameter to make sure the caption file name and path are correct. Your caption file should use the file name "csun2006_captions.txt" (or the name used when you exported the caption file from MAGpie). (Note that you should use "http://" if the file is located on a different server or domain.)
- Save the SMIL file with a ".mov" extension (i.e., "csun2006_smil.mov"). Note: All three files (SMIL, TXT, MOV) should be in the same folder, here, the QuickTime folder.
- Now try it out. Double click the saved SMIL file ("csun2006_smil.mov") and QuickTime should start, showing your movie with captions.
- Now go back and experiment with different height and width values for the root layout or the video or text regions, or change the parameters you edited above. Save and test.
SMILtext <?xml version="1.0" encoding="UTF-8"?>
<smil xmlns:qt="http://www.apple.com/quicktime/resources/smilextensions"
xmlns="http://www.w3.org/TR/REC-smil" qt:time-slider="true">
< head>
<meta name="title" content="CSUN 2006 Captioning Demo"/>
<meta name="author" content="Fritz Thompson"/>
<meta name="copyright" content="2006"/>
<layout>
<root-layout height="335" width="330" background-color="black"/>
<region height="240" width="320" background-color="black" left="5"
top="5" id="videoregion"/>
<region height="80" width="320" background-color="black" left="5"
top="245" id="textregion"/>
</layout>
</head>
<body>
<par dur="0:01:03.71">
<video dur="0:01:03.71" region="videoregion" src="CSUN2006.MOV"/>
<textstream dur="0:01:03.71" region="textregion" src="csun2006_captions.txt"/>
</par>
</body>
</smil>