Sun MediaCenter Server Administrator’s Guide
Release
A Sun Microsystems, Inc. Business 901 San Antonio Road
Palo Alto, CA 94303 USA 415 960-1300 fax 415
1997 Sun Microsystems, Inc. All rights reserved
2. Preparing and Loading Content
Contents
1. Introduction
iv Sun MediaCenter Server Administrator’s Guide December
4. Moving Content
3. Monitoring the Server
5. Sun MediaCenter Server Utilities
6. Sun MediaCenter Server FTP Daemon
8.2.1 mfs df 8.2.2 mfs diskusg 8.2.3 mfs repair 8.2.4 mkmfs
vi Sun MediaCenter Server Administrator’s Guide December
9. Access Control Lists
10. Troubleshooting
A. Setting up the SNMP Agent
B. Creating a Content Package B-1
viii Sun MediaCenter Server Administrator’s Guide December
Glossary Glossary-1 Index Index-1
Preface
Who Should Use This Book
How This Book Is Organized
The Sun MediaCenter Documentation Suite
x Sun MediaCenter Server Administrator’s Guide December
What Typographic Changes Mean
TABLE P-1 Typographic Conventions
Shell Prompts in Command Examples
xii Sun MediaCenter Server Administrator’s Guide December
TABLE P-2 Shell Prompts
Shell
Introduction
1.1 Introduction
1.2 Sun MediaCenter Hardware
Control Content From tape, network-accessible file, or live source
Sun MediaCenter Server
Fast Ethernet or ATM Fast/Wide or Ultra SCSI
Media File System Files
1.3 Sun MediaCenter Software
FIGURE 1-2 Sun MediaCenter Software Architecture
Guaranteed stream delivery rate
Recovery from single-disk failures
1.3.1 Media File System MFS
Independent streams
High-resolution rate control
Random access
Hot swappability
Efficient use of disk bandwidth
1.3.2 Media Stream Manager
Media File System Layout Manager Scheduler Bit Pump Buffers
Disk Driver
Output Driver
1.3.3 Content Manager
1.4 Video Output Interfaces
1.3.4 Web-based Tools
MediaCenter Server Programmer’s Guide
1.4.2 LAN
1.4.1 ATM
FIGURE 1-4 Sun MediaCenter Servers in ATM Environment
1.5 Content Preparation and Loading
FIGURE 1-5 Sun MediaCenter Servers in LAN environment
1.6 Server Management
1.7 Push Model
1.8 Design Benefits
1-12 Sun MediaCenter Server Administrator’s Guide December
Preparing and Loading Content
2.1 General MPEG Encoding Requirements
2.2 MPEG Encoding Requirements for Trick Play
2.3 Splice Points
2.3.1 Packet Boundary
2.3.3 payloadunitstartindicator
2.3.5 randomaccessindicator
2.3.2 closedgop
2.3.4 adaptationfieldcontrol
2.4 Content Loading
To copy to or extract from a tape device, use smctar
2.5 References
2-8 Sun MediaCenter Server Administrator’s Guide December
Monitoring the Server
3.1 Overview
3.2 Using the WebAdmin Tool
3.2.1 Invoking the Tool
FIGURE 3-1 Sun MediaCenter Page
Chapter 3 Monitoring the Server
Once the applet loads, the Resource Utilization page is displayed
3-4 Sun MediaCenter Server Administrator’s Guide December
FIGURE 3-2 Resource Utilization Page
3.3 Resource Utilization
3.2.2 Common Page Elements
3.4 Streaming Videos
Troubleshooting
Videos being copied
Disk Capacity
FIGURE 3-3 Streaming Videos Page
3-8 Sun MediaCenter Server Administrator’s Guide December
the title being viewed
speed Fast-Forward, Slow Motion, Stopped, Playing, Reverse
FIGURE 3-4 Streaming Videos Page with Stream Detail
3.5 Copy Sessions
title of the content being transferred
FIGURE 3-6 Session Information Page
The Session Information page is shown below
Chapter 3 Monitoring the Server
3.6 Disk Capacity
FIGURE 3-7 Disk Capacity Page
The Disk Info page is shown below
3.7 Troubleshooting
The bottom portion of the page shows any late events or disk errors
The Troubleshooting page is shown below
Chapter 3 Monitoring the Server
The Troubleshooting page contains the following links
3.7.1 Disk Health
This page shows the status of disks in the MFS
The Disk Health page is shown below
Chapter 3 Monitoring the Server
3.7.2 Console Log
FIGURE 3-11 Console Log Page
Chapter 3 Monitoring the Server
3-20 Sun MediaCenter Server Administrator’s Guide December
3.7.3 Scheduler and Bitpump
The Bitpump page is shown below
TABLE 3-1 describes the fields in this page
TABLE 3-1 Scheduler and Bitpump Statistics
TABLE 3-1 Scheduler and Bitpump Statistics Continued
bitPump
bitPumpStreams
Current number of bit pump streams
bitPumpBandwidth
3-24 Sun MediaCenter Server Administrator’s Guide December
Moving Content
4.1 Overview
4.2 Using CmTool
4.2.1 Invoking the Tool
Chapter 4 Moving Content
FIGURE 4-1 Sun MediaCenter Page
FIGURE 4-2 Table of Contents Page
4-4 Sun MediaCenter Server Administrator’s Guide December
4.3 Loading Content
4.2.2 Common Page Elements
FIGURE 4-3 Server Login Page
Upon successful login, the Load Content page is displayed
4-6 Sun MediaCenter Server Administrator’s Guide December
FIGURE 4-4 Load Content Page
FIGURE 4-5 Content on Remote System
4-8 Sun MediaCenter Server Administrator’s Guide December
Chapter 4 Moving Content
FIGURE 4-6 Specifying a Local Title
4-10 Sun MediaCenter Server Administrator’s Guide December
FIGURE 4-7 Copy Confirmation
FIGURE 4-8 Session Information
FIGURE 4-9 Table of Contents Page
4.4 Table of Contents Page
4-12 Sun MediaCenter Server Administrator’s Guide December
4.4.1 View Menu
FIGURE 4-10 Display Attributes Dialog Box
FIGURE 4-11 Sort Dialog Box
4-14 Sun MediaCenter Server Administrator’s Guide December
FIGURE 4-12 Filter Dialog Box
4.4.2 Selected Menu
FIGURE 4-13 Title Information Page
4-16 Sun MediaCenter Server Administrator’s Guide December
5.1 Setting a Title Access Control List
Sun MediaCenter Server Utilities
To extend access for a title that you own, use the smcsettacl command
where username is a Solaris login name
title
5.2 The smccopy Utility
hostnametitle
filename
hostnamefilename
r rate
s speed
t type
The following are examples of smccopy use
The following command copies a file between two local filesystems
5.3.1 Syntax and Options
5.3 The smctar Utility
b blknum
5.3.2 Content Loading
5.3.3 Copying Content
FIGURE 5-1 Loading Content with smctar
Sun MediaCenter MFS
Title
tar Device or File
Optional Sun MediaCenter Title MFS
5.3.4 Remote Copying and Extraction
5.3.5 Examples
server# tar cf - your title.TOC your content.mpg smctar xf
remotehost# tar cf - your title.TOC your content.mpg smctar xf \
server# smctar xf /dev/rmt/0 smcserverbambi
remotehost# smctar cf /dev/rmt/0 smcserverbambi
An alternative to the preceding commands is
#!/bin/sh # smcbackup Script to archive multiple SMC titles to tape
5-16 Sun MediaCenter Server Administrator’s Guide December
5.4 The smcls Utility
Display the format of this title
Display the time the title was last modified
client% smcls -lt
5-20 Sun MediaCenter Server Administrator’s Guide December
smcls my-server”a-z*”
smcls -lrtB
5.5 The smcrm Utility
server% smcrm SUNWbambi SGIquovadis
5-22 Sun MediaCenter Server Administrator’s Guide December
Sun MediaCenter Server FTP Daemon
6-2 Sun MediaCenter Server Administrator’s Guide December
FIGURE 6-1 Sun MediaCenter FTP Functions
Standard
Daemon
6.1 Keyword for Video-File Functions
6.2 Video-File Attributes
6.3 Video-File Commands
delete dir get ls mget mls mput put rename
ftp dir smctitle=\
6-6 Sun MediaCenter Server Administrator’s Guide December
ftp dir smctitle=Bat\
list continues to conclusion
6.3.1 Listing Files
list continues to conclusion
6-8 Sun MediaCenter Server Administrator’s Guide December
6.3.2 Moving Files
6.3.2.1 Moving Single Titles
Directions of put/ get Commands
Page
6.3.2.2 Moving Multiple Titles
6.3.3 Renaming Files
6.4 Loading Content with ftp
6.3.4 Deleting Files
331 Password required for clinton. Password
encodingmachine% ftp smcserverone Connected to smcserverone
230 User clinton logged in. ftp lcd /home/encode ftp bin
200 Type set to
6-16 Sun MediaCenter Server Administrator’s Guide December
Server Output Data Format
7.1 Introduction
Content
7.2 ATM Encapsulation
7.2.1 MPEG-2 Transport Stream Packet Encapsulation
Sun MediaCenter Server
7.2.2 MPEG-2 Program Stream Packet Encapsulation
7.2.3 MPEG-1 System Stream Packet Encapsulation
7.2.4 Thomson Electronics Packet Encapsulation
7.2.5 MPEG-2 Encapsulation over Classical IP over AAL5
7.3.1 MPEG over AAL5
7.3 ATM Addressing
7.3.2 MPEG-2 over Classical IP over AAL5
7.4 Fast Ethernet Encapsulation
host=IP hostname,udpport=UDPport num
7.4.1 MPEG-2 Transport Stream Packet Encapsulation
FIGURE 7-2 LAN/Enterprise Scenario
7.5 Fast Ethernet Addressing
7.4.2 MPEG-2 Program Stream Packet Encapsulation
7.4.3 MPEG-1 System Stream Packet Encapsulation
7.4.4 Thomson Electronics Encapsulation
7.6 Specifying Encapsulation
TABLE 7-1 Value of encap Field in MsmConnect
7.7 Differences Among Different Types of Links
7.8 References
7-10 Sun MediaCenter Server Administrator’s Guide December
Administering MFS Disks
8.1 Monitoring MFS Disks
8.2 MFS Utilities
8.2.1 mfs df
mfs df usage is as follows
8.2.2 mfs diskusg
8.2.3 mfs repair
d device
mfs repair usage is as follows
To find out which MFS disk has failed, you enter
8.2.4 mkmfs
Drive name /dev/rdsk/c1t1d0s2 Drive name /dev/rdsk/c1t2d0s2
8.3 Replacing a Failed Disk
8-10 Sun MediaCenter Server Administrator’s Guide December
server# mfs repair -p -d /dev/rdsk/c1t4d0s2
server# mfs repair -r -d /dev/rdsk/c1t4d0s2
server# mfs repair -rp -d /dev/rdsk/c1t4d0s2
Note -Two overlapping disk failures result in a system panic
Access Control Lists
9.1 ACL Files
9.2 Permissions
9.3 Server ACL
userpermission
nobodypermission
9.4 Player ACL
9.5 Title ACL
9.6 Session ACL
A session ACL has a single type of permission
9-6 Sun MediaCenter Server Administrator’s Guide December
10.1 Symptoms and Possible Solutions/ Workarounds
Troubleshooting
Server watchdog resets on start of video stream playback
No video displays on client
Underperforming stream output
10-2 Sun MediaCenter Server Administrator’s Guide December
Poor video quality
Corrupt disk labels
Kernel panic with SAHI queue threshold messages
Disk failure
10.2.1 Server Console Messages
10.2 Error Messages
Unable to create title on the MFS
10.2.2 MFS Error Messages
WARNING stream id 107 ba@426,3,80@ xmit error Q size
NOTICE ba0 qsize OK
NOTICE ba3 qsize 9 above hiwat
10-6 Sun MediaCenter Server Administrator’s Guide December
Setting up the SNMP Agent
A.1 The Sun MediaCenter Server MIB
TABLE A-1 Sun MediaCenter Server MIB Definitions
Appendix A Setting up the SNMP Agent A-3
diskError
diskErrorTable
bitPump
A-4 Sun MediaCenter Server Administrator’s Guide December
diskTable
failure
online
Appendix A Setting up the SNMP Agent A-5
sysZonesPerDisk
sysTimePeriodLength
sysNumberOfBuffers
A.2 Enabling Management by Solstice Domain Manager
1. Become root
5. Run $SNMHOME/bin/mib2schema smsvod.mib
This command creates smsvod.mib.schema and smsvod.mib.oid
4. Copy smsvod.mib to $SNMHOME/agents
Under “instance elementCommand”
6. Run buildoid with no arguments
A.3 Enabling Trap Handling
The Sun MediaCenter software ensures delivery of media streams at the same rate at which they were recorded. The bit pump’s missing of a deadline indicates that the machine was, at least momentarily, unable to keep up with the rate of a title. This indicates a resource conflict on the server
Creating a Content Package
B.1 Content Package
B.2 The TOC File
A TOC file is described with the following structures
B.2.1 ContentObjects
B.2.1.1 title
B.2.1.2 version
B.2.1.3 format
B.2.2 BitStreamObjects
B.2.1.4 description
B.2.2.1 description
B.2.2.2 speed
B.2.3 DataFileObjects
B.2.2.3 bitrate
B.2.2.4 indexfile
B.2.2.5 indexsize
B.2.3.2 filepath
B.3 Simplest Case TOC File
B.2.3.3 filesize
B.4 TOC File for Large Files
title
version
format
B.5 Index File Requirements
B.5.1 Normal Play Time
B.5.2 File Offset
B.6 Tape Storage Format
B.6.1 Tar Format
Appendix B Creating a Content Package B-13
FIGURE B-2 Tape Storage Format
B.7 Example
B.6.2 Tapes
CODE EXAMPLE B-1 Example Content Package
Appendix B Creating a Content Package B-15
B-16 Sun MediaCenter Server Administrator’s Guide December
For a file bambi.1x index file for normal-speed play
B.8 References
Appendix B Creating a Content Package B-19
B-20 Sun MediaCenter Server Administrator’s Guide December
Glossary
Glossary-1
Media Stream Manager
Table of Contents
Glossary-3
Glossary-4 Sun MediaCenter Server Administrator’s Guide December
Index
Page
Page
Page
Page
Index-6 Sun MediaCenter Server Administrator’s Guide December