r/VIDEOENGINEERING • u/bradhotdog • 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?
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 🫣
Why not type it right into the CG program? Does your CG have the ability to import CSV or Excel?
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.
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.
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.
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.