[ Previous | Next | Contents | Glossary | Home | Search ]
Ultimedia Services Version 2 for AIX: User's Guide

Chapter 12. Broadcast Tools

The collaboration support in Ultimedia Services consists of a suite of broadcast tools that allow you to capture audio and/or video data, transmit it over a network that supports the Internet Protocol (IP), and then receive and play it on one or more systems simultaneously. Uses for this capability could include:

Audio and/or Video Broadcasting This would be analogous to radio or TV stations that broadcast over the air waves or cable TV lines. However, instead of broadcasting over the air or a cable TV line, the audio and/or video is broadcast over a computer network.
Audio and/or Video Conferencing These tools provide the basic support for conducting an audio and/or video conference between two or more network attached systems.

To learn more about the collaboration tools, see:


Broadcast Tools Overview

There are four basic broadcast tools that makeup the Ultimedia Services collaboration suite. These tools are:

Sender
                          This tool is used to capture audio and/or video data and transmit it on the network. The audio and/or video data is captured from the various audio and video adapter options supported by Ultimedia Services. Once captured, the data is then compressed and sent out on the network to one or more specified addresses using the transport scheme defined in Version 2 of the Real-time Transport Protocol (RTP) Internet Draft Standard. The Sender tool is capable of transmitting the audio and/or video data in either a multicast mode and/or a unicast mode.

In multicast mode, the data is sent to all systems connected to the Sender's local area network and any other systems on other networks that are connected to the Sender's network through one or more routers that support the multicast protocol. This is the broadcast mode.

In unicast mode, the Sender tool is used to transmit the audio and/or video data directly to another system that is accessible anywhere on the IP network. This feature can be used to send the audio and/or video data privately to one or more selected users. Additionally, the unicast mode can be used with the Repeater tool to allow broadcasting on networks not connected to the Sender's network through multicast supporting routers. The Sender tool can support sending audio and/or video data in unicast and multicast modes simultaneously.

Receiver
                          This tool is used to receive and play audio and/or video data from the network sent from one or more sources. The format of the data that the receiver is expecting is data that has been prepared and transmitted via Version 2 of the Real-time Transport Protocol (RTP) Internet Draft Standard, such as that transmitted by the Sender tool.
NetRepeater
                          This tool accepts unicast IP data and rebroadcasts it in multicast mode. This tool is used on networks that are not connected to the Sender's network via a router that supports the multicast protocol.
NetTunneler
                          This tool accepts multicast data and rebroadcasts it in unicast mode to a specified address. This tool can be used to rebroadcast data from one network to another.

The Broadcast Tools figure illustrates the interoperation of these tools.

In the Multimedia folder of desktop's Application Manager, these four tools are represented by the following six icons:

NetRepeater Select this icon to initialize the repeater tool.
NetTunneler Select this icon to initialize the tunneler tool.
UMSRadio Select this icon to initialize the receiver tool and configure it to receive only audio. See "Sender" for more information.
UMSRadioSender Select this icon to initialize the sender tool and configure it to broadcast only audio. See "Sender" for more information.
UMSTV Select this icon to initialize the receiver tool and configure it to receive audio and video. See "Receiver" for more information.
UMSTVSender Select this icon to initialize the sender tool and configure it to broadcast audio and video. See "Receiver" for more information.

NetRepeater

NetRepeater receives tunneled data from the network and rebroadcasts that data in multicast mode to the specified network.

Starting the NetRepeater

The NetRepeater can be started either by entering a command on the command line, or by selecting the NetRepeater icon located in the Multimedia folder of desktop's Application Manager and entering the connection parameters listed in the dialog box that displays.

Note: Starting the NetRepeater by selecting the icon method automatically brings up a terminal window. This window can be minimized into an icon until you want to exit the NetRepeater (see "Exiting the NetRepeater").

To start the NetRepeater, type:

NetRepeater [-a addr] [-d] [-n net] [-p port] -t tunnelPort

Where:

-a addr Specifies the multicast address on which to rebroadcast the tunneled data. The default value is 224.0.0.0.
-d Configures the NetRepeater to print a "d" character each time a data packet is rebroadcast and a "c" character each time a control packet is rebroadcast.
-n net Specifies the network interface address on which to rebroadcast the tunneled data. The default value is the network interface of the default route.
-p port Specifies port on which to rebroadcast the tunneled data. The default value is 5004
-t tunnelPort Specifies the port on which to receive the tunneled data.

Exiting the NetRepeater

The NetRepeater can be exited by either entering the Ctrl-C keystroke sequence in the terminal window in which the NetRepeater command was entered or by closing the terminal window that was brought up when the NetRepeater icon was selected.


NetTunneler

NetTunneler receives multicast data from the network then tunnels the data to a repeater or a receiver on another network.

Starting the NetTunneler

The NetTunneler can be started either by entering a command on the command line, or by selecting the NetTunneler icon located in the Multimedia folder of desktop's Application Manager and entering the connection parameters listed in the displayed dialog box.

Note: Note: Starting the NetTunneler by selecting the icon automatically brings up a terminal window. This window can be minimized into an icon until you want to exit the NetTunneler (see "Exiting the NetTunneler").

To start the NetTunneler, type:

NetTunneler [-a addr] [-d] -h repeaterName:port [-n net] [-p port]

Where:

-a addr Specifies the multicast address from which to accept the tunneled data. The default value is 224.0.0.0.
-d Configures the NetTunneler to print a "d" character each time a data packet is sent down the tunnel and a "c" character each time a control packet is sent down the tunnel.
-h repeaterName:port Specifies the host name of the system that is running the NetRepeater tool and port specifies on which port to send the tunneled data.
-n net Specifies the network interface address on which to accept the tunneled data. The default value is the network interface of the default route.
-p port Specifies port from which to accept the tunneled data. The default value is 5004

Exiting the NetTunneler

The NetTunneler can be exited by either entering the Ctrl-C keystroke sequence in the terminal window in which the NetTunneler command was entered or by closing the terminal window that was brought up when the NetTunneler icon was selected.


Sender

The Sender tool is used to capture and transmit audio and/or video to one or more destination on a network. The audio and/or video data is formatted and transmitted on the network using the Real-Time Transport Protocol (RTP) Version 2.0 Internet Draft specification. Currently, audio data is only encoded for transmission using the PCMU encoding format. Likewise, video data is only encoded using the H263, H261, or MJPEG encoding format.

To learn more about the Sender, see:

Starting the Sender

The Sender can be started either by entering a command on the command line, or by selecting either of the UMSTVSender or UMSRadioSender icons located in the Multimedia folder of desktop's Application Manager. As the names imply, the UMSTVSender icon is used to broadcast audio and video data, and the UMSRadioSender icon is used just to broadcast audio. Both of these icons invoke the Sender tool, but with different parameters to cause the difference in operation. The following command line parameters are accepted by the Sender.

To start the Sender, type:

sender [-address address] [-alias alias] [-audioonly | -videoonly]

[-audioconnector cn] [-audioformat fmt] [-bitrate rate] [-help] [-id identifier]

[-interface interface] [-port port] [-sendheight height] [-sendwidth width]

[-ttl ttl] [-videoconnector cn] [-videoformat fmt] [-videosignal signal]

Where:

-address address Specifies the address to transmit data on or to. Addresses in the range of 224.0.0.0 up to but not including 240.0.0.0 are considered to be multicast addresses. When an address is specified in this range, the data will be broadcast on this address using the multicast protocol. Addresses outside of this range are considered unicast addresses and as a result, data is only sent directly to this address. Specifying a unicast address can be used to "tunnel" the data to an awaiting repeater tool on the unicast address system. This feature can be used to rebroadcast data on local area networks not attached to the sender's network by routers that support the multicast protocol.
-alias alias Specifies an alias in the .UMS_config file that is used to specify values for the -interface, -address, and -port parameters. In essence, the specified alias can be considered an alias of a distribution list to be used to send the data. The format for the alias entries in the .UMS_config file are:
alias_name:
     Interface interface
     Address   address
     Port      port
*NEXT:
     Interface interface
     Address   address
     Port      port

For example, the following alias entry called Radio_Broadcast sends data on one multicast address, and tunnels the data to a unicast address using the tr0 token ring interface and ports 5004 and 6008, respectively.

Radio_Broadcast:
    Interface  "tr0"
    Address    "226.0.0.0"
    Port       "5004"
*NEXT:
    Interface  "tr0"
    Address    "129.71.86.14"
    Port       "6008"
-audioconnector cn Specifies which audio connecter the audio data is to be taken from. Valid values for cn are:
LINE_IN
HIGH_GAIN_MIC
LOW_GAIN_MIC
-audioformat fmt Specifies the compression format of the audio data. The valid value for fmt is PCMU.
-audioonly Sets up the Sender to only transmit audio data. This parameter cannot be specified along with the -videoonly parameter.
-bitrate rate Specifies the desired average bit rate for the data to be transmitted to each destination. This value is an average bit rate, not an upper or lower bound. Furthermore, this value is a desired rate. Depending on the video content and size, the desired rate might not be possible, in which case the rate is set as close to the desired value as possible.
-help Displays a help message.
-id identifier Specifies the "Station Identifier" that is broadcast along with the data. The valid values for identifier are any string of characters fewer than 256 characters in length. For example, to set the sender's identifier to "Company Information Network," specify the -id parameter as: -id "Company Information Network". Long identifier strings might be clipped when displayed by the receiver. As a result, an identifier of 15 characters or less is recommended.
-interface interface Specifies the desired network interface to use when connecting to the network. For example, -interface tr0 causes the Sender to use the tr0 network interface when making the network connection.
-port portnumber Specifies the port number of the network connection. For example, -port 5004 causes the Sender to use the port 5004 for audio data, 5005 for audio RTP control data, port 5006 for video data, and port 5007 for video RTP control data when making the network connection. As specified in the Audio and Video Data RTP profile, the specified port must be an even number.
-sendheight height Specifies the height (in pixels) of the video frame to transmit. When specified, it must be specified along with the -sendwidth parameter.
-sendwidth width Specifies the width (in pixels) of the video frame to transmit. When specified, it must be specified along with the -sendheight parameter.
-ttl ttl Specifies the Time To Live value for multicast packets. It is only used if one of the connections is a multicast address and the network routers support the multicast protocol. Use caution when setting this value. Large values can cause your transmission to be sent to many networks beyond your local network. This can cause unnecessary network delays if you did not intend to send the audio and/or video transmission that far. The valid range for the value of ttl is from 0 to 255.
-videoconnector cn Specifies which video connecter the video data is to be taken from. Valid values vary depending on the installed video capture adapter. The valid values for cn are:
Parallax Adapter:
   INPUT_COMPOSITE_1
   INPUT_COMPOSITE_2
   INPUT_YC_1
   INPUT_YC_2
850 Portable Workstation or
S15 Video Capture Adapter
   INPUT_COMPOSITE
   INPUT_SVIDEO
   INPUT_CCDCAMERA
ULTIMEDIA Video Capture Adapter
   INPUT_COMPOSITE
   INPUT_SVIDEO
-videoformat fmt Specifies the compression format of the video data. Valid values for fmt are:
H263
H261
MJPEG
-videoonly Sets up the Sender to only transmit video data. This parameter cannot be specified along with the -audioonly parameter.
-videosignal signal Specifies the format of the video data being taken from the video connector specified with the -videoconnector parameter. Valid values for signal are:
NTSC
PAL
SECAM

Sender Main Window

The Sender Main Window figure contains a menu bar with three menus. Below the menu bar is the video monitoring window (unless -audioonly is specified at startup) and the station identifier along with audio monitor controls (unless -videoonly is specified at startup).

The menus on the menu bar are:

File Displays a pull-down menu which contains the Exit button. This Exit button is used to stop transmitting data and to exit the Sender.
Options Displays a pull-down menu with the following options:
Connection Displays the Connection dialog box.
Audio Displays submenus that let you specify the audio input connector and pause the sending of audio data.
Video Displays submenus that let you specify the video input connector, video signal format, and the size of the transmitted video data, and pause the sending of video data.
Identifier Displays the Identifier dialog box, which is used to specify of change the "Station Identifier."
Settings Displays the settings dialog box, which is used to specify or alter the Sender settings.
Statistics Adds the bit rate and video frame statistics window to the Sender window.
Help Displays a help message.

Sender Connections Window

See the Connections Window figure for the Sender. It is used to set, delete, or display the network connection parameters. If these parameters are not specified on the command line, this dialog box must be used to specify at least one connection before the sender will start to transmit data. The connections window contains a three-column scrolled list that displays the active network connections. Connections may be added or deleted from this list by using the buttons below the list:

Load Loads a group of connections from the .UMS_config file identified by the specified alias. See the -alias parameter of the sender command for more information.
Add Adds a connection to the list of active connections.
Delete Deletes (disconnects) selected entries in the list of active connections. You can delete one or more entries by selecting the connections in the list you wish to delete and then pressing this Delete button.
Done Signifies that you are finished adding or deleting connections.
Help Displays a help message.

Sender Add Connection Window

The Add Connection Window figure is used to add a connection to the list of active connections in the Connections Window. The following connection parameters are required:

Interface Specifies the desired network interface to use when connecting to the network. For example, selecting tr0 causes the Sender to use the tr0 network interface when making the network connection.
Address Specifies the address to transmit data on or to. Addresses in the range of 224.0.0.0 up to but not including 240.0.0.0 are considered to be multicast addresses. When an address is specified in this range, the data will be broadcast on this address using the multicast protocol. Addresses outside of this range are considered unicast addresses and as a result, data is only sent directly to this address. Specifying a unicast address can be used to "tunnel" the data to an awaiting repeater tool on the unicast address system. This feature can be used to rebroadcast data on local area networks not attached to the sender's network by routers that support the multicast protocol.
Port Specifies the port number of the network connection. For example -port 5004 causes the Sender to use the port 5004 for audio data, 5005 for audio RTP control data, port 5006 for video data, and port 5007 for video RTP control data when making the network connection. As specified in the Audio and Video Data RTP profile, the specified port must be an even number.

In addition to the connection parameters this window contains the following buttons:

Add Adds the specified connection to the active list.
Cancel Removes this window from the display.
Help Displays a help message.

Sender Settings Window

The Settings Window is used to set, view, or alter the current Sender settings.

Desired Average Bitrate Sets the desired average bit rate for the data to be transmitted to each destination. This value is an average bit rate, not an upper or lower bound. Furthermore, this value is a desired rate. Depending on the video content and size, the desired rate might not be possible, in which case the rate is set as close to the desired value as possible.
Multicast TTL value Sets the Time To Live value for multicast packets. It is only used if one of the connections is a multicast address and the network routers support the multicast protocol. Use caution when setting this value. Large values can cause your transmission to be sent to many networks beyond your local network. This can cause unnecessary network delays if you did not intend to send the audio and/or video transmission that far.

In addition to the connection parameters, this window contains the following buttons:

Apply Applies the entered changes.
Done Indicates that you have finished making changes and removes the Settings Window from the display.
Reset Resets the setting values to the last applied values.
Help Displays a help message.

Sending a Broadcast

The following steps are required to send a broadcast:

  1. Start the Sender. If the broadcast is to be a radio (audio only) broadcast, either select the UMSRadioSender icon or start the Sender from the command line with the -audioonly flag. Otherwise, select UMSTVSender or start the Sender from the command line without the -audioonly flag to broadcast audio and video. If you are starting the Sender from the command line, you can also specify any other desired parameters using the syntax described in the "Starting the Sender" .
  2. Use the Audio and/or Video pull-down menus under the Options menu choice to select the desired audio and/or video connectors, formats, and so on.
  3. Use the Identifier option from the Options menu to set the "Station Identifier" string for this broadcast.
  4. Select the Connections option from the Options menu to bring up the Connections Window.
  5. Select the Load button to load a predefined group of connections as identified by an alias in the .UMS_config file or select the Add button to add connections one at a time. As soon as the first connection is made, the Sender begins broadcasting. Connections may be added or deleted as desired while the sender is running. When you have finished adding or deleting connections, select the Done button.
  6. When the broadcast is finished, select Exit from the File menu to end the broadcast.

Receiver

The Receiver tool is used to monitor incoming audio and/or video data from one or more sending source on a network. The format of the data must conform to the Real-time Transport Protocol (RTP) Version 2.0 Internet Draft specification. Additionally, only PCMU-encoded audio data and H.263, H.261, and MJPEG encoded video data are currently accepted by the Receiver.

This section contains information about:

Starting the Receiver

The Receiver can be started either by entering a command on the command line or by selecting either of the UMSTV or UMSRadio icons located in the Multimedia folder of desktop's Application Manager. As the names imply, the UMSTV icon is used to receive audio and video data, and the UMSRadio icon is used to just receive audio. Both of these icons invoke the Receiver tool, but with different parameters to cause the difference in operation. The following command line parameters are accepted by the Receiver.

To start the Receiver, type:

receiver [-address address] [-audioonly] [-autoaccreq] [-help] [-interface interface] [-nomainbox seconds] [-port port]

Where:

-address address Specifies the address to receive multicast data from. Addresses in the range of 224.0.0.0 up to but not including 240.0.0.0 are considered to be multicast addresses. Do not specify this parameter if the sender is transmitting data in unicast mode. Such would be the case if the Sender or NetTunneler is broadcasting directly to the system running the receiver and the data is not to be rebroadcast on the Receiver's local network.
-audioonly Sets up the Receiver to receive only audio data. If video data is also being sent as part of the broadcast, the video data is ignored.
-autoaccreq Sets up the Receiver to automatically accept connections from any source sending data on the specified interface, address, and port for multicast broadcasts or just port for unicast transmissions. If you do not specify this parameter, the Connect Window described in "Receiver Connect Window" displays each time the Receiver receives data from a new source.
-help Displays a help message.
-interface interface Specifies the desired network interface to use when connecting to the network. For example, -interface tr0 causes the Receiver to use the tr0 network interface when making the network connection.
-nomainbox seconds Use when connecting to the broadcast of a single source, for example, a radio or TV broadcast. With this parameter specified, the Main Window does not display, and only a Monitor Window displays for the sending source. Along with this this parameter, you must specify the number of seconds to wait for a connection request. If a connection request is not received within the specified number of seconds, the Receiver automatically exits. For example, -nomainbox 30 causes the Receiver to wait 30 seconds for a connection request before exiting.
-port portnumber Specifies the port number of the network connection. This parameter is required for both multicast and unicast broadcasts or transmissions. For example, -port 5004 causes the Receiver to accept data from the port 5004 for audio data, port 5005 for audio RTP control data, port 5006 for video data, and port 5007 for video RTP control data. As specified in the Audio and Video Data RTP profile, the specified port must be an even number.

Receiver Main Window

The Main Window for the Receiver contains a menu bar with three menus and a list of sources currently attached to the Receiver. The menus on the menu bar are:

File Displays a pull-down menu that contains the Exit option. The Exit option is used to close all active sources and exit the Receiver.
Options Displays a pull-down menu with the following options:
Connection Displays the Connection Window.
Activate Activates suspended monitors of sources. If a source's monitor is listed as suspended, select it in the list and then select this Activate option to activate the monitor. Monitors are suspended if they are closed prior to exiting the Receiver.
Help Displays a help message.

Receiver Monitor Window

The Monitor Window for an incoming data source plays the audio being sent from the source and also plays video if the source is sending video and the -audioonly flag was not specified. The Monitor Window has the following menus:

File Displays a pull-down menu with the Close button. This Close button is used to close the Monitor Window and place it in a suspended state. You can reactivate the monitor by following the Activate procedure described in the help text for the Main Window dialog box.

If the Receiver is started by specifying the -nomainbox parameter, selecting Close closes the Monitor Window and it cannot be reactivated. Also with this parameter, when the last Monitor Window is closed, the Receiver exits. This parameter is designed to be used when monitoring a source such as a radio or TV broadcast.

Options Displays a pull-down menu that contains the Scale 2X Original option. This option is used to toggle on and off the scaling of the incoming video picture two times the size being sent.
Help Displays a help message.

Also included on the Monitor Window is a source identifier window. This window contains the text Unknown until the sending source sends out its identifier. At this point, the source identifier window is updated.

There are two additional controls on the Monitor Window:

Mute Toggles on and off the muting of the audio from the source.
Volume Adjusts the audio volume from the source.

Receiver Connection Parameters Window

The Receiver Connections Parameters window is used to set, display, or alter the network connection parameters. If the parameters were not specified on the command line, this dialog box must be used to specify the connection parameters to establish the connection to the network. If a connection already exists, this window can be used to view or alter the connection parameters (if the Disconnect button is selected first).

Interface Specifies the desired network interface to establish the network connection.
Address Specifies the address to receive multicast data from. Addresses in the range of 224.0.0.0 up to but not including 240.0.0.0 are considered to be multicast addresses. This parameter is not specified if the sender is transmitting data in unicast mode. Such would be the case if the Sender or NetTunneler is broadcasting directly to the system running the receiver and the data is not to be rebroadcast on the Receiver's local network.
Port Specifies the port number of the network connection. This parameter is required for both multicast and unicast broadcasts or transmissions. For example, -port 5004 causes the Receiver to accept data from the port 5004 for audio data, port 5005 for audio RTP control data, port 5006 for video data, and port 5007 for video RTP control data. As specified in the Audio and Video Data RTP profile, the specified port must be an even number.

In addition to the connection parameters, this window contains the following buttons:

Connect Only available when the Receiver is not connected to the network. It accepts the specified connection parameters and attempts to connect to the network.
Disconnect Only available when the Receiver is connected to the network. It is used to break the network connection and allow the connection parameters to be altered for a different connection.
Cancel Removes this window from the display.
Help Displays a help message.

Receiver Connect Window

The Connection Request window displays when a new source is attempting to connect to the Receiver. With the buttons in this window, you can choose to accept or reject the connection. If the source is unidentified, you can choose to have the receiver wait until it is identified before you are reprompted to accept the connection. The buttons are:

Accept Accepts the connection and starts a Monitor window for this source.
WaitID Only available when the source is unidentified. The Receiver waits until the source identifies itself before you are reprompted to accept or reject the connection.
Reject Rejects the connection from this source. No further notifications of incoming data from this source is given and and no Monitor window opens for this source.
Help Displays a help message.

Receiving a Broadcast

Follow these steps to receive a broadcast:

  1. Start the Receiver. If the broadcast being sent is radio (audio only), or if you only want the audio portion of the broadcast, either select the UMSRadio icon or start the Receiver from the command line with the -audioonly flag. Otherwise, select the UMSTV icon or start the Receiver from the command line without specifying the -audioonly flag to receive both audio and video. If you are starting the Receiver from the command line, you also can specify any other desired parameters using the syntax described in "Starting the Receiver" .
  2. Specify the connection parameters. If the connection parameters were specified on the command line, the Receiver automatically attempts to make the specified connection and start if successful. If the connection parameters were not specified on the command line, they must be supplied in the Connection WIndow before the Receiver starts to receive data. If the Receiver was started with the -nomainbox option and the connection parameters were not specified on the command line, the Connection Window automatically displays when the Receiver is started. You can then enter the connection parameters. If you did not specify the -nomainbox option, use the Connections option on the main window's Options menu to bring up the Connections window and enter the desired connection parameters.
    Note: Only one Receiver on a system is started for any given combination of connection parameters. If more than one Sender is sending data to the same connection parameter combination, the Receiver automatically adds new Monitors for the additional data sources as needed or allowed. See step three for information on choosing which data sources to accept.
  3. If the -autoaccreq option was not specified, as data from each source sending data to the specified connection parameters is received, the Receiver displays the Connect window to notify you that data from a new source has arrived. This allows you to decide if you want to receive the data from the sending source or have the receiver throw the data away. Because more than one Sender might be sending data to the same connection parameters, this feature lets you select which Sender's data to receive.
  4. If a Monitor window is closed before the Receiver exits, the Monitor enters into a suspended mode (unless the -nomainbox option is specified at startup). Once suspended, you can reactivate the Monitor window by selecting the ID of the suspended Monitor in the list of sources located in the main window. Once you select a suspended ID, the Activate option of the Main Window's Option menu becomes available.
  5. Select the Activate option to reactivate the Monitor window.

[ Previous | Next | Contents | Glossary | Home | Search ]