Keeping live video and data in sync
The score on the overlay changes while the ball is still in midfield. Viewers notice. Video and data drift apart for ordinary technical reasons, and most of them can be measured.
Two paths from one venue
Video and data leave the venue by different roads. A data event is a few lines of text, logged and sent the moment it happens. The picture goes through production, encoding, contribution, transcoding, packaging, a CDN and finally the player's buffer. Each stage adds delay, and the data skips nearly all of them.
So a gap between the two is normal. The trouble starts when the gap moves. Drift usually comes from places like these:
- A player buffer that grows after a rebuffer and never shrinks back.
- Viewers on different networks and devices, each at a slightly different point in the same stream.
- A switch to a backup contribution path with a different delay from the main one.
- Data and video from two suppliers, each running on its own clock.
None of these is exotic. Most matches will see at least one of them.
What viewers see
The overlay shows the goal, and then the striker shoots. The stats panel counts a corner the viewer hasn't seen yet. On a second screen, a notification announces the score while the stream on the TV is still in the build-up. Each of these gives away the moment the viewer was waiting for.
How a supplier keeps them aligned
Some gap will always remain. The aim is a gap that is small, known and stable, and that depends more on how the supplier is set up than on any single setting.
Shared event ids
The stream and the feed should refer to the same match and the same events by the same ids. Then a highlight clip and an overlay can point at one event, without a mapping table someone has to maintain by hand on match day.
Timestamps on both sides
Data events carry the time they happened. Video can carry timing too, as timestamps in the HLS stream that mark when each segment was produced. With both, the player can hold an overlay until the matching picture is on screen, and you can measure the gap directly instead of estimating it with a stopwatch.
One operation behind both
When the same operation runs the stream and the data, both sides share a clock, a schedule and a control room. A delayed start, a switch to backup or a suspended match is known on both sides at once. With two suppliers, you're the one who finds out the clocks disagree, usually during a live match.
That's the main reason we'd take video and data from one supplier wherever the rights allow it. If you only show data, or only video, none of this applies to you.
What to test before go-live
Test on a full live match, on the devices and networks your customers actually use. A replayed match on an office connection hides most of the drift.
- Take the stream and the data feed for the same match and run them side by side, from start to finish.
- Log when each scoring event arrives in the data and when it appears on screen.
- Repeat on a phone over a mobile network, and on a device that has rebuffered during the match.
- Ask the supplier to switch to the backup path during the test, and watch what happens to the gap.
- Check a correction: when a goal is ruled out, does the overlay change when the video shows the decision, or before?
- Plot the gap across the whole match.
A flat line on that plot is what you want. A slope means a buffer is growing somewhere, and steps usually mean a path or a source changed. Take the plot to the supplier and ask them to explain every step.
MATCHWIRE supplies live streams and the live event data feed from one operation, so you can run this test on the same match with one supplier. Video goes to your player over HLS, into a broadcast chain over SRT or into our ready web player. Data arrives as JSON or XML, pushed over WebSocket or pulled from a REST API.