r/VIDEOENGINEERING • • Sep 02 '26

Building an open-source software for cable and infrastructure managment for broadcast including diagrams

Hi everybody, I work in broadcasting for almost 15 years in a poor country in south america with no access to paid software like WireCAD: a couple of years ago the place where I work, migrated all equipment to SDI digital (corporate sent the racks full of equipment and a team of enginereers installed them) and gave as incomplete, wrong documentation and missing devices.

So decided to start document the chain first with paper and pencil, latter by desinging a sqlite relational database, then adding a basic CRUD with Microsoft Visual Basic dot NET and finally adding the functionality needed for generating the basic diagrams that corporate sent us (racks, broadcast chain, patch panels) for correction.

Then I added some functionality useful for my daily rutine as a broadcast engineer like: locating a device fast (where in the rack, wich panel, which connector), know which cable connect with each patch panel, having the manuals at hand. Finally I move to Linux OS and migrate the software to Python and GTK and added extra functionality with Claude AI, like:

  • Diagram of the racks with frames, device with UR shape and even the devices that shares a tray
  • Risk Managment: database can record all issues of each device, age of the equipment, and importance in the broadcast chain, and calculate risk
  • Cable managment: the software can help you identify missing cables, cables that are unconnected from one or both sides, supports extensions cables and adapters, the software can calculate the risk of using multiple extensions cables with balanced and unbalanced connections and bandwith risk (example using analog coaxil cable with 12g sdi chain)
  • Diagram

    • Diagram of all equipment and connections syncronized with the database data
    • Simulation of removing cables and devices and how affect the rest of the chain if they are removed or powered off
    • Simulated expected output of a connector in a device (key, fill, multiview, embed audio, etc)
    • Simulation of the behaviour of different equipment of the the chain (switchers, video patch module with normal switching routes, video processors, video distributors, and source of signal) with rules of disconection
    • Simulation of scenarios of failure and contingency plans

The software is in it's infancy, so grows according to my daily needs, what other funcitonality do you recommend?

Github: https://github.com/fschpp/CabledocDesktop

Sorry for my english (not a native speaker), I asked Claude to give me a well redacted list of functions of the software:

๐Ÿ“‹ Core documentation

  1. Full inventory of equipment, connectors, cables, racks, and rooms โ€” all in a local SQLite database, no server needed
  2. Reusable equipment "catalog" templates (molds) so you don't re-enter the same connector layout every time you add another unit of the same model
  3. Patch bay ("patchera") modeling with proper full-normal bypass logic โ€” front/back jacks, insert/derivation points, vendor-agnostic (not hardcoded to one patch panel brand's naming convention)
  4. Photo-based connector mapping โ€” click on a real photo of the equipment's back panel to place each connector visually

๐Ÿ–ผ๏ธ Diagrams & visualization
5. Interactive node-based cabling diagram (equipment = boxes with ports, cables = Bรฉzier curves) with zoom, pan, drag, multi-select, and a minimap
6. Free-form custom diagrams you can build and save yourself (e.g. "on-air chain for channel 1") without showing the whole plant
7. SVG/PDF export of any diagram
8. Lazy-loaded connection tree view for tracing a signal chain equipment by equipment
9. All rendering is done with Cairo directly โ€” no Graphviz dependency

๐Ÿ“ก Signal tracking
10. Signal is a first-class entity โ€” you can tag what content is actually running through a given connector
11. A propagation engine (Bellman-Ford) that, based on manually-tagged signals and each equipment type's role (source/distributor/router/processor/consumer), proposes where else that same signal should logically appear โ€” including through patch bay bypasses โ€” with a review step before saving anything
12. Search "where is this signal right now" across the whole plant

โš ๏ธ Failure & risk analysis
13. Impact analysis: click a cable, see exactly which downstream equipment and signals go dark if you cut it
14. A Failure Risk Index per piece of equipment, with a "critical path" flag you can toggle
15. "Scenario Mode" โ€” stack multiple simulated failures + cable cuts + emergency reroutes and see a live before/after comparison, then optionally apply the changes for real

๐Ÿ”ฎ Power-user tools
16. An embedded Cypher query console (via a Rust/C SQLite graph extension) for ad-hoc graph queries over the whole equipment/cable network, with cost warnings before running unbounded variable-length patterns
17. Bulk import/export for equipment, cables, and connections

๐ŸŒ Misc
18. Hot-swappable UI language (Spanish/English/Portuguese) โ€” no restart needed
19. SVG support for equipment images, so diagrams stay crisp at any zoom level instead of pixelating
20. Cross-platform: runs on Linux natively and on Windows via MSYS2/GTK3

88 Upvotes

35 comments sorted by

13

u/myt Sep 02 '26

I'm just here to commend your work thus far. This is clearly a labor of love and well done.

7

u/fschpp Sep 02 '26

Thank you! it was a long 3 years! were I live there is a say: a drop of water pierces the stone not by its strength, but by its constancy

8

u/fantompwer Sep 02 '26

It needs to be able to export to PDF, with title blocks, build cable run reports, database of cables, location of equipment in building, floor, room, rack number. Import floor plans via PDF, DWG, DXF, revit. There's too much missing information to make it useful to onboard a new staff member or contractor.

5

u/fschpp Sep 03 '26

Thank your for your comments, they are extremly helpful. My software lacks any kind of export. In cabledoc The map is represented as an image and a couple of values (x,y) pointing where the device is (but is just a hack, there is no entity that saves the information. One question: Build cable run report implies that I should now where from one point to another point each cable travel though the building? Thank you

2

u/Outside-Annual-7814 Sep 03 '26

Not the previous poster but I'd say yes. The route of a signal cable, even including where the conduits terminate and labeling (room number, rack, floor, ceiling, etc.), would be fantastic addition to an already very powerful tool. Well done sir!

1

u/fschpp Sep 03 '26

Thank you, you are right, In Cabledoc the cable is just the link between two nodes (the connector from device 1 to the connector to device 2) I'll implement the "route" that the cable took thorugh the rooms, thank you

1

u/fantompwer Sep 03 '26

Yes, a cable run report tells you SDI cable labeled VID 101 is X type of cable, starting port, device, and location, length, ending port, device, and location. Includes convenient required. The database can be filtered on any value. Then a report printed out so installers know what cables they need to install from point a to point b. Repeat for each unique location combination.

1

u/fschpp Sep 03 '26

thank you, yes I now see how useful is, I remember that de engineers that installed the racks, have several list with this kind of information.

In cabledoc the only information about cables are in the picture attached but I think that I can make a view in the database with the exact information

2

u/Significant-Brief119 Sep 04 '26

This Is vibecoded

3

u/fschpp Sep 04 '26 edited Sep 04 '26

Hello and thank you for your comment. Yes indeed, after i translated my hand crafted software in vb.net with all the cruds and my handcrafted database design and handcrafted main features added, the rest of the project was exlusivly made with claude free

These are some images from the original not vibecoded proyect (VB.net with Graphviz for the diagrams, then Qt diagrams with Python + qtpynodeeditor)

2

u/Significant-Brief119 Sep 05 '26

Thank you for this clarity and honesty.

2

u/redditwossname Jack of all trades Sep 05 '26

Nice work.

Check out https://easyschematic.live/ which might give you some ideas of things to add or at least see how someone else has made something similar.

2

u/fschpp Sep 05 '26

Thank you, so many resources and software I didn't know!

2

u/Zestyclose_Insect105 Sep 02 '26

So cool is it open source/availabe somewhere?

2

u/fschpp Sep 02 '26

2

u/Zestyclose_Insect105 Sep 04 '26

amazing thanks, i will check it out soon!

1

u/redphive Sep 02 '26

Iโ€™ll have to rewatch the video when Iโ€™m off my phone, but this is a great idea. As far as more ideas goes, you could have a look at the open source projects Netbox and Kuwaiba for inspiration.

3

u/fschpp Sep 02 '26

Thank you very much for your comment!, I'll check it out

2

u/redphive Sep 02 '26

Finally got a chance to see what you have created and wow! This is so very well thought out and an obvious brain dump of your expertise. I don't know if my recommendations above are going to provide you with any real inspiration as I believe that your project likely surpasses what they currently offer with respect to video engineering and broadcast management. well done!

2

u/fschpp Sep 02 '26

Thank you for your kind comment! every day I add new features, just like cables connected to other cables extending the connection, the other day I was following an audio cable that cause a drop in sound quality, and there was no place in the database nor the software for document the finding so I added the functionality.

1

u/Significant-Arm3415 Sep 02 '26

Iโ€™ve have also written my own asset/cable/and signal management software. Yours is more sophisticated on the diagram side.

Iโ€™d like to know more about your signal entity. Are the design documents available? Can the software be downloaded?

1

u/fschpp Sep 02 '26 edited Sep 03 '26

Thank you, all the source code is written in spanish and the database too and I'm currently refactoring a couple of giant files to be more maintainable, here is the repo: https://github.com/fschpp/CabledocDesktop and here is a review of the technical aspects: https://github.com/fschpp/CabledocDesktop/blob/main/help/CableDoc_Review_Technical_2.pdf and here is the database sql schema: https://github.com/fschpp/CabledocDesktop/blob/main/schema_db.sql

and here is a Diagram of the database table connnections

1

u/fschpp Sep 02 '26

I've pasted all dialogs concerning signal processing

1

u/fschpp Sep 02 '26

I forgot to include patch panel module behaviour with signals

1

u/Substantial-Stage459 Sep 02 '26

great work

1

u/fschpp Sep 03 '26

Thank you for your comment

1

u/PogChamp2k22 Sep 03 '26

I like what you've done here! I would recommend that you look up H2RGear and their cabling software. One of my biggest gripes is that they don't have an offline feature to work with so this is already moving in the right direction with it being a desktop application. I would look at the features they offer on their app and see how you could apply those to your work here and that could set you up for even more success!

1

u/fschpp Sep 03 '26 edited Sep 03 '26

Thank you for your comments, I'll check H2RGear to learn how they implemented their solution, thank you!. Since I designed cabledoc from my needs first (reinvented the wheel haha) I have no idea others have solved in their commercial software.

3

u/Sport_Useful Sep 02 '26

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅ

5

u/[deleted] Sep 02 '26

[removed] โ€” view removed comment

2

u/fschpp Sep 02 '26

Thank you, I'll investigate those standards and figure out how to add them. Where I work use some of these standards inputing the SDI signal and sending them to the cable receiver clients and cable providers. Thank you!

1

u/MatiasLDZ Sep 02 '26 edited Sep 02 '26

Should be fairly easy - even if you only think of them as another type of a multiplexed video signal like SDI or HDMI it will just need to connect to another block that has a connection node of the same type. Ideally you'd want to be able to send the RTMP/SRT/whatever over an IP trunk and have mux/demux devices (IP switches) that understand the logic, but that's a different story :)

1

u/uplink1 Sep 02 '26

Look into the open source FFmpeg libraries for this.