October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk5 min

How to Check and Improve Subtitle Timing with FFmpeg

Diagnose a constant subtitle delay versus timing drift, then choose the right FFmpeg workflow for soft streams, bitmap subtitles, or burned-in text.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To fix subtitles that are out of sync, first check whether they are consistently early or late, or whether the error changes over time. A measured, constant lead or delay can often be corrected by shifting a soft subtitle stream with FFmpeg’s -itsoffset. Growing drift needs retiming or investigation of the source timelines; one fixed shift will not correct it. FFmpeg and ffprobe can inspect and process streams, but they do not automatically determine whether each cue matches the dialogue.

First identify the subtitle stream

Use ffprobe to list the file’s streams and identify the subtitle stream you intend to inspect or change. Note its stream index, codec or format when available, language, and disposition metadata. The ffprobe documentation explains stream information and selection; s is the stream specifier for subtitle streams.

As an Amazon Associate I earn from qualifying purchases.

For example, this command requests stream details in a readable format:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ffprobe -v error -show_streams -of json input.mkv

Use the output to confirm which subtitle stream is present before mapping it. Metadata can tell you what streams the file contains, but it cannot establish that a particular cue is synchronized with the spoken words.

#1 Best Overall
Westinghouse Roku 55 Inch Smart TV, 4K UHD, Apple AirPlay 2, Alexa
  • 4K Ultra High Definition With HDR10
  • Smart Home Technology
  • Built-In Wi-Fi

Check whether the problem is a constant offset or drift

Compare the subtitle cue timing with the corresponding speech or on-screen event at several points: the first usable cue, one or more cues near the middle, and a late cue. Do this while viewing and listening to the actual media.

  • About the same lead or delay throughout: a constant timestamp shift may be appropriate.
  • The mismatch grows or changes over time: a single shift will not fix it. Measure the mismatch at multiple points, then retime the cues or investigate whether the audio, video, and subtitle tracks come from different timelines or versions.

This comparison is a diagnostic workflow, not an automatic ffprobe or FFmpeg synchronization analysis. If the beginning aligns but the end does not, do not choose a shift based only on the first cue.

Rank #2
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Black
  • Suspenseful Music Funny Closed Caption Movie TV Web Subtitles. The soundtrack to your suspenseful superhero anti hero daring thrilling life. Does Suspenseful Music follow you everywhere? Then you need this Closed Caption design to let people know what's up
  • Suspenseful Music Funny Closed Caption Movie TV Web Subtitles. Good guy or femme fatale? Hard to tell but all that mysterious and suspenseful music around you sounds really exciting. Love the soundtrack to your life!
  • Breathable polyester mesh with tricot backing for moisture control
  • Adjustable hook-and-loop closure for custom fit

Shift a soft subtitle stream by a measured amount

For a selectable subtitle stream, FFmpeg’s -itsoffset input option adds an offset to timestamps. A positive value delays the corresponding input streams; a negative value advances them. Put the option before the input it should affect. The FFmpeg documentation defines the option, and an FFmpeg handbook example shows the approach with an SRT input.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In this illustrative command, the subtitle input is delayed by 1.2 seconds. Use a value measured against your own file; 1.2 seconds is not a general correction.

Rank #3
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Sport Sun Visor, Adult, One Size, Purple
  • Dissonant Chord Funny Closed Caption Movie TV Web Subtitles. The soundtrack to your fun quirky rock n roll guitar god superhero anti hero daring thrilling life. The vibe is quirky and fun where ever you go!
  • Dissonant Chord Funny Closed Caption Movie TV Web Subtitles. A dissonant chord is combination of notes that are unpleasant or harsh to the ear, and are often perceived as clashing sounds. Sometimes its the perfect vibe.
  • Breathable polyester mesh with tricot backing for moisture control
  • Adjustable hook-and-loop closure for custom fit
ffmpeg -i video.mp4 -itsoffset 1.2 -i subtitles.srt 
  -map 0:v:0 -map 0:a? -map 1:0 
  -c:v copy -c:a copy -c:s srt output.mkv

The mapping selects the first video stream, any audio streams from the video input, and the subtitle stream from the second input. The question mark makes the audio mapping optional. The example copies video and audio and encodes the subtitle as SRT; it is not a guarantee that every input codec, subtitle format, and target container combination is compatible. Verify the mappings and codec support for your files, then inspect the output at the beginning, middle, and end. Keep the original file so you can revise the correction if needed.

Handle growing drift by retiming, not by repeating a fixed shift

A constant offset moves all affected timestamps by the same amount. It can correct a uniform lead or lag, but it cannot make an error that grows across the runtime disappear. If the mismatch changes, determine how it changes by comparing several cues against the same events in the picture and sound. Then retime the subtitle cues or identify the differing source timeline before producing a corrected file.

Rank #4
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Navy
  • Suspenseful Music Funny Closed Caption Movie TV Web Subtitles. The soundtrack to your suspenseful superhero anti hero daring thrilling life. Does Suspenseful Music follow you everywhere? Then you need this Closed Caption design to let people know what's up
  • Suspenseful Music Funny Closed Caption Movie TV Web Subtitles. Good guy or femme fatale? Hard to tell but all that mysterious and suspenseful music around you sounds really exciting. Love the soundtrack to your life!
  • Breathable polyester mesh with tricot backing for moisture control
  • Adjustable hook-and-loop closure for custom fit

Also distinguish cue timing from cue duration: a cue may start at the right moment but remain visible too long or disappear too soon. Duration correction is a separate issue from shifting all timestamps.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Know whether subtitles are soft, bitmap, or burned in

Subtitle representation What FFmpeg is doing Timing workflow
Soft text subtitle stream, such as SRT The subtitle is a separate stream that can remain selectable in the output. A measured input timestamp offset can be applied when the error is consistently early or late; verify output mapping and format compatibility.
Bitmap subtitle stream The subtitle is a separate stream represented as images rather than ordinary text. Inspect the stream and its timing behavior. Some bitmap subtitle codecs have duration handling that may call for -fix_sub_duration, but that option is not a general synchronization correction.
Burned-in subtitles The text is rendered into the video picture rather than muxed as a separate subtitle stream. Changing the timestamp of a muxed subtitle input is not interchangeable with shifting video frames through the subtitles filter. Adjust the cue timing or rendering workflow, then inspect the rendered video.

The FFmpeg handbook’s subtitle guidance distinguishes rendering subtitles with the video filter from muxing a subtitle stream. Choose the workflow based on whether you need subtitles to remain selectable or want them permanently visible in the picture.

Best Value
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Adjustable Printed Baseball Hat, Slate Grey
  • Dissonant Chord Funny Closed Caption Movie TV Web Subtitles. The soundtrack to your fun quirky rock n roll guitar god superhero anti hero daring thrilling life. The vibe is quirky and fun where ever you go!
  • Dissonant Chord Funny Closed Caption Movie TV Web Subtitles. A dissonant chord is combination of notes that are unpleasant or harsh to the ear, and are often perceived as clashing sounds. Sometimes its the perfect vibe.
  • Classic five-panel structured baseball hat with high-profile crown
  • Adjustable fit; one size fits most adults
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Use -fix_sub_duration only for the duration issue it addresses

FFmpeg’s -fix_sub_duration waits for the next packet in the same subtitle stream and adjusts the preceding subtitle’s duration. The FFmpeg command-line documentation describes its use for certain subtitle codecs, especially DVB bitmap subtitles, where packet duration may be approximate and an empty subtitle frame marks the end.

This is not a general way to delay or advance subtitles, nor does it detect dialogue alignment. In applicable cases it can delay output until the next subtitle packet and substantially increase memory use and latency. Check whether the stream and symptom fit the option before enabling it.

Verify the corrected output and account for version differences

  1. Run ffprobe on the output to confirm the expected video, audio, and subtitle streams are present and to check their metadata.
  2. Play the output and compare cues at the beginning, middle, and late in the runtime against speech or events.
  3. If the output has missing streams, unsupported subtitle encoding, or the wrong timing pattern, revisit stream mapping, container compatibility, and whether the problem is an offset or drift.
  4. Check the options available in your installed FFmpeg version. The official FFmpeg documentation is regenerated nightly and recommends local documentation for older revisions.

For a common timestamp shift, FFmpeg’s documentation notes that relative timestamp differences between audio, video, and subtitles are preserved. That is why shifting an input is appropriate for a uniform offset, but not a cure for drift that changes over time. Test the actual subtitle format and output container rather than assuming a command that works for one file will work for all.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Quick Recap

Bestseller No. 1
Westinghouse Roku 55 Inch Smart TV, 4K UHD, Apple AirPlay 2, Alexa
Westinghouse Roku 55 Inch Smart TV, 4K UHD, Apple AirPlay 2, Alexa
4K Ultra High Definition With HDR10; Smart Home Technology; Built-In Wi-Fi
$369.99
Bestseller No. 2
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Black
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Black
Breathable polyester mesh with tricot backing for moisture control; Adjustable hook-and-loop closure for custom fit
$17.99
Bestseller No. 3
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Sport Sun Visor, Adult, One Size, Purple
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Sport Sun Visor, Adult, One Size, Purple
Breathable polyester mesh with tricot backing for moisture control; Adjustable hook-and-loop closure for custom fit
$17.99
Bestseller No. 4
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Navy
Suspenseful Music Funny Closed Caption Movie TV Web Subtitle Sport Sun Visor, Adult, One Size, Navy
Breathable polyester mesh with tricot backing for moisture control; Adjustable hook-and-loop closure for custom fit
$17.99
Bestseller No. 5
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Adjustable Printed Baseball Hat, Slate Grey
Dissonant Chord Funny Closed Caption Movie TV Web Subtitles Adjustable Printed Baseball Hat, Slate Grey
Classic five-panel structured baseball hat with high-profile crown; Adjustable fit; one size fits most adults
$19.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.