Chapter 3. System Configuration

This chapter describes how you configure the SGI Media Server for proper operation. The chapter is organized as follows to simplify the configuration tasks:

Configuration Files

Table 3-1 summarizes the configuration files that the SGI Media Server uses to configure hardware and other SGI Media Server resources. These files assign controls to hardware ports that affect device and system operation.


Note: You can also use MVCP SET commands to alter control values but the changes will only persist until the next VST restart. In contrast, control values set in the configuration files persist from a VST start until changed by a SET command.


Table 3-1. Configuration Files

Configuration File

Purpose

/usr/vtr/config/control-in.conf

Configures the server to be controlled by remote devices. Use this file to configure VST to work with controllers compatible with Sony and VDCP protocols and with Miranda or Horita timecode reader devices.

/usr/vtr/config/control-out.conf

Configures the server to control VTRs or VTR-like devices.

/usr/vtr/config/device-defaults

Specifies default control settings for audio, video, and disk devices.

/usr/vtr/config/ports.conf

Specifies logical video port names to substitute for the ports' physical names.

/usr/vtr/config/system-defaults

Specifies default control settings for various nondevice subsystems (for example, systemwide controls or Sony protocol control ports).

/usr/vtr/config/system-defaults/clipmirror

Specifies clip mirror configuration and a clip transmission port for the primary server. Refer to Chapter 10, “Clip Mirror Configuration”

.

/usr/vtr/config/system-defaults/fs

Contains filesystem configuration for FTP and other persistent, storage-dependent resources. See the vst-controls(5) man page.

/usr/vtr/config/system-defaults/main

Contains information globally affecting SGI Media Server operation, such as timing standard and system event logging. See the vst-controls(5) man page.

/usr/vtr/config/system-defaults/time

Contains information regarding time management and timecode device offsets. See the vst-controls(5) man page.

/usr/vtr/config/vtrd.conf

Configures the SGI Media Server vtrd server daemon. See the vtrd(1) man page.

/usr/vtr/config/vtrdircopy.conf

Contains directory information for configuring the vtrdircopy daemon.

/usr/vtr/config/vtrftpd.conf

Contains VST control settings for managing clip transfers.

For a detailed discussion of the SGI Media Server controls and values applicable to each configuration file and device, see the vst-control(5) man page. The file formats and organization for the following files are described in the following sections of this chapter:

  • /usr/vtr/config/control-in.conf

  • /usr/vtr/config/control-out.conf

  • /usr/vtr/config/ports.conf 

Table 3-2 describes the various peer directories of /usr/vtr/config.

Table 3-2. Subdirectories of /usr/vtr

Subdirectory

Description

adm/

Contains log files and crash files for vvtr and other executables (if crashes occur).

bin/

Contains commands and the VST executable vvtr.

clips/

Contains the clip cache.

config/

Contains configuration files.

data/

Contains files that are static data or image files used by various VST components.

images/

Contains still images created when the MVCP CIMG command is executed. See the mvcp(5) man page.

index/

Contains generated index files of MPEG-2 and MXF clip content stored in clips.

install/

Contains files used during installation.

lib/perl/

Contains Perl modules for application development.

lib32/*.so

Contains core and shared libraries.

lib32/modules/*.so

Contains modules for external device interfaces, controls, and formats.


Configuring Device Interfaces

A device file contains variables called controls that map device register settings or establish settings for SGI Media Server interaction with peripheral control systems, such as the Harris Automation ADC100. The controls consist of name-value pairs. The device register settings establish specific behaviors, such as the compression format for video ingestion. Exactly one device file exists for each active media processing device in the SGI Media Server infrastructure.

Configuring Audio and Video Devices in Your System

The directory /usr/vtr/config/ device-defaults contains the device files corresponding to the media devices. Each device or device type has one file; the directory device-defaults can contain the following files:

MFCODEC  

For behavior common to all connected multiformat codec (MFCODEC) media devices

MFCODEC_n 

For PCI-VIDAUD-MSB-B boards and MSB-REARPANEL-B panels

dq or dq_n 

For Diaquest software to control external VTRs

Setting Device Parameters

The Video Server Technology (VST) controls are detailed in the vst-controls(5) man page. There are numerous controls for establishing device behavior. For example, for the first MFCODEC device, create a file under /usr/vtr/config/device-defaults called MFCODEC_0. The following shows an example of the file's contents:


vtr.media.video.input.compression.type mpeg2

vtr.media.mpeg.bit_rate 50000000

vtr.media.video.input.vitc.line_offset 14

vtr.media.clip.start.mode vitc

vtr.media.audio.input.channels 1

vtr.media.audio.input.channel_map.source “A”

vtr.media.audio.input.channel_map.channel_pair “1”

This example device-defaults file sets the default control values for any units created using the MFCODEC_0 port. The example specifies the following:

  • Clip recording with MPEG-2 compression at 50 megabits/second

  • Detecting a vertical interval timecode (VITC) on line 14

  • Processing the VITC value for each frame

  • Accepting analog audio input using the MSB-REARPANEL-B connected to a PCI-VIDAUD-MSB-B peripheral

Configuring System Defaults

You use VST controls in files in the /usr/vtr/config/ system-defaults directory to specify default, systemwide behavior. For example, the file main might contain the following:


vtr.main.timing_standard 625

This line sets the default timing mode for the SGI Media Server to 625. This implies that the SGI Media Server will only process PAL-based video signals.

If a Little Red linear timecode (LTC) processor periperhal is attached, the file /usr/vtr/config/system-defaults/time might contain a global offset for Little-Red LTC processing:


vtr.time.offset -27000000

See the vst-controls(5) man page for detailed information about all system controls.

Configuring Video Compression

The PCI-VIDAUD-MSB-B multiformat codec ( MFCODEC) devices support several file formats for video compression: DIF, SGI MPEG-2, SMPTE 360M (playout only), and MXF. The DIF video format supports DVCPRO 25, DVCPRO 50, DVCAM, and DV (16-bit/48 Khz audio only) fixed-sized compression. To enable MPEG-2 video compression, add the following line to the appropriate MFCODEC_n file:


vtr.media.video.input.compression.type mpeg2

Alternatively, you can use the SET command from mvcp to specify the format directly in the unit context. Similarly, to enable DVCPRO 50 video compression, add the following line to the appropriate MFCODEC_n file:

vtr.media.video.input.compression.type dvcpro50

IMX ingest requires an IMX-enabled PCI-VIDAUD-MSB-B card. The standard VST controls (see the vst-controls(5) man page) configure these cards for processing DVCPRO 25, DVCPRO 50, DVCAM, DV (16-bit/48 Khz audio only), or SGI MPEG-2 video signals for playout and ingest.

To create an IMX-compatible clip, the following controls must be set within the unit context with the MVCP SET command or using entries in a device configuration file:

vtr.media.mpeg.bit_rate 50000000
vtr.media.video.input.constant_bit_rate true
vtr.media.input.compression.type mpeg2
vtr.media.video.input.compression.gop_structure I
vtr.media.video.input.compression.gop_size 1

For strict compliance with SMPTE 356M-2001, the 50 Mbps value must be used for vtr.media.mpeg.bit_rate. However, an IMX-compatible deck can play clips recorded at other constant bit rates.

MPEG-2 video coding can assume many compression formats, depending on the group of pictures ( GOP) structure and GOP size multiplier. The PCI-VIDAUD-MSB-B MFCODEC supports four unique GOP structures: I (the default), IP, IPB, and IPBB—the standard MPEG names. For a detailed discussion of MPEG video coding, consult the website http://www.mpeg.org.

Each GOP structure has a GOP period, which is the interval between two successive occurrences of the GOP structure, exclusive of the I-frame. Table 3-3 defines the GOP period for each supported GOP structure.

Table 3-3. Supported GOP Structure and Period

GOP Structure

GOP Period

I

1

IP

1

IPB

2

IPBB

3



Caution: Attempts to apply unsupported GOP structures may generate unpredictable results.

Each GOP structure provides variable compression encoding, though longer GOP structures typically produce higher video frame compression, thereby reducing video storage consumption during ingestion. Longer GOP structures have a drawback: they potentially introduce information loss through the encoding compression operation. The vtr.media.mpeg.bit_rate control, when set to a very low compression rate (less than 10000000), may contribute to information loss during encoding, though information loss depends on scene content changes and several other factors. Information loss arising from too much compression may occur during playout in the form of poor image reproduction or unwanted image artifacts.

For each supported GOP structure, the default GOP size is 1. There are many combinations of GOP size and GOP structure. These combinations are restricted by the following rule: the GOP period must evenly divide the GOP size.


Caution: Failure to obey this rule may lead to unpredictable results.

For example, Table 3-4 defines examples of valid GOP sizes, their periods, and structures.

Table 3-4. Example GOP Size, Period, and Structure

Size

Period

Stored GOP Structure

1

1

I

15

1

IPPPPPPPPPPPPPP

6

3

IBBPBB

15

3

IBBPBBPBBPBBPBB

To enable MPEG-2 video compression with the default I-frame compression and GOP size 1, add the following line to the appropriate MFCODEC_n file:

vtr.media.video.input.compression.type mpeg2

Alternatively, you can use the SET command from mvcp to apply it directly in the unit context. To further compress and encode a video stream, add the following lines:


vtr.media.video.input.compression.type mpeg2

vtr.media.video.input.compression.gop_structure IPBB

vtr.media.video.input.compression.gop_size 6



Caution: Selecting unreasonable values for vtr.media.video.input.compression.gop_size may lead to unpredictable results. A maximum gop_size of 15 is considered an extreme upper bound for the MFCODEC.

The MFCODEC further supports two distinct forms of compression sampling: 4:2:0 and 4:2:2. The control vtr.media.video.input.compression.sampling has a default value of 422, which selects 4:2:2 compression sampling. To enable 4:2:0 compression sampling, add the following line to the appropriate MFCODEC_n file:


vtr.media.video.input.compression.sampling 420

Alternatively, you can use the SET command from mvcp to apply it directly in the unit context.

The following controls affect only MPEG-2 compression.

  • vtr.media.video.input.compression.gop_structure

  • vtr.media.video.input.compression.gop_size

  • vtr.media.video.input.compression.sampling

They are ignored for DVCPRO 25, DVCPRO 50, DVCAM, and DV (16-bit/48 Khz audio only) video ingestion.

Configuring Audio Support

For the MFCODEC devices, you can select the audio port map and source map for both input and output.

Input

As shown in Table 3-5, there are four input pairs for recording. Up to four audio source selections can be made to connect to each of the input pairs. These selections are made from 8-pair or 16 audio channels, defined as follows:

  • 8 channels or 4-pair of embedded input, as defined in Table 3-5 

    • Embedded 1/2

    • Embedded 3/4

    • Embedded 5/6

    • Embedded 7/8

  • 6 channels or 3-pair of AES/EBU input, as defined in Table 3-5

    • AES/EBU 1/2

    • AES/EBU 3/4

    • AES/EBU 5/6

  • 2 channels or 1-pair analog input, as defined in Table 3-5 as Analog 1/2.

The matrix in Table 3-5 shows all possible selections.

Table 3-5. Source Selections for Record Input Pairs

Audio Input Sources

Record Inputs of Each Channel

 

1/2 3/4 5/6 7/8

Embedded 1/2

X X X X

Embedded 3/4

X X X X

Embedded 5/6

X X X X

Embedded 7/8

X X X X

 

 

AES/EBU 1/2

X X X X

AES/EBU 3/4

X X X X

AES/EBU 5/6

X X X X

 

 

Analog 1/2

X X X X

Input notes:

  • All audio selections are in pairs.

  • The analog input pair can be mapped into each channel simultaneously.

  • Any AES/EBU input pair can be mapped into each channel simultaneously.

  • Any embedded input pair can be mapped into each channel simultaneously.

  • Each channel can have only one audio source selected for it.

Output

As shown in Table 3-6, there are four pairs (eight channels) of audio output. Each audio output type has the equivalent play output pair routed to it at all times. Analog 1/2 can be selected for simple audio monitoring.

Table 3-6. Audio Output Mappings

Audio Output Types

Play Output Pairs

 

1/2 3/4 5/6 7/8

Embedded 1/2

 X

Embedded 3/4

  X

Embedded 5/6

  X

Embedded 7/8

  X

 

 

AES/EBU 1/2

 X

AES/EBU 3/4

  X

AES/EBU 5/6

  X

 

 

Analog 1/2

X X X X

Output notes:

  • Embedded audio output types are fixed to play output pairs as shown in Table 3-6.

  • AES/EBU audio output types are fixed to play output pairs as shown in Table 3-6.

  • The analog audio output type is selectable to any of the play output pairs.

  • An “X” in Table 3-6 indicates which audio sources per channel are selected for this output.

  • The play output pairs are simultaneously available for each kind of audio output types. For example, Embedded 1/2, AES/EBU 1/2, and Analog 1/2 can all utilize play output pair 1/2 at the same time.

Channel Map/Source Control

SGI Media Server controls allow you to select what type of audio to route to each MFCODEC input pair. The choices are embedded (E), AES/EBU (D), or analog (A). The control, vtr.media.audio.input.channel_map.source, is set in the /usr/vtr/config/device-defaults/MFCODEC_n file for the unit you want to configure. This control, combined with the vtr.media.audio.input.channel_map.channel_pair control, selects what audio goes to each of the four MFCODEC input pairs . This can be changed on a clip-by-clip basis.

The syntax for the vtr.media.audio.input.channel_map.source control is as follows:

vtr.media.audio.input.channel_map.source value_0value_1value_2value_3

Each value_i variable represents the audio type for MFCODEC input pair i. The possible values are E (embedded), D (AES/EBU), or A (analog). The following is an example:

vtr.media.audio.input.channel_map.source EEEA

Channel Map/Channel Pairs Control

The vtr.media.audio.input.channel_map.channel_pair control selects which audio input of a particular type goes to each MFCODEC input pair. The choices are 1, 2, 3, or 4 for embedded; 1, 2, or 3 for AES/EBU; or 1 for analog. This control, combined with the vtr.media.audio.input.channel_map.source control, selects what audio goes to each of the four MFCODEC input pairs . This can be changed on a clip-by-clip basis.

The syntax for the vtr.media.audio.input.channel_map.channel_pair control is as follows:

vtr.media.audio.input.channel_map.channel_pair src_0src_1src_2src_3

Each src_i variable represents the source choice for MFCODEC input pair i. The possible values are 1 (source 1), 2 (source 2), 3 (source 3), and 4 (source 4). The following is an example:

vtr.media.audio.input.channel_map.channel_pair 2314


Note: For each MFCODEC input pair, its source choice (src_i) has a possible value of 1, 2, 3, or 4. However, as noted previously, these four source choices are not always available for each input type. For instance, if analog was selected for a particular MFCODEC input pair on the vtr.media.audio.input.channel_map.source control, the only valid value for the source is 1.


Channel Map Examples

This section lists examples of audio channel mapping in the /usr/vtr/config/device-defaults/MFCODEC_n file.

Example 3-1 shows the default and maps embedded Inputs 1–3 to MFCODEC Inputs 0–2 and analog Input 1 (IN 1/L) to MFCODEC Input 3.

Example 3-1. Default Audio Channel Mapping

vtr.media.audio.input.channel_map.source EEEA
vtr.media.audio.input.channel_map.channel_pair 1231

Example 3-2 maps embedded Input 1 to MFCODEC Inputs 0-1, embedded Input 3 to MFCODEC Input 2, and analog Input 1 (IN 1/L) to MFCODEC Input 3. This provides VTR-like audio control.

Example 3-2. VTR-Like Audio Control Mapping

vtr.media.audio.input.channel_map.source EEEA
vtr.media.audio.input.channel_map.channel_pair 1131

Example 3-3 maps AES/EBU Inputs 2–3 to MFCODEC Inputs 0–1, embedded Input 1 to MFCODEC Input 2, and analog Input 1 (IN 1/L) to MFCODEC Input 3.

Example 3-3. Mapping of AES/EBU, Embedded, and Analog Audio

vtr.media.audio.input.channel_map.source DDEA
vtr.media.audio.input.channel_map.channel_pair 2311


Identifying Audio Ports

The vtrhwinfo command provides detailed information regarding the configured video and audio ports. The command lists the installed PCI-VIDAUD-MSB-B peripherals and their audio channel interfaces.

The following is sample output from the vtrhwinfo command:

Merlin Port 1 - PCI-VIDAUD-MSB Video (module=001c01 xtalk=14 slot=1)
Merlin Port 2 - PCI-VIDAUD-MSB Video (module=001c01 xtalk=14 slot=2)
Merlin Port 3 - PCI-VIDAUD-MSB Video (module=001p02 xtalk=12 slot=1)
Merlin Port 4 - PCI-VIDAUD-MSB Video (module=001p02 xtalk=12 slot=2)
Merlin Port 5 - PCI-VIDAUD-MSB Video (module=001p02 xtalk=15 slot=1)
Merlin Port 6 - PCI-VIDAUD-MSB Video (module=001p02 xtalk=15 slot=2)

Line 3 of the output indicates that the board (Merlin Port 3) resides in the PE brick module (denoted by the p in the module value as opposed to c for a compute brick), on bus 12, and in slot 1.

For example, to record two audio channels (one analog, the other embedded AES) using the MFCODEC_14 port from the MSB-REARPANEL-B connected to IN 1/L and AES INPUT 1, edit the file /usr/vtr/config/device-defaults/MFCODEC_14 and add these control settings:


vtr.media.audio.input.channels 2

vtr.media.audio.input.channel_map.source “AE”

vtr.media.audio.input.channel_map.channel_pair “12”

Disabling Audio

If no audio inputs are connected, it is good practice to disable the controls for audio input sources and mapping. To do this, use the MVCP SET command within the unit context, as shown in the following session, which assumes that U2 is created from MFCODEC_3:

UADD MFCODEC_3 * EXCL *
U2
200 OK
SET U2 MED vtr.media.audio.input.channel_map.channel_pair ““
200 OK
SET U2 MED vtr.media.audio.input.channel_map.source ““
200 OK
SET U2 MED vtr.media.audio.input.channels 0
200 OK

Configuring the SGI Media Server for Control by Remote Devices

To configure the SGI Media Server so that it can be controlled by remote devices, use the /usr/vtr/config/control-in.conf file . The SGI Media Server supports devices that use one of the following protocols:

  • Video Disk Communications Protocol ( VDCP) using RS-422

  • The industry-standard, Sony-compatible VTR RS-422 control protocol

  • Multiport Video Computer Protocol ( MVCP) using TCP/IP

The /usr/vtr/config/control-in.conf file has three parts:

  • Control port (serial port) configuration—one line per device

  • Other control ports—one line per device

  • Signal port configuration—one line per device

The control port and signal configuration lines are described in the following subsections.

Control Port Configuration Line

You use the configuration file /usr/vtr/config/control-in.conf to specify basic connection parameters between the controlling devices (Sony and VDCP) and the SGI Media Server. Connection parameters include such information as which serial port controls a specific video board and the precise means of control interaction between the port and video board.

For each serial port to be connected to a controlling device (such as an automation or edit controller), insert a line in the /usr/vtr/config/control-in.conf file that uses the following format:

protocol   type  port  speed   parity   signalport  rate  latency  [clips=path/*]

The following line shows a sample configuration:

sony  rs422  4  38400  1  1   29.97  0  clips=press-conference/*

This example specifies that a controlling device using the Sony-compatible VTR protocol is connected via an RS-422 serial line to serial port 4 on the server. The serial connection speed is 38400 bits/s, using odd parity. The device is controlling the video port identified by the “signal 1” configuration line (also specified in control-in.conf) and is using a zero-frame command latency so that commands are executed as quickly as possible. The preroll should always be 0, except for VDCP controllers, for which the preroll is 3. The ingested content to be stored in the directory /usr/vtr/clips/press-conference.

The following sections describe each variable in this configuration line.

protocol

Use the value that corresponds to the protocol used by the device you are configuring to work with the SGI Media Server. The valid values of protocol include the following:

sony, p2 

Sony-compatible VTR RS-422 control protocol

louth 

VDCP

mvcp 

SGI MVCP

hsip 

Horita Serial Interface Protocol

little-red 

Miranda Little-Red linear timecode reader protocol

type

The valid values of type include the following:

rs232 

RS-232 control connection

rs422 

RS-422 control connection

tcp 

Socket-based TCP/IP connection

These values must correspond to the type of connection between the control video device and the SGI Media Server. The type of cable you use to connect the video device and the server determines this value.

port

The value of port specifies the serial port number for RS-232 and RS-422 connections. For example, to specify that the device is connected to port 2 (sometimes referred to as ttyd2), specify just the numeral 2. For TCP connections, port specifies the TCP port number.


Note: Serial and TCP ports (communications ports) are unrelated to video ports (signal ports).


speed

The speed value specifies the connection speed of the serial connection between the server and the controlling device, usually 38400. On rare occasions, 9600 is used. For TCP connections, enter a hyphen (-) for this setting.

parity

The optional parity setting can have one of the following values:

0 

No parity

1 

Odd parity

2 

Even parity

Parity is usually odd (1). On rare occasions, even or no parity is used.

signalport

The signalport value specifies the signal (video) port that is controlled by this remote device connection. This value is identified by a signal configuration line in the file control-in.conf. A prefix character of ”–“ implies the port is an ingest port. By default, a port is a playout port unless the port number is prefixed by “–“. For more information, see “Signal Configuration Line”.

rate

The rate value specifies the frame-rate and drop-frame mode for timecodes exchanged over the control connection. The following are the valid values:

25 

625/50 video

29.97 

525/59.94 video (drop-frame)

30 

525/59.94 video (not drop-frame)

latency

When the SGI Media Server receives a command, the command can apply only to the next frame to enter the video port output queue. For example, if the video port output queue holds three frames, the first frame that can be affected by an incoming command is the third frame in the queue. If a stop command is received, the first two frames in the video port output queue are displayed; the third is not displayed because it is affected by the stop command.

You can modify the number of frames that display before a command begins by setting the latency value. Valid values are 0 or positive integers. A value of 0 starts the command's effect as soon as possible, but the command latency is always greater than 0. The minimum command latency is the sum of two values, as shown in the following:

minimum_command_latency = fixed_latency_value + 1

A small number for latency increases the risk that a frame may be missed (repeated) because of system load. A large number increases the latency in responding to transport commands such as play, stop, or pause.

Some commands in the Sony protocol imply a predefined frame delay; latency does not affect these commands.

For the MVCP TCP port, make sure that the control-in.conf file includes a control port configuration line:

mvcp tcp 5250

5250 is the standard MVCP control port number. The initial control-in.conf file installed with the VST software includes this line.

clips=path/*

This optional field specifies the directory under /usr/vtr/clips to contain the ingested content.

Signal Configuration Line

The signal configuration line specifies how to map signal port numbers to video port names. A signal configuration line is required for each video port for it to be controlled by an external device. For example, to specify that signal 1 corresponds to the video port known as MFCODEC_4, add the following line:

signal 1 MFCODEC_4

Example control-in.conf File

The following is a sample control-in.conf file:

# Control input configuration
#
# Control ports
#
#   Each control port is configured with a line of this form:
#
# <prot> <comm type> <comm port> <speed> <parity> <video> <rate>
#        <preroll> <var>
#
#     prot:         Protocol (louth, odetics, sony, mvcp)
#     comm type:    rs232, rs422 (on Origin only), tcp
#     comm port:    Serial port number (e.g., 1, 2), or TCP port number
#     speed:        Bits/sec (default=38400) (use - for TCP)
#     parity:       0=none, 1=odd, 2=even (default=odd) (use - for TCP)
#     signal port:  default signal port number (use -port for louth
#                   input port)
#     frame rate:   frames/sec (29.97, 25)
#     preroll:      command preroll (# frames)
#     var:          variable arguments, currently support name=string

# This defines the normal MVCP TCP control port

mvcp tcp 5250

# Other control ports
 
louth   rs232 1 38400 1 2 29.97 3
louth   rs232 2 38400 1 -2 29.97 3

sony    rs422 3 38400 1 1 29.97 3

louth   rs422 5 38400 1 3 29.97 3
louth   rs422 6 38400 1 -3 29.97 3

hsip    rs232 4 9600  0 1 29.97
#
# Signal ports
#
#   Each signal (video) port is mapped from a port number to port name
#   with a line of this form:
#
#   signal <port number> <port name>
#
#     port number:      Disk port number (> 0)
#     port name:        Video server port name (e.g., MFCODEC_3)

signal 1 MFCODEC_4
signal 2 MFCODEC_3
signal 3 MFCODEC_2
signal 4 MFCODEC_1

Configuring the SGI Media Server to Control Other Devices

To configure the SGI Media Server server so that it can control other VTR-like devices, use the /usr/vtr/config/control-out.conf file.

Use this file also to specify basic connection parameters between the SGI Media Server and the VTRs to be controlled. Connection parameters include such information as which serial port controls which VTR and how. For each VTR controlled by the SGI Media Server using the Sony protocol, add a line in the /usr/vtr/config/control-out.conf file that uses the following format:

protocol    connection    serial_port     speed    parity

The following line shows a sample configuration:

sony    rs422    4    38400    1

The line has the same meaning when p2 is substituted for sony.

The following sections describe each variable in this configuration line.

protocol

Use the value that corresponds to the device you are configuring to work with the server. The valid values of protocol are sony and p2, which are equivalent.

connection

The valid values of connection include the following:

rs232 

RS-232 control connection

rs422 

RS-422 control connection

These values must correspond with the type of connection between the video device and the SGI Media Server. The device and the SGI Media Server must agree on the serial connection; the cable between them must be appropriate for that connection.

serial_port

The serial_port value specifies the serial port as identified by a serial configuration line in the control-in.conf file that is controlled by this remote device connection.

Note that the RS-422 pinout at the DB-9 end of the SGI adapter cable is nonstandard. For more details, see “RS-232 and RS-422 Cabling” in Chapter 7.

speed

The speed value specifies the connection speed of the serial connection between the server and the controlling device, usually 38400. On rare occasions, 9600 is used. Sony devices must use 38400.

parity

The optional parity setting can have one of the following values:

0 

No parity

1 

Odd parity

2 

Even parity

The parity must be specified as odd for the currently supported protocols.

Configuring the VTR Daemon (vtrd)

The /usr/vtr/config/vtrd.conf file specifies information that controls the VTR daemon process ( vtrd). The daemon process is the parent for all instances of the vvtr child process, the process executing for video operations. For more information about the vtrd.conf file format, see the vtrd(1) man page.

Mapping Physical Ports to Logical Port Names

You can use the /usr/vtr/ports.conf file to create logical names for the physical video ports on the SGI Media Server. For each port, include a line in the configuration file with the following syntax:

port physicalname logicalname description 

For example:

port MFCODEC_0 POTUS "WHITEHOUSE OVAL OFFICE, POTUS"
port MFCODEC_1 MAINEB "1ST AND MAIN, Eastbound"
port MFCODEC_5 RJM "RIJKSMUSEUM"
port MFCODEC_6 MPEG2 “MPEG RECORDING, CAMERA 1”
port MFCODEC_7 DVC50 “DVCPRO50 RECORDING, CAMERA 2”

The description field must be enclosed by quotation marks if it contains spaces. The physical port name MFCODEC_n references the underlying hardware. One physical port name is assigned to each installed PCI-VIDAUD-MSB codec. The physical port name is fixed at the factory. The logical port name POTUS may be used for unit creation and other unit-specific operations, such as changing control values using the mcpanel or mcstat command.

Configuring for 625/50 Systems

You can configure the SGI Media Server to supports either 525/59.94 or 625/50 operation. A few operating characteristics default to 525/59.94, including the MVCP timing mode. Refer to the MVCP FRAT command documentation in the mvcp(5) man page.

To change the default timing, include the following control setting in the system defaults file /usr/vtr/config/system-defaults/main:


vtr.main.timing_standard 625 


Note: The system timing standard controls the default video output timing only if the control  vtr.media.video.output.timing is not changed from its default value of system. The vtr.media.video.output.timing control appears in the /usr/vtr/config/system-defaults/MFCODEC_n files.


Tuning the SGI Media Server (Setting the Maximum DMA Size)

The maximum direct memory access (DMA) size limits the maximum amount of data that can be transferred to or from the filesystem in a single operation. The default maximum DMA size is 4 MB, which is too small for most installations. To increase the system's maximum DMA size, use the following procedure:

  1. As superuser, start systune to change the DMA size:

    # systune -i 
    Updates will be made to running system and /unix.install
    systune-> 
    

  2. Enter the new DMA size:

    systune-> maxdmasz bytes 
    

    The following example shows a specification of 641 pages, which translates to approximately 10 MB (641 * 16K):

    systune-> maxdmasz 641 
    maxdmasz = 257 (0x101)
    Do you really want to change maxdmasz to 640? (y/n)
    

  3. Enter y for yes.

    The system responds as follows:

    In order for the change in parameter maxdmasz to become effective, reboot the system
    

  4. Quit systune:

    systune-> quit
    

  5. Reboot the server:

    # reboot