![]() Create your own functions to call later.(optional) define your own sources and destinations for readibility and ease-of-use later.Replace the 192.168.1.30 on line 12 with the IP address of your router.Define when you want the command to trigger using military time.This script is pretty easy to use, just make sure you have the library schedule installed. If you'd rather not make your own way of queueing up commands, feel free to use the included bmd_scheduler.py. Router.route_single(destination=4, source=3) Scheduling Commands ![]() There is no salvo support for pre-defined configs, but it is a bit easier for one-off setups. All you have to do there is pass through the source and destination as arguments and it'll execute a command for you. If that's not quite your cup of tea, you can instead use the route_single command. It's a little weird, but it's how you'd do it using the GUI. So the command above would route input 2 to destination 1, input 3 to destination 2, and input 6 to destination 4. The most important thing to remember is that the route_inputs command requires a list of tuples. You can call the script from the terminal using a command like this:įrom bmd_router_control import blackmagic_router_control Here are some examples: Run from the terminal ![]() You can import this script into other python files or even run it from the terminal. ![]() The most important one is bmd_router_control.py. There are 2 Python scripts in this repository. There are some examples in the script, but you can see more on how the library works in their documentation. The bmd_scheduler.py requires the python library schedule to work properly. The scripts in this repository require Python3 to run properly. The world is you oyster, so have fun with this. Some examples would be cron jobs, custom button boxes, or scripts that could monitor the output and check for black video. ![]() You can do this through the command line or importing the script into another program for use with other forms of automation. This program allows you to schedule and fire salvos for the Blackmagic Videohub SDI video routers. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |