|
@@ -0,0 +1,144 @@
|
|
1
|
+.TH VIDEOHUBCTRL "1" "November 2014" "videohubctrl" "User Commands"
|
|
2
|
+.SH NAME
|
|
3
|
+videohubctrl - Blackmagic Design Videohub SDI router control
|
|
4
|
+.SH SYNOPSIS
|
|
5
|
+.B videohubctrl --host <host> \fI..other options..\fR
|
|
6
|
+.SH DESCRIPTION
|
|
7
|
+videohubctrl implements the simple text based network protocol for
|
|
8
|
+controlling Blackmagic Design Videohub SDI router devices. The
|
|
9
|
+program is tested with Blackmagic Design Micro Videohub 16x16
|
|
10
|
+router and probably will work with other Videohub models.
|
|
11
|
+
|
|
12
|
+videohubctrl currently displays and can configure:
|
|
13
|
+ - Video input port names
|
|
14
|
+ - Video output port names
|
|
15
|
+ - Video output routing
|
|
16
|
+ - Video output locking
|
|
17
|
+.SH MAIN OPTIONS
|
|
18
|
+.PP
|
|
19
|
+.TP
|
|
20
|
+\fB\-h\fR, \fB\-\-host\fR <host>
|
|
21
|
+Set the device host name. It can be an IP address or host name. You
|
|
22
|
+can set \fBVIDEOHUB_HOST\fR environment variable instead of using
|
|
23
|
+this option.
|
|
24
|
+.TP
|
|
25
|
+\fB\-p\fR, \fB\-\-port\fR <port>
|
|
26
|
+Set the device port. You can set \fBVIDEOHUB_PORT\fR environment
|
|
27
|
+variable instead of using this option. The default port is \fB9990\fR.
|
|
28
|
+.SH COMMANDS
|
|
29
|
+.PP
|
|
30
|
+.TP
|
|
31
|
+\fB\-i\fR, \fB\-\-info\fR
|
|
32
|
+Show full device info. This is the default command if none is set.
|
|
33
|
+The command shows the equivalent of running all \-\-list-XXX commands.
|
|
34
|
+.TP
|
|
35
|
+\fB\-m\fR, \fB\-\-monitor\fR
|
|
36
|
+Display the Videohub configuration and updates it in real-time as it
|
|
37
|
+is changed. The monitor shows config changes immediately as they happen.
|
|
38
|
+The device is not being polled, instead the videohub protocol is designed
|
|
39
|
+in such way that every client receives changes on the fly.
|
|
40
|
+.TP
|
|
41
|
+\fB\-b\fR, \fB\-\-backup\fR
|
|
42
|
+Show the command line that will restore the device to it's configuration.
|
|
43
|
+.TP
|
|
44
|
+\fB\-\-list\-device\fR
|
|
45
|
+Display main device info including model, number of ports, etc.
|
|
46
|
+.TP
|
|
47
|
+\fB\-\-list\-vinputs\fR
|
|
48
|
+Display device video inputs and their names.
|
|
49
|
+.TP
|
|
50
|
+\fB\-\-list\-voutputs\fR
|
|
51
|
+Display device video outputs, their names, locking status and which
|
|
52
|
+input is routed to a given output. There are two locking statuses:
|
|
53
|
+ L - The port is locked by another IP address (user)
|
|
54
|
+ O - The port is locked by me (from my IP address)
|
|
55
|
+.SH VIDEO INPUT/OUTPUT CONFIGURATION
|
|
56
|
+.PP
|
|
57
|
+Everywhere where port number is accepted, you can use the port
|
|
58
|
+number or the port name.
|
|
59
|
+.TP
|
|
60
|
+\fB\-\-vi\-name\fR <in_X> <name>
|
|
61
|
+Set video input port X name.
|
|
62
|
+.TP
|
|
63
|
+\fB\-\-vo\-name\fR <out_X> <name>
|
|
64
|
+Set video output port X name.
|
|
65
|
+.TP
|
|
66
|
+\fB\-\-vo\-route\fR <out_X> <in_Y>
|
|
67
|
+Connect video output X to video input Y.
|
|
68
|
+.TP
|
|
69
|
+\fB\-\-vo\-lock\fR <out_X>
|
|
70
|
+Lock output port X.
|
|
71
|
+.TP
|
|
72
|
+\fB\-\-vo\-unlock\fR <out_X>
|
|
73
|
+Unlock output port X. If the port is locked by somebody else the
|
|
74
|
+port would be forcefully unlocked.
|
|
75
|
+.SH MISC OPTIONS
|
|
76
|
+.PP
|
|
77
|
+.TP
|
|
78
|
+\fB\-d\fR, \fB\-\-debug\fR
|
|
79
|
+Enable debugging output. Use this option more times to increase
|
|
80
|
+the verbosity.
|
|
81
|
+.TP
|
|
82
|
+\fB\-q\fR, \fB\-\-quiet\fR
|
|
83
|
+Suppress warnings about unsupported commands.
|
|
84
|
+.TP
|
|
85
|
+\fB\-V\fR, \fB\-\-version\fR
|
|
86
|
+Show program name and version.
|
|
87
|
+.TP
|
|
88
|
+\fB\-H\fR, \fB\-\-help\fR
|
|
89
|
+Show program usage text.
|
|
90
|
+.SH ENVIRONMENT VARIABLES
|
|
91
|
+.PP
|
|
92
|
+.TP
|
|
93
|
+\fBVIDEOHUB_HOST\fR
|
|
94
|
+Set the device host name.
|
|
95
|
+.TP
|
|
96
|
+\fBVIDEOHUB_PORT\fR
|
|
97
|
+Set the device port.
|
|
98
|
+.SH EXAMPLES
|
|
99
|
+.PP
|
|
100
|
+To get a quick start here are some example command lines.
|
|
101
|
+
|
|
102
|
+.nf
|
|
103
|
+ # Rename video output
|
|
104
|
+ videohubctrl -h sdi --vo-name 8 "Output 8 - test"
|
|
105
|
+ videohubctrl -h sdi --vo-name "Output 8 - test" "Output 8"
|
|
106
|
+
|
|
107
|
+ # Rename video input
|
|
108
|
+ videohubctrl -h sdi --vi-name 4 "Windows 4 HD"
|
|
109
|
+ videohubctrl -h sdi --vi-name "Windows 4 HD" "CPlay4"
|
|
110
|
+
|
|
111
|
+ # Lock and then unlock output 16 (unlock assumes that the port is
|
|
112
|
+ # named Output 16). The host name is set via env variable.
|
|
113
|
+ export VIDEOHUB_HOST=sdi
|
|
114
|
+ videohubctrl --vo-lock 16
|
|
115
|
+ videohubctrl --vo-unlock "Output 16"
|
|
116
|
+
|
|
117
|
+ # Set two outputs to receive from the same input using port names
|
|
118
|
+ videohubctrl -h sdi --vo-route "Output 8" "Windows 4 HD"
|
|
119
|
+ videohubctrl -h sdi --vo-route "Output 7" "Windows 4 HD"
|
|
120
|
+
|
|
121
|
+ # Run several commands at once
|
|
122
|
+ # Rename video input 11 and 12
|
|
123
|
+ # Rename video output 5,
|
|
124
|
+ # Set output 5 to receive from input 12
|
|
125
|
+ # Lock output 5
|
|
126
|
+ videohubctrl --host sdi \\
|
|
127
|
+ --vi-name 11 "Test input" \\
|
|
128
|
+ --vi-name 12 "Playout input" \\
|
|
129
|
+ --vo-name 5 "Encoder h264" \\
|
|
130
|
+ --vo-route 5 12 \\
|
|
131
|
+ --vo-lock 5
|
|
132
|
+.fi
|
|
133
|
+.SH SEE ALSO
|
|
134
|
+See the README file for more information. If you have questions,
|
|
135
|
+remarks, problems or you just want to contact the developer, write
|
|
136
|
+to:
|
|
137
|
+ \fIgeorgi@unixsol.org\fP
|
|
138
|
+.TP
|
|
139
|
+For more info, see the website at
|
|
140
|
+.I http://georgi.unixsol.org/programs/videohubctrl/
|
|
141
|
+.SH AUTHORS
|
|
142
|
+Written by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
|
|
143
|
+.SH LICENSE
|
|
144
|
+videohubctrl is released under MIT license.
|