Skip to the content
Link back to Cal State L.A.
Multimedia Services

Multimedia Services


Adding Source Groups | Inserting Scripts

Inserting Scripts

Editing your session configuration

When you complete the New Session Wizard, the settings you selected are collected in the Session Properties dialog box. You can use Session Properties to edit existing settings, access other settings, or set up a new session. If you prefer to create an encoding session using Session Properties, you are required to provide the source type, input device, profile, and output information at a minimum.

Adding Source Groups to Broadcasting Sessions

If you use the Broadcast session, you can create a maximum of three source groups. If you need additional source groups, either before or after encoding begins, you can add them in the Session Properties dialog box. Using Session Properties, you can add as many source groups as necessary. All source groups in a session must have the same combination of source types (audio, video, and script). You can use audio and video devices for only one source group.

To add source groups to your broadcast

  1. On the Session menu, click Properties.

  2. Click the Sources tab, and then click New.

    screen capture of session properties

  3. In Name, type a name for the source group.

    screen capture of new source group

  4. In Video, select the video device or screen capture you want to use, and then do one of the following:

    • Click Configure to configure the properties for the selected device.

    • Click Browse for file, and then enter the name of the file you want to use as an input source.

  5. In Audio, select the desired audio device, and then do one of the following:

    • Click Configure to configure the properties for the selected device.

    • Select Browse for file, and then enter the name of the file you want to use as an input source.

  6. Select the Archive option (Record, Pause, or Stop) for the source group. If you did not choose to create an archive file when you created the session using the New Session Wizard, the Archive options are unavailable. You must run the wizard again to make the Archive options available for the source group.

Inserting scripts

Windows Media Encoder enables you to insert script into a stream while you are encoding. The scripts are saved as part of the stream. The encoder supports three types of scripts:

  • Captions. Free-form text strings that are displayed in Windows Media Player along with your other encoded content. In order for the captions to be visible, the Windows Media Player must have the Captions option selected. To turn captions on in Windows Media Player, on the View menu, click Now Playing Tools, and then click Captions.

  • URLs. When inserted into a stream, the URL opens the browser and takes the user to the specified address.

  • Custom script commands. A two-part command that consists of a type and a value. When the player receives the script command, it fires an event, such as launching a Web page with an embedded player.

Because these scripts are saved in the stream, they are not available for editing. 

Inserting scripts into an encoding session requires that you use a profile that supports scripts. None of the system profiles installed with the encoder are configured to use scripts, but you can use Profile Manager to create your own.

To create a profile that includes scripts

  1. On the Tools menu, click Manage Profiles, and then click New.

    -or-

    In the New Session Wizard, in the Profile Selection page, click Create and Manage Profiles, and then click New.

  2. In Name of profile, type a name for the profile.

  3. Click Video, click Script, and then click Compressed.

  4. In Description, type a description for the profile (optional), and then click Next.

  5. Select the audience or audiences that you want the profile to support, and then click Next. Selecting more than one audience creates a multiple-bit-rate profile.

  6. In Audio, select the Windows Media Audio codec and appropriate bit rate.

  7. In Video, select the Windows Media Video codec and appropriate video size.

  8. In Script, adjust the bit rate if necessary. The bit rate shown is based on the settings you have chosen while creating the profile. Click Next.

  9. In Frame rate, Key frame interval, and Image quality, enter the appropriate information, and then click Next.

  10. Review the settings, click Finish, and then click Close.

To set up a session that includes scripts

  1. Using the New Session Wizard, create an encoding session. When selecting a profile, select one that includes scripts.

  2. After you create the session, on the Session menu, click Properties.

  3. Click the Sources tab.

  4. In Source types for this session, click Script.

  5. Click OK.

To insert a script

  1. In Control Panel, click Start to start encoding.

  2. Click the button that represents the kind of script you want to insert. You can insert a Caption (text string), URL, or Custom Script.

  3. For a caption or URL, type the text or URL that you want to insert. For a Custom Script, enter the script type and value.

  4. Click Insert. The Total Scripts entry on the Monitor panel increases with each script that you insert.

top