Clips are segments of audio and video media. Managing clips involves adding and removing them from VCP-Recorder.
Managing clips is discussed in the following sections:
VCP-Recorder uses two different formats and two types of media.
VCP-Recorder uses two different formats for storing digital media on its clip cache file system(s):
The vframe (short for variable-size frame) format is specific to VCP-Recorder. The video and audio data for each frame is stored contiguously in the media file. A separate index file contains header information which describes the encoding parameters of the video and audio data, and a frame map which stores the offsets of the video and audio data for each frame within the media file.
The vframe format is used for recording and playback of intraframe media, including uncompressed video as well as Rice-coded and JPEG-compressed video.
The vtrvfutil command-line utility provides various analysis and update functions for the vframe format. See the vtrvfutil man page for further information.
Adding clips is a two step process:
There are two types of files systems:
Non-real time.
Real time.
To guarantee real time I/O rates, you must use a real time file system.
Only real time file systems guarantee real time I/O rates.
A real time file system is often defined as a subvolume in an XFS file system where media is stored. The location of the subvolume is often xls/xlv/. Data is read normally from a real-time file system, but the standard utilities, such as ftp and cp, can not be used to write the media data.
In single-disk systems, media files are aligned only with the file system's block size so that only one I/O operation is needed to access the data.
In multi-disk, RAID, striped systems, the media files must also be aligned with the stripes.
When VCP-Recorder is used to record media, it automatically places the media data in the correct, aligned locations on the disk.
When media data is transferred to VCP-Recorder it often must be aligned with the disk's blocks and stripes. Whether or not media data must be aligned on your disks depends on the media type of the media file:
Intraframe media data requires alignment.
Interframe media data does not require alignment.
The media data (video and audio for each frame) for an intraframe media clip must be aligned on natural file system and disk drive boundaries to enable efficient read and write access to the clip.
Frame-oriented media data in an intraframe clip is aligned along two boundaries:
A single element of a frame (a video field or audio chunk) never crosses a minor or major alignment boundary. VCP-Recorder will not do a read or write operation to the clip media file which crosses a major alignment boundary.
The minor alignment matches the greater of the file system block size, or the system memory page size. On O2, the minor alignment is usually 4KB, unless a larger file system block size was used to construct an XFS file system. On Origin, the minor alignment is usually 16KB, unless a larger file system block size was used.
The major alignment matches the stripe size of the disk volume which holds the clip cache file system.
If the clip cache resides on a single disk, no major alignment is required.
If the clip cache resides on a single RAID subsystem, major alignment is required for efficient I/O access to the media data. Either make a real-time file system on the RAID and set the real-time extent size of the XFS file system to the desired I/O operation size, or add a configuration line to /usr/vtr/config/vtrfsinfo.conf.
![]() | Note: vtrfsinfo.conf is not created by VCP-Recorder so you first must create the file. |
If the clip cache resides on a striped XLV volume, the major alignment matches the stripe size of the XLV volume.
A vframe clip is automatically aligned if you use vtrvfutil to copy the clip, as follows:
% vtrvfutil OriginalClipName NewClipName |
vtrufutil automatically stores the media files in /usr/vtr/clips/.
To copy a vframe clip from outside the clip cache, use the following syntax:
% vtrvfutil -i file=<media file>,index=<index file> - NewClipName |
vtrufutil can also be used to realign a clip in-place, as follows:
% vtrvfutil -c realign ClipName |
See the vtrufutil man page for a complete list of the options.
There are two ways of removing clips from VCP-Recorder.
For more information about using the VCP-Recorder Control panel to remove a clip, see the VCP-Recorder User's Guide.
You can use the vtrvfutil command to add Quicktime formatting information to a clip using the following command:
# vtrvfutil -c makeqt clipName |
clipName is the name of the clip file.
vtrvfutil makes the clip readable by SGI digital media tools, such as dminfo, dmconvert, and mediaplayer, or third-party tools that use the SGI Movie Library.