For gameplay recording audio sync, mark two events with a visible and audible onset, one near each end of the section you intend to use. Measure how late the sound is at both. When the error is steady, move the sound once. When it grows, one shift fixes only one end. In our calibration exercise the same 200-millisecond correction fixed both markers in one file. In a second file it left the final sound 300 milliseconds late. Measuring just the first cue would have made both corrections look successful.
| Timeline event | Reference picture time | Sound in fixed-delay case | Sound in growing-delay case |
|---|---|---|---|
| First marker | 1.000 s | 1.200 s | 1.200 s |
| Second marker | 7.000 s | 7.200 s | 7.500 s |
| Distance between markers | 6.000 s | 6.000 s | 6.300 s |
Choose a cue you can defend
Open your original recording and a copy of the export in an editor that lets you move picture by picture and see the audio waveform. A sharp, visible contact paired with a distinct sound is easier to measure than a sustained engine note. On your own capture, a planned calibration flash and pulse are better still. Speech from the streamer reacting to a near miss is a poor reference for the game sound. The person may have reacted a fraction of a second after seeing it. Likewise, a distant sound may have an intentional delay in the scene.
Measure the sound against the picture within each file. Write down which source supplied the sound. A capture card, a microphone and a separately recorded commentary track can have different offsets. If the commentary alone is late, preserve the synchronized game track while adjusting the isolated voice. If the source sounds fine and only the export is wrong, start with the settings or edits that changed between those two files. FFmpeg's stream selection documentation explains how to pick a specific input track when making a comparison.
Our exercise used two generated 48 kHz mono PCM files and reference timeline marks at one and seven seconds. Each sound was a 50-millisecond pulse. We deliberately placed the onsets at the four times in the table. Those known positions let us measure the error remaining after each attempted correction. They are a model of two timing problems an editor might encounter. They do not measure the latency of a console, game or capture card.
Try one move and inspect the far end
Subtract the reference picture time from its corresponding sound time. In the first case the difference was positive 0.200 seconds at both markers. The sound needed to move earlier by that amount. We removed 0.200 seconds of leading audio from a working copy and reset its timestamps. Use trimming for a copy that has expendable lead-in. If the original starts with important sound, keep the complete source on your editing timeline and decide where the final video should begin before discarding anything.
ffmpeg -i "offset.wav" -af "atrim=start=0.2,asetpts=PTS-STARTPTS" "shifted.wav"
Our resulting pulse onsets measured 1.000 and 7.000 seconds. Applying exactly the same operation to the growing-delay file gave 1.000 and 7.300 seconds. The first event lined up, but the second sound still arrived nine pictures late on a 30 fps timeline. Moving the entire track another 0.300 seconds would merely transfer the error to the beginning. Keep both measurements in view when judging an editor preview. FFmpeg audio filter reference
Estimate a rate from the interval, then realign
In the second case 6.300 seconds of audio had to fit between pictures separated by 6.000 seconds. The speed multiplier for that interval was 6.300 divided by 6.000, or 1.05. On a long stream the discrepancy may be much smaller. Use the measured interval and keep enough digits to recheck the far end. A 5 percent adjustment here was chosen to leave an unmistakable residual in a short calibration file.
The marker at audio time 1.200 seconds needs to land at picture time 1.000. If we trim the head first and then run the remaining audio 1.05 times as fast, the head trim should be 1.200 minus 1.05 times 1.000, or 0.150 seconds. Using the original 0.200-second trim as well as increasing the speed would shift the first event too far. The command was:
ffmpeg -i "spread.wav" -af "atrim=start=0.15,asetpts=PTS-STARTPTS,atempo=1.05" "rate-adjusted.wav"
With FFmpeg 8.0.1 we measured onsets at 0.981 and 6.980 seconds after this operation. Both were now about 0.020 seconds early. A practical editor can slide this adjusted track later by about that amount and check it again. Our detector took the first sample in each pulse with absolute magnitude above 1,000 on a signed 16-bit scale. Measuring the output gave a more honest answer than assuming the tempo filter would have sample-exact onsets.
Look for a break in the pattern
Find a third clear event between the first two. If it disagrees badly after the endpoints match, inspect for a missing section, a pause or a previous cut. An abrupt timing jump partway through a session calls for separate measurements on the portions on either side. Stretching the full session can introduce an error where one segment was already correct. When only a short highlight is needed, verify the portion you are delivering and retain the full recording for any later edit.
Export the final picture and sound together and reopen that finished file. Check the same reference events, including the last one, then listen at normal speed. Use ffprobe if you need to confirm which streams or sample rate made it into the delivery file. For a file that will not open at all, see the tested WebM conversion.
Frequently asked questions
Does a matching audio and video duration prove sync?
No. A sound can move inside a file while the two streams still end at the same time. Measure corresponding events.
What if only the microphone is late?
Work on that isolated track. Moving the whole mix would shift the game sound as well.
Can two points prove drift is linear?
They give a candidate rate. Use another event between them and inspect both sides of edits before accepting it.



