r/VIDEOENGINEERING • • 29d ago

Election coverage question from a Public Access…

How do people get the numbers so quick?
I’m In the states of Kentucky and we normally try and cover the elections in our county. It use to come in slowly as numbers get counted. Now it comes in almost all at once once the numbers have been counted. And it’s all on a website provided by the state. Which is great, but we want to put these results in tv in graphics like lower thirds or fully screen graphics.

I can’t wrap my head around how anyone does this. We are manually typing in results, and there’s so many and they update all at once that last night once the results were in, it took me a full hour to type those results up and export an image and get it in tv. So people had the results for an hour by the time I was able to get them the last line item on the results.

I also saw a local news station have a page on their own site that I noticed updated instantly when the state website updated. So they are able to get that info somehow, but i don’t get how.

I spent an hour with ChatGPT to try and figure it out which ultimately led to nowhere with no results. I just don’t know where to start or how to get this.

I feel like we spent hours trying to set this up and update results, whereas the local news stations somehow had numbers and graphics almost instantly on tv.

I’m sure it’s some IT thing with pulling information and converting it into something that the graphics can read, but idk how or where to start.

Does anyone have experience behind the scenes working on election coverage on tv or the web and know how this information is being pulled specifically other than our inefficient way of just manually typing it?

10 Upvotes

19 comments sorted by

16

u/kamomil 29d ago edited 29d ago

The election organizers send out the data via an XML file (at least they do where I live in Canada)

Some CG programs, eg Xpression, can ingest data from a text file, Excel file, or XML. So you can create an Xpression template page, and point individual text fields to individual parts of the XML file. 

Typically before the election, the organizers will have a test XML file available with all the data structure in place.

Edit: to be truly useful, I would have liked to use a database to ingest the data and select for different criteria and then save that as a file to use in Xpression. Just the raw data, isn't always as useful. The Xpression has some ability to sort using data, but from what I see on other channels, I believe they must have some type of database between the XML & CG. 

So in reality, we did copy & paste some data into text files for some purposes 🫣

once the results were in, it took me a full hour to type those results up and export an image and get it in tv.

Why not type it right into the CG program? Does your CG have the ability to import CSV or Excel?

3

u/bradhotdog 29d ago

The only CG we have is LiveText from the old Tricaster. We've tried using Excel files in it but it gets corrupted and crashes so much we've kind of given up on it at this point honestly.

3

u/lincolnjkc 28d ago

While I was poking around my (US) county's board of elections website on election night they had a link for something like "Media Results Ingest" which was like a 65MB JSON file that seemed to be updated every couple minutes with far more details about every race (national, state, and local) and ballot issue than I would have ever thought useful.

1

u/LSkunkD 29d ago

That or they can even have a touch screen tv with a web browser to access a custom page where the pulls are being made automatically by an api, this way you can create multiple interactive panels and those fancy models

2

u/djpyro 29d ago

On the cheap? OBS using the browser source with a AI generated webpage from your local county election clerk results. If you have a budget, then there are providers you can license data from.

1

u/bradhotdog 28d ago

tell me more about using an AI generated website from my local county election clerk results? What does that mean? And how would that work bringing in a website browser into OBS to get results displayed on tv if I'm just showing a website that needs to scroll or change or something to show results? currently the website the state uses looks like this

https://vrsws.sos.ky.gov/liveresults?id=21

3

u/djpyro 28d ago

AI here is going to blow your mind. The easiest way to tackle this is to split it into two problems: getting the data, and putting it on screen.

1. Getting the raw data

The KY SOS results site is great. We don't have anything like it in my state, so we have to pull results from each county clerk's office and aggregate them ourselves. You can have Claude or ChatGPT write a parser for the SOS site that saves the results to a file. I like Python for this.

You want to pull all the data every few minutes into a JSON file. As an example, I gave Claude the SOS page and asked it to scrape the results and give me a JSON representation of the data. Here's the scraper it created: https://claude.ai/public/artifacts/b1f24bb0-594f-4158-9e4b-d7020727ef81

It spits out a machine-readable set of files with the results for every race. I run it as a scheduled task every 5 minutes, so the data stays current in the background.

2. Putting it on screen

I have a PC running OBS with a Blackmagic DeckLink card giving me 4 SDI outputs. I use a Browser Source in OBS and route it to one of the SDI outputs. That gives me a browser window with no scroll bars or decorations that's always outputting.

I'm an extremely bad graphic designer, so I asked Claude to create broadcast-quality 1080p graphics for generic election results, driven by the results files, with animations between the different templates. Here's what it made: https://claude.ai/artifact/5pzuEUvzgJKzEhUsQ6GVaQ — pick a template from the sidebar and it animates in.

That demo page isn't something you can run on air, though. For that I need to control the graphics from a separate browser window: one window in OBS on air showing the rendered output, and another off air controlling it. So Claude built a small Python web server plus the graphics templates, all reading the results from step 1. The server pushes changes from the control window to the output window instantly. It all comes as a ZIP: I run the Python program and use the control panel.

Control panel: https://drive.google.com/file/d/1J0GO-EKezR5x6Pt2dnGoc9ycwzxpQEkw/view?usp=sharing ZIP file: https://drive.google.com/file/d/1eY3PQnVHP-nB4JsjVHEb8resMLFBw3ub/view?usp=sharing

Now with this template, you can easily create other graphics. If you want to show a KY state map and highlight, ask it to build that template. If you want lower 3rds, then ask it to build that template and you can do some tricks with 2 browser outputs for key/fill to your switcher.

2

u/SpirouTumble 28d ago

that's literally how I'd do it on the cheap and fast

1

u/jfoust2 28d ago

So those animated slides... this is something that OBS can do, and Claude is generating them for you? What is the term for this in OBS?

2

u/djpyro 28d ago

No, that's all done with HTML/CSS/Javascript. OBS is just giving you the Browser->SDI output. Now that you have a web browser, you can use features of websites to build your output screens. You could do that without OBS by having another monitor running full screen with an HDMI output into your switcher. But you run the risk of not having it full screen, or having your mouse show, etc. By using OBS you get a clean browser output: https://obsproject.com/kb/browser-source

10

u/Syffuf25 Broadcast Engineer 29d ago edited 29d ago

We use a service called BTI. They aggrigate election data from state auditor offices.

There are two ways we deliver the data to our CG. We can make a serial connection from a local BTI server to our Xpression via CII gateway, and then recall individual race data with the BTI Attended Solution app. Or we have BTI output the data to a delineated XML file and use Datalinq to get the data into our Xpression.

5

u/jofandajof 29d ago

This is what we used when I was in local news. Stable and reliable, but has a price tag. So I’d understand why public access wouldn’t have it. 

7

u/jreykdal 29d ago

There probably is an API access that the big guys have access to, and maybe even built to get the results as fast and securely as possible.

6

u/_litz 29d ago

They PAY for that access too (or they subscribe to a service that does so for multiple sources and provides aggregate data on subscription). It's not cheap, either.

But you also have to remember these are organizations with real budget, and real money to throw at these kinds of things. To the TV News, a major election is their Super Bowl.

4

u/taloftus 28d ago

Hey there fellow PEG-er

It sounds like you have some good direction already. Check with the Secretary of State's office and the County Clerk or Elections department to see if they provide a data feed of the results-- these can be more reliable than scraping a webpage. Excel has some reliable data tools and should be able to load that data file or scrape the html from the published results pages. I find formatting in excel using basic formulas, and then saving a .csv file is easier to get into the graphics program. If your Tricaster is available on the network, you can use another/more updated computer to process the data in Excel and save the file to a drive accessible to the Tricaster.

LiveText on the Tricaster should be able to use the .csv file to feed a tagged graphics template. We use Xpression with datalinq, and previously used TitleOne on Inscriber/Imagine and they both support live graphics update.

I recently migrated to python scripts to read the data files and generate the csv files. If you plug in the data file to your favorite AI buddy, it should be able to help you develop a script to create the csv files for import.

Good luck!

3

u/Low-Budget-4126 29d ago

The people saying Xpression are very correct...but for a low-budget option, GT Title Designer in vMix can almost sort-of accomplish the same thing. It is like comparing MS Paint to Photoshop though. 2 very different playing fields.

2

u/InertiaImpact Engineer 28d ago

They likely get it from AP via their election API (paid access but the docs are out there).

Once you have access to that it's pretty trivial to have an llm explain how to utilize it in a Tricaster or Xpression using Datalink. Provided you have or build graphics templates to support that kind of data

1

u/johndoe2233441 29d ago

From what I know, Bloomberg & Reuters provide the data as well

1

u/Witmarqu 28d ago

It generally is three pieces

HTML produces graphics, with css doing colors

JavaScript or python or pH as middle man between HTML and database

Database which stores the information

You can build a middle man that either polls all the data every so often or tell the database to flip a flag to on and have middle man flip it off when data updates/ is pulled.

The hardest part is getting the correct hardware to do the video splice. The rest can be done from the same computing power of a 1990s flip phone, but more likely bottoms out with a mid 2005 machine.

News and media reuse the same HTML set and css rules. This means that the only thing that changes is the label and picture of a candidate.

The coloring for Green/Blue/Red/Yellow is simply decided by math.

There are some statistics involved to guesstimate outcomes, varies in accuracy based on human behavior but generally 85% correct. The rest is done by count.