Chapter 4 — Sample Applications
53
FMTestApp
to enabled or disabled. Note that the Cue method does not return until the
encoder is ready to begin encoding-or until an error occurs.
Now that the encoder has completed its “cue” process, click the Start button to
start the encode. If VTR Control is enabled, the encoder rolls the tape deck, then
starts the encode on the frame indicated by the mark-in. Otherwise, it begins to
encode immediately after the click of the Start button. Once the encode has
begun, it continues until the specified number of frames have been encoded, or
until the user clicks the Stop button.
The Pause and Resume buttons allow you to pause an encode manually and
resume encoding at a later point. The result of the encode will be a single encoded
MPEG file with a relatively seamless “splice” point of two or more encoded
segments. Actually, the manual pause/resume demonstrated by the sample appli-
cation is not as useful as the scheduled pause/resume feature. The scheduled
pause/resume is accomplished by providing multiple segments in the VTR
Registry (see Appendices A and B). Note that neither the manual nor the sched-
uled pause/resume feature is available if multi-stream encoding is turned on.
If an error occurs during the encoding process, the sample application will receive
an Error Event. In response, it calls the Filter Manager
Stop()
and
Reset()
methods.
Performing a Multi-Stream Encode (Spectrum Users)
The instructions in the previous section described how to perform a single
encode. Changing just a few settings activates a multi-stream encode:
1. Make certain that the MPEGStd key in the Mux Registry table is set to 1 or 2
(Program or Transport) and that the MuxRate key is set to 8,000,000 or higher.
2. In the DualEnc Registry table, set the HorizSize key to 352, the VertSize key
to 240, then set either LigosEnabled, RealEnabled, or AsfEnabled to 1.
3. In the Registry table corresponding to the multi-stream encoding type that you
selected, accept the default settings (in the Ligos Mux, Real Networks, or the
WMF Registry table).
4. Enter the file name and time codes, as described on page 51, then click Cue.