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 8.3KB

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