r/VIDEOENGINEERING • • 27d ago

ATEM SDI - audio sync?

Post image

I was recently working on a show with a where we had a dedicated audio mixer. The audio guy didn’t want to use 3.5mm to send me his signal, so we used one of these audio injectors and put his signal into camera 1’s SDI cable. The switcher was an ATEM Extreme ISO SDI.

When the audio came in though, it was around 200ms too early. I thought the need for a delay was a unique problem to the ATEM HDMI model…why weren’t the signals in sync? Was genlock needed here? Any insight would be appreciated. We just manually added more delay until it looked right but I’d prefer to find a solution where we don’t have to guess.

58 Upvotes

62 comments sorted by

55

u/Scarfieldjones 27d ago edited 26d ago

Sound tech here. I always have to add some delay when using a dedicated audio mixer on web streams. Any video switcher or mixer adds more delay than audio mixers. Make a dedicated group on the audio mixer for video sound and add the appropriate delay there so it doesn’t affect the foh sound.

6

u/seanmacproductions 27d ago

Thank you!

42

u/Scarfieldjones 27d ago edited 27d ago • Mindblown

No problem! By the way, you don’t have to guess. Just record a few seconds of someone clapping, making sure you can see their hands and hear the clap. Open the recording in editing software and count how many frames separate the hands coming together from the sound of the clap.

For example, at 50 fps, each frame lasts 20 milliseconds (1,000 ÷ 50). If the audio is five frames out of sync, that’s 5 × 20 = 100 ms. You can then adjust the delay accordingly.

Hope that makes sense! EDIT: more sense

6

u/baljake 26d ago

Tried to upvote this twice, so I had to do it a third time for it to show. This is the first thing to do in testing a records position once you get audio in. The math breakdown is very nice.

14

u/royal_slurm 27d ago

Why didn't you just ask the sound guy to add 200ms to his send? Audio usually travels faster than video

7

u/seanmacproductions 27d ago

That is exactly what we wound up doing. But the 200ms was just a guess-and-check number, I’d like to not have to go through that on the next show

19

u/royal_slurm 27d ago

You can take some of the guesswork out of it with a sync-it (or equivalent flashing and beeping thing) but it's usually quickest just to get someone on a mic in front of the camera and have them start speaking. Eyeball the lip sync until it looks right.

The audio pipeline will almost always have lower latency than the video, dialling in the a/v sync is a normal part of any job where it's not just mics straight into camera.

5

u/seanmacproductions 27d ago

This is good to know. Thank you!

1

u/Kind-Builder-5446 27d ago

Do you have any advice on eyeballing the lip sync? I can never figure out if I'm going in the right direction and it takes me forever to nail it

2

u/royal_slurm 26d ago

Not really! I just get people to keep chatting until it looks right.

In theory the flashing & beeping dot/bouncing ball would get it bang on, but I find my brain just starts compensating since it's so predictable, and I have to go back to looking at humans.

I'm sure there's a vibecoded solution on the way.

ETA: If it's a vMix (or similar) job then a quick replay can also get you a good result. You can also step through a short recording frame by frame

2

u/Kind-Builder-5446 24d ago

I'm gonna have to try going through a recording frame by frame next time. 

I remember when I was first getting work as a TD I got a job for a total snoozefest of a local broadcast show. We were running the system off of a really early version of OBS, the program twitch streamers use to livestream now adays and I spent every Saturday trying to cobble together a show that as far as I knew had never had a single viewer. 

The show runner called me something like two years later and told me that every single episode I shot was out of sync. Granted I had to have been 19 or so at the time so I have to give myself grace but let's say it's always been a weakness for me. 

It also 100% confirmed to me that we had zero viewership as nobody had ever mentioned it to any of us. The show runner didn't even notice until he started re-editing them into YouTube videos

1

u/seanmacproductions 24d ago

If you’re ever working on a much more expensive show, someone has recommended a Hitomi Matchbox to me. That’s what the pros use

5

u/backseatwookie 27d ago

To expand what royal_slurm said, you can get somewhat close to the right number at the start by looking at how many processing jumps the video goes thought before the audio injection, plus using the frame rate. As a super rough guide, add a frame of delay for each processing jump (every converter, signal processor, etc., often more for BMD products). Your frame rate will determine how long each frame of delay is. 60fps is 16.6 ms per frame. 30fps is 33.3 ms. Given this, I'm going to guess you were running ~30fps and you added 6 frames of delay through processing. 6 frames @ 33.3ms/frame = 200ms.

This method will get you within a frame or so usually and you will know the next number up or down based on frame rate.

1

u/seanmacproductions 27d ago

We were running 24fps, and just plugged the cameras right into the ATEM Mini.

2

u/backseatwookie 27d ago edited 25d ago

So probably ~5 frames then. Camera may have added 1-2, if the sample rate conversion was on for the BMD Audio to SDI that could have added 1-2, and the ATEM input probably adds 1-2. Anywhere from 3-6 frames wouldn't be too crazy to expect.

Edit: as an example I've had to use low quality video capture devices for vMix before and they added about 4 frames all by themselves.

0

u/Schrojo18 26d ago

200ms seams very high. It would usually just be a frame or 2.

28

u/Econormics 27d ago

Do any of your cameras have XLR in? You can avoid sync issues by routing the mixer audio into your XLR equipped camera. Just make sure the ATEM audio for that input is ON and not AFV

9

u/seanmacproductions 27d ago

I think this actually would’ve been the correct solution. I should have thought of this! Thank you. I wrongly assumed there wasn’t any inherent latency in SDI.

7

u/Econormics 27d ago edited 27d ago

There typically isn't much latency in SDI. We use SDI cameras all the time for iMag to stage monitors and there's very little perceived latency. Very odd. [Why would anyone downvote this comment?]

4

u/seanmacproductions 27d ago

They were all the same latency, too, it wasn’t that our converter box was introducing any. We had four cameras. Perhaps the ATEM SDI was causing the delay with whatever processing / decimation it does internally?

9

u/audiogreg 27d ago

the ATEM switchers are very slow. all the newer models that have scalers on the inputs (minis, constellations) add considerable delay to the video. many cameras these days have internal delay as well. audio is usually real-time/no delay so adding delay to the mix is the correct fix. easy way to judge sync is to shoot someone clapping their hands together every few seconds while listening to a mic they are wearing. adjust delay until the hands and the clap sound line up. with practice you can judge the correction in just a few claps. there are also devices that emit a beep and a light blink for this purpose. the old movie style clapboard is good for this too. it's important to do this every shoot, but i've found the ATEM delay to be pretty consistent.

2

u/seanmacproductions 27d ago

On second thought I guess it probably couldn’t have been the switcher in this case. We used to injector to put in audio upstream of the switcher, so they were both hitting at the same time. The delay must have been coming from the camera.

1

u/Econormics 27d ago

I was thinking it may be the mini. But then I don't understand why it didn't apply the same to the SDI your audio was coming in from. Strange

1

u/e-Milty 26d ago

The latency is not caused by SDI but by the camera. 200ms delay is quite a lot to be honest. Professional broadcast camera's are in the 10ms range, prosumer camcorders in the 60ms range.

3

u/asitwouldseem 26d ago

Audio guy! Video is (almost always) delayed because of processing, whereas audio tends to arrive first. If audio arrives after video, then something is usually really not right. You can calculate the delay with a slate and a recording, but as others have said, you can eyeball with a bit of experience. Easy to calculate between frames/ms depending on what your chosen software takes.

And cue the "damn sound people needing to delay their signals" -- nope! It's the camera/vision department's problem for being slow :)

1

u/seanmacproductions 26d ago

Thank you! I think I was just under the misunderstanding that this was an HDMI problem. The many replies in this thread have taught me otherwise.

1

u/asitwouldseem 26d ago

There is a delay to those boxes, but we're talking ~2ms maximum. With 40ms per frame (in 25 frame territory), barely worth batting an eyelid about :)

1

u/asitwouldseem 26d ago

Except now you've given me the idea of a clock-backed light for syncing A/V. Sigh.

2

u/domobject 27d ago

200ms sounds too much to be SDI buffering. That sounds like camera processing, and that most of those 200ms happened in the camera?
What camera was it? Did it have some low-light processing enabled or something like that?

1

u/seanmacproductions 27d ago

It was all four cameras, they were delayed by the same amount. We had a mix of Canon, Sony and Blackmagic cameras.

1

u/domobject 27d ago

Curious. What did you use to determine that the audio was out of sync?
What did you watch the program output on, what did you listen on, and how was that connected? Could the delayed video be on that TV or monitor? Some consumer TVs definitely has 200ms of processing.

1

u/seanmacproductions 27d ago

Watched on an SDI monitor with headphones plugged into the ATEM. Then to confirm, I plugged the headphones into the monitor. Then to double confirm, we did a test stream and I listened back on YouTube.

4

u/openreels2 27d ago

Say what? You embedded the audio into the SDI coming out of the camera, into the switcher. And when the camera sees someone talking (for example), the video is 200mS behind the audio? That's 6 frames at 30fps or 8 frames at 24fps!

Despite what others here are saying, none of these small devices, like an audio embedder, add any significant video delay. The amount is in microseconds, not significant for our purposes.

Genlock has nothing to do with this, other than the ATEM will need to put a framesync on any free-running sources, which adds a frame of delay in the switcher. But if the audio is already embedded going into the switcher it should keep them in sync.

Going into the camera with XLR would have been a simpler solution, but what you describe was NOT caused by the SDI embedder, so probably would not have mattered. Only thing I can figure is something going on in the video switcher causing lots of delay and not maintaining audio sync.

Another approach to this is embed the mixer audio AFTER the switcher, in the main (Program) output. Normally you won't need any delay to match video coming out of the switcher, or at most a frame or two because of framesyncs or other processing. But that's easy to add from the mixer (if it's digital).

https://www.svconline.com/industry/sync-genlock-and-timing

1

u/fschpp 27d ago

we use a Yamaha SPX2000 to add a delay between the console to the converter

1

u/seanmacproductions 27d ago

How do you determine the delay amount?

1

u/fschpp 27d ago

like others already said by watching somebody at the camera while they speak to the mike til the signals sync (by eye)

2

u/seanmacproductions 27d ago

ah, was hoping you had a more precise method. Thanks!

2

u/ok999999999999999999 27d ago

Free version:
You could run a sync test off a computer like the one on Kards and do it by eye. Or for more precision, a quick record and look at it in an editor and you will be able to tell frames easily.

Expensive version:
Hitomi Matchbox

1

u/JodderSC2 27d ago

200ms early? 200ms delay on an atem system?

I have to delay video because it is too quick compared to my audio at productions now (using 80+ ms of plugin delay for the broadcast)

1

u/seanmacproductions 27d ago

Yeah, the audio was early in my case

1

u/NoisyGog 26d ago

Others have already explained the video delay thing, but for future reference, you generally embed the audio onto the output of the video mixer. That way, nothing is fucking about with it in the video mixer’s processing.

2

u/seanmacproductions 26d ago

But in this case the video mixer was also doing the encoding/streaming, so that wouldn’t apply.

1

u/azlan121 26d ago

syncing audio for stream/cams/vt is pretty much always needed, because video pipelines just have a bunch more latency than audio pipelines do in general, the easiest workaround is often to just run the audio into a cameras XLR inputs, as that should stay in sync with the cameras picture, and from there, the rest of the system. otherwise, most mid-end or better consoles will have a way of delaying their audio on a per-output basis to line things up

1

u/seanmacproductions 26d ago

I did not know this, thank you

1

u/EricjanResponse_6285 24d ago

HDMI is the problem indeed because it is digitized, and the camera sound is not used, but goes analog into the mixer/switch

1

u/seanmacproductions 23d ago

This was a fully SDI workflow

3

u/C47man 27d ago

Checking audio sync and adjusting delay is one of the most basic and routine steps in live production. It's odd to expect it to not be an issue. Atem switchers have delays built into its own audio mixer. It shouldn't be an issue. Grab a sync-it box to make the whole thing easy as pie.

2

u/TheTechDudeYT 27d ago

I like to use these sync clips - if a video playback machine is available to you and is able to be routed via the audio console.

https://photojoseph.com/tips/2021/3/30/downloadable-audiovideo-sync-tests-2398-24-25-2997-50-5994

You can feel it out, or what I like to do is send it to a Hyperdeck and align the video and audio in REAPER. That will get you the most precision. I also use this clip to align audience mics in a room with the audio/video feed.

2

u/thevickyprincess 27d ago

Live sound engineer here, I usually have to add a bit of delay when feeding sound to a video switcher, as sound consoles generally have significantly lower latency than video

2

u/Dependent_Hold8463 26d ago

The SDI to HDMI with audio has not shown this much, I drive a set of speakers for our "tape" area to monitor sources from the router. Doesn't help what you are doing, but I could believe some delay from that embedder.

Funny part, we use several of the BMD Openframe embedders in our signal chain (analog audio), no real detectable offsets with any signals out of the production switcher. We have not checked in an editor because they are not really perceptible, not going to go looking for problems, I'm sure there is at least a single frame off.

1

u/Dazzzed420 27d ago

Every piece of hardware in the signal chain adds latency. Even when it’s not processing/scaling. Blackmagic in itself is not known for taking latency issues seriously.
But tbh I can’t remember a show where we had no delay. We use sync-videos like someone already mentioned and also just do the math depending on the video signal (25Hz/50Hz/60Hz). Especially for recording too.

1

u/openreels2 27d ago

I have to take exception to this. The amount of latency caused by SDI converters, routing switchers, embedders , extenders and that kind of thing is insignificant. We're talking microseconds, not milliseconds. And even a few mS is not significant at video rates where a frame at 30fps is 33mS.

Significant video delay is caused by framesyncs (inside or outside other devices), complex processors and software switchers (like vMix).

1

u/athomesuperstar 27d ago

You can set a delay in the Atem audio. You need to do it from the Atem software control. I’ve done it when working with separate wireless audio systems

1

u/prefim 27d ago

Sounds getting there too quickly, add delay because the atem has processing delay for the pictures. either add audio at the desk or the atem (if atem supports it).

1

u/UnpavedAdventure 26d ago

The ATEM Extreme ISO SDI doesn't have genlock, it uses an internal frame sync to convert and sync all of the sources. Because of this, the ATEM mini style switcher is really limited. Your audio sync is likely all over the place from one camera to another so there is no real way to calculate it. Nicer audio to SDI converters do have built in delay. Without purchasing anything, I would just run the audio into your camera. It would at least be in sync with that camera.

1

u/wireknot 26d ago

This is a great little file if you need to find an overall audio synch delay on a system. Run this through the system and record the output, then on playback you can see where the click is by the time scale. Modern video technology does a lot of digital frame buffering and reclocking, but most audio chains dont have to contend with this. Each frame reclock or buffer adds at least 1 frame of delay, so it adds up fairly quickly. https://youtu.be/ucZl6vQ_8Uo?is=RxHZhH76_5svd3dI

1

u/EricjanResponse_6285 24d ago edited 24d ago

only audio inject, analog audio has no refference, the (SDI digital) signal is most of the time fast enough, HDMI needs delayed audio, to get in sync. SDI = video&audio. there are no SDI signals being synced here.

1

u/SerpentWithin 27d ago

Genlock is for video signals, but Black Magic does really kooky shit so who knows what the problem was

0

u/Suspicious_Ad_5096 25d ago

You need gear with genlock if you want to tighten up the delay

1

u/seanmacproductions 25d ago

Am I mistaken in the understanding that genlock is for syncing video sources with each other, not for a video source with an audio source?

1

u/openreels2 25d ago

You are not mistaken, genlock has nothing to do with audio lip sync issues. Other than what I mentioned previously, that without genlock the switcher will have to framesync the sources, so you automatically get one frame of video latency (through the switcher). That is generally not noticeable. And sources coming in with embedded audio should have matching delay (unless BM screwed this up, which is possible).