videohubctrl can be used to control Blackmagic Design Videohub SDI router device over the network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

videohubctrl.1 9.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  1. .TH VIDEOHUBCTRL "1" "October 2020" "videohubctrl 3.1" "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 and
  10. probably works with other Videohub models.
  11. videohubctrl currently displays and can configure:
  12. - Video input port names
  13. - Video output port names, routing and locking
  14. - Input/Output port statuses
  15. - Monitoring video output port names, routing and locking
  16. - Serial ports names, routing, locking and directions
  17. - Processing units
  18. - Frames
  19. - Alarms status
  20. .SH MAIN OPTIONS
  21. .PP
  22. .TP
  23. \fB\-h\fR, \fB\-\-host\fR <host>
  24. Set the device host name. It can be an IP address or host name. You
  25. can set \fBVIDEOHUB_HOST\fR environment variable instead of using
  26. this option.
  27. .TP
  28. \fB\-p\fR, \fB\-\-port\fR <port>
  29. Set the device port. You can set \fBVIDEOHUB_PORT\fR environment
  30. variable instead of using this option. The default port is \fB9990\fR.
  31. .TP
  32. \fB\-t\fR, \fB\-\-timeout <seconds>\fR
  33. Set the timeout in seconds for connect and read. The default is 15 seconds,
  34. min vlue is 1 and max value is 60
  35. .SH COMMANDS
  36. .PP
  37. .TP
  38. \fB\-i\fR, \fB\-\-info\fR
  39. Show full device info. This is the default command if none is set.
  40. The command shows the equivalent of running all \-\-list-XXX commands.
  41. .TP
  42. \fB\-m\fR, \fB\-\-monitor\fR
  43. Display the Videohub configuration and updates it in real-time as it
  44. is changed. The monitor shows config changes immediately as they happen.
  45. The device is not being polled, instead the videohub protocol is designed
  46. in such way that every client receives changes on the fly.
  47. .TP
  48. \fB\-b\fR, \fB\-\-backup\fR
  49. Show the command line that will restore the device to it's configuration.
  50. .TP
  51. \fB\-\-list\-device\fR
  52. Display main device info including model, number of ports, etc.
  53. .TP
  54. \fB\-\-list\-vinputs\fR
  55. Display device video inputs. Port numbers, names, how many outputs an
  56. input is being routed to, the list of the outputs and the port status
  57. (type).
  58. The port statuses (type) are reported by Universal Videohub and can be
  59. these:
  60. .nf
  61. - Empty means that the device do not support port status.
  62. x - The port type is "None". This means that the port is not
  63. installed in the device.
  64. B - The port type is "BNC".
  65. o - The port type is "Optical".
  66. T - The port type is "Thunderbolt".
  67. .fi
  68. .TP
  69. \fB\-\-list\-voutputs\fR
  70. Display device video outputs. Port numbers, names, locking status, which
  71. input is routed to a given output and the port status (type).
  72. There are two locking statuses:
  73. .nf
  74. L - The port is locked by another IP address (user)
  75. O - The port is locked by me (from my IP address)
  76. .fi
  77. The port status field (s) have the same format as input ports (described
  78. in \fB\-\-list\-vinputs\fR option).
  79. .TP
  80. \fB\-\-list\-moutputs\fR
  81. Display device monitoring outputs. Port numbers, names, locking status and
  82. which input is routed to a given output. The locking statuses are the
  83. same as video input and output ports.
  84. .TP
  85. \fB\-\-list\-serial\fR
  86. Display device serial ports. Port numbers, names, locking status, directions
  87. and how serial ports are routed. The locking statuses are the same as video
  88. input, output ports and monitoring ports.
  89. .TP
  90. \fB\-\-list\-proc-units\fR
  91. Display device procesing units. Unit numbers, locking status and connected
  92. video inputs.
  93. .TP
  94. \fB\-\-list\-frames\fR
  95. Display stored frame buffers.
  96. .TP
  97. \fB\-\-list\-alarms\fR
  98. Display current alarms status.
  99. .TP
  100. \fB\-\-set\-name\fR <name>
  101. Set the device "friendly name". This name can be used as a device identifier.
  102. Only some Videohub models support this functionality.
  103. .SH CONFIGURATION COMMANDS
  104. .PP
  105. Everywhere where port needs to be set, you can use the port number or the
  106. port name. You can use only port names that were already configured in
  107. previous session. Trying to set a name and then reference it in the next
  108. command will fail. Using port numbers always works.
  109. .SH INPUTS CONFIGURATION
  110. .PP
  111. .TP
  112. \fB\-\-in\-name\fR <in_X> <name>
  113. Set video input port X name.
  114. .TP
  115. \fB\-\-in\-output\fR <in_X> <out_Y>
  116. Set video input X to be outputted via output Y.
  117. .TP
  118. \fB\-\-in\-monitor\fR <in_X> <mout_Y>
  119. Set video input X to be outputted via monitoring port Y.
  120. .SH OUTPUTS CONFIGURATION
  121. .PP
  122. .TP
  123. \fB\-\-out\-name\fR <out_X> <name>
  124. Set video output port X name.
  125. .TP
  126. \fB\-\-out\-input\fR <out_X> <in_Y>
  127. Connect video output X to video input Y.
  128. .TP
  129. \fB\-\-out\-lock\fR <out_X>
  130. Lock output port X.
  131. .TP
  132. \fB\-\-out\-unlock\fR <out_X>
  133. Unlock output port X. If the port is locked by somebody else the
  134. port would be forcefully unlocked.
  135. .SH MONITORING OUTPUTS CONFIGURATION
  136. .PP
  137. .TP
  138. \fB\-\-mon\-name\fR <mout_X> <name>
  139. Set monitoring output port X name.
  140. .TP
  141. \fB\-\-mon\-input\fR <mout_X> <in_Y>
  142. Connect monitoring output X to video input Y.
  143. .TP
  144. \fB\-\-mon\-lock\fR <mout_X>
  145. Lock monitoring output port X.
  146. .TP
  147. \fB\-\-mon\-unlock\fR <mout_X>
  148. Unlock monitoring output port X. If the port is locked by somebody
  149. else the port would be forcefully unlocked.
  150. .SH SERIAL PORTS CONFIGURATION
  151. .PP
  152. .TP
  153. \fB\-\-ser\-name\fR <ser_X> <name>
  154. Set serial port X name.
  155. .TP
  156. \fB\-\-ser\-connect\fR <ser_X> <ser_Y>
  157. Connect serial port X to serial port Y. This option have two aliases \fB\-\-ser\-input\fR
  158. and \fB\-\-ser\-route\fR.
  159. .TP
  160. \fB\-\-ser\-clear\fR <ser_X>
  161. Disconnect serial port X from the connected serial port.
  162. .TP
  163. \fB\-\-ser\-lock\fR <ser_X>
  164. Lock serial port X.
  165. .TP
  166. \fB\-\-ser\-unlock\fR <ser_X>
  167. Unlock serial port X. If the port is locked by somebody else the
  168. port would be forcefully unlocked.
  169. .TP
  170. \fB\-\-ser\-dir\fR <ser_X> <in|out|auto>
  171. Set serial port X direction. There are three possible settings for
  172. each port:
  173. \fBin\fR - input/control/Workstation
  174. \fBout\fR - output/slave/Deck
  175. \fBauto\fR - Automatic in/out
  176. .SH PROCESSING UNITS CONFIGURATION
  177. .PP
  178. .TP
  179. \fB\-\-pu\-input\fR <pu_X> <in_Y>
  180. Connect processing unit X to video input port Y.
  181. .TP
  182. \fB\-\-pu\-clear\fR <pu_X>
  183. Disconnect processing unit X from the connected input port.
  184. .TP
  185. \fB\-\-pu\-lock\fR <pu_X>
  186. Lock processing unit port X.
  187. .TP
  188. \fB\-\-pu\-unlock\fR <pu_X>
  189. Unlock processing unit port X. If the processing unit is locked by somebody
  190. else the port would be forcefully unlocked.
  191. .SH FRAMES CONFIGURATION
  192. .PP
  193. .TP
  194. \fB\-\-fr\-name\fR <fr_X> <name>
  195. Set frame X name.
  196. .TP
  197. \fB\-\-fr\-output\fR <fr_X> <out_Y>
  198. Output frame X to video output port Y.
  199. .TP
  200. \fB\-\-fr\-clear\fR <fr_X>
  201. Disconnect frame X from the connected output port.
  202. .TP
  203. \fB\-\-fr\-lock\fR <fr_X>
  204. Lock frame X.
  205. .TP
  206. \fB\-\-fr\-unlock\fR <fr_X>
  207. Unlock frame X. If the frame is locked by somebody else the port would be
  208. forcefully unlocked.
  209. .SH MISC OPTIONS
  210. .PP
  211. .TP
  212. \fB\-T\fR, \fB\-\-test\fR <file>
  213. Read commands from the <file> instead of connecting to a real
  214. device. This allows testing the program without having access
  215. to a device.
  216. .TP
  217. \fB\-d\fR, \fB\-\-debug\fR
  218. Enable debugging output. Use this option more times to increase
  219. the verbosity.
  220. .TP
  221. \fB\-q\fR, \fB\-\-quiet\fR
  222. Suppress warnings about unsupported commands.
  223. .TP
  224. \fB\-V\fR, \fB\-\-version\fR
  225. Show program name and version.
  226. .TP
  227. \fB\-H\fR, \fB\-\-help\fR
  228. Show program usage text.
  229. .SH ENVIRONMENT VARIABLES
  230. .PP
  231. .TP
  232. \fBVIDEOHUB_HOST\fR
  233. Set the device host name.
  234. .TP
  235. \fBVIDEOHUB_PORT\fR
  236. Set the device port.
  237. .SH EXAMPLES
  238. .PP
  239. To get a quick start here are some example command lines.
  240. .nf
  241. # Rename video output
  242. videohubctrl -h sdi --out-name 8 "Output 8 - test"
  243. videohubctrl -h sdi --out-name "Output 8 - test" "Output 8"
  244. # Rename video input
  245. videohubctrl -h sdi --in-name 4 "Windows 4 HD"
  246. videohubctrl -h sdi --in-name "Windows 4 HD" "CPlay4"
  247. # Lock and then unlock output 16 (unlock assumes that the port is
  248. # named Output 16). The host name is set via env variable.
  249. export VIDEOHUB_HOST=sdi
  250. videohubctrl --out-lock 16
  251. videohubctrl --out-unlock "Output 16"
  252. # Set two outputs to receive from the same input using port names
  253. videohubctrl -h sdi --out-input "Output 8" "Windows 4 HD"
  254. videohubctrl -h sdi --out-input "Output 7" "Windows 4 HD"
  255. # Set one input to go out two outputs and two monitoring ports
  256. videohubctrl -h sdi --in-output "Windows 4 HD" "Output 8" \\
  257. --in-output "Windows 4 HD" "Output 7" \\
  258. --in-monitor "Windows 4 HD" "Monitor 1" \\
  259. --in-monitor "Windows 4 HD" "Monitor 2"
  260. # Run several commands at once
  261. # Rename video input 11 and 12
  262. # Rename video output 5,
  263. # Set output 5 to receive from input 12
  264. # Lock output 5
  265. videohubctrl --host sdi \\
  266. --in-name 11 "Test input" \\
  267. --in-name 12 "Playout input" \\
  268. --out-name 5 "Encoder h264" \\
  269. --out-input 5 12 \\
  270. --out-lock 5
  271. # This fails. It tries to use name that is not previously configured.
  272. videohubctrl -h sdi --out-name 1 "Test output" \\
  273. --out-name "Test output" "Other name"
  274. .fi
  275. .SH SEE ALSO
  276. See the README file for more information. If you have questions,
  277. remarks, problems or you just want to contact the developer, write
  278. to:
  279. \fIgeorgi@unixsol.org\fP
  280. .TP
  281. For more info, see the website at
  282. .I http://georgi.unixsol.org/programs/videohubctrl/
  283. .SH AUTHORS
  284. Written by Georgi Chorbadzhiyski <\fBgeorgi@unixsol.org\fR>
  285. .SH LICENSE
  286. videohubctrl is released under MIT license.