If the sound in a family recording is early or late by roughly the same amount throughout, a fixed time shift may help. If the gap grows, jumps after a cut, or happens only in one playback setup, establish that pattern before changing the file.
Keep the original and work on a separate copy. These steps are for local recordings you own or are authorized to process.
Find out what is actually out of step
Choose a visible event with a recognizable sound—a clap or a close-up of someone speaking. Check comparable events near the beginning, middle and end. Write down whether sound comes first or last and the approximate difference at each point.
| What you observe | What to do next |
|---|---|
| Sound leads by about the same amount at all three points | Try delaying the audio in a working copy. |
| Sound trails by about the same amount | Try delaying the video relative to the audio. |
| The difference increases or changes suddenly | Stop the fixed-offset route. Inspect the original and the edit or conversion that introduced the change. |
| The problem occurs only in one player or audio-output setup | Compare the unchanged file in another setup before modifying it. |
Reset any existing player synchronization adjustment first. Compare the original and converted copy in the same player, using the same audio output. If practical, also try built-in or wired audio and another player. This separates a file-editing decision from a playback-specific symptom; it does not diagnose a particular device.
VLC documents synchronization controls that can help you try a delay during playback. Observe which direction improves the event, and note the approximate correction. A playback adjustment is not an exported, corrected MP4.
Inspect the selected tracks
The commands require FFmpeg and ffprobe in your terminal. Check ffmpeg -version and ffprobe -version; the official download page links to builds.
ffprobe -v error -show_entries stream=index,codec_type,codec_name,start_time,duration:stream_tags=language,title -of json "family.mp4"
Confirm which video and audio you want. The examples below select only the first video and first audio track. If another soundtrack is required, select it explicitly; see the audio and subtitle retention checklist.
Different start_time values alone do not prove that the content is out of sync. Use recognizable events to judge the correction. These commands make a viewing copy, not a complete preservation copy of every subtitle, chapter, extra track or metadata field.
Sound comes too early: delay the audio
Suppose sound arrives about 0.400 seconds before its visible event throughout the recording. Use a new output filename:
ffmpeg -n -i "family.mp4" -itsoffset 0.400 -i "family.mp4" -map 0:v:0 -map 1:a:0 -c copy "family-audio-delayed.mp4"
FFmpeg opens the same file twice. The video comes from input 0; the audio comes from input 1, whose timestamps receive the positive offset. Replace 0.400 with your measured difference in seconds. It is an example, not a recommended default.
Sound comes too late: delay the video
For sound that consistently follows the picture by about 0.400 seconds, the alternative is to delay the picture:
ffmpeg -n -i "family.mp4" -itsoffset 0.400 -i "family.mp4" -map 1:v:0 -map 0:a:0 -c copy "family-video-delayed.mp4"
Here the selected video comes from the delayed input and the audio from the unchanged input. This changes their relative timing without moving a stream into negative time to advance it.
FFmpeg’s offset documentation defines positive offsets as delays. Both examples use -c copy to avoid another encode of the selected streams, and -n to refuse an existing output name. They do not filter the audio or stretch its duration.
Check the new file with player delay reset
A shift can change which stream covers the start or end of the file. It does not generate missing pictures or sound. Inspect those edges as well as your three reference events, with the player’s delay back at zero. Do not add -shortest casually: ending at the shorter stream can remove material you meant to keep.
Check the selected soundtrack, seeking and playback on the intended destination. If one event aligns but later ones do not, return to the original and investigate the changing offset. Converting to CFR is not a general proof of repair; the frame-rate guide explains when that setting serves a specific delivery requirement.
Our generated six-second samples exercised both commands. Each output retained the selected 150 video packets and 283 audio packets with matching encoded payloads. The requested audio shift measured approximately 0.3993 seconds in packet timestamps; the video shift measured 0.400 seconds. Both files decoded without reported errors, and the inputs stayed unchanged. This checks the commands on those synthetic files, not perceptual synchronization or hardware compatibility.
The ffprobe documentation covers structural inspection. Successful decoding and matching packet data do not replace watching the result. Keep the original under your archive plan and use the backup verification workflow when storing the accepted copy.