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

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