DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan Now×
Skip to content
DocumentaryTube
Admit one · Blog

FFmpeg YouTube Live Loop Audio Out of Sync: How to Diagnose and Fix It

A fixed audio offset, accumulating drift, and a jump at each loop need different checks. Inspect stream metadata and FFmpeg timing before changing your command.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

First determine whether the audio is out of sync by a steady amount, drifts farther out over time, or jumps at each loop. Those are different problems: a fixed delay may call for a measured offset, while accumulating drift or a loop-boundary jump calls for checking timestamps, frame synchronization, and the source file. There is no reliable one-command fix without your FFmpeg command, version, and media details.

Classify the sync problem before changing anything

  • Fixed offset from the start: The audio is consistently early or late by roughly the same amount. Check the streams’ start times first; consider an offset only after measuring which stream leads and by how much.
  • Growing drift: Audio and video begin close together but separate progressively. Investigate timing and rate behavior, source timestamps, frame-rate conversion, and output synchronization. A one-time delay cannot correct a mismatch that keeps changing.
  • Jump at each repeat: Sync changes when the video loops. Inspect the track boundaries and timestamp continuity around the loop point.
  • Only YouTube appears out of sync: Compare local playback with YouTube’s Live preview and stream-health indicators. This helps distinguish behavior in the source or encoder from what you observe downstream; it does not by itself identify the cause.

These patterns guide diagnosis; they do not establish a cause for a stream whose command and media are unknown. Save your current command and note your FFmpeg version before troubleshooting. Change one setting at a time so you can tell what affected the result.

Inspect the media’s audio and video timelines

Use ffprobe to inspect the input before altering timestamps. Record the audio and video stream codecs, start times, durations, audio sample rate, and video frame-rate and time-base information. Compare the streams’ start times and durations rather than assuming they begin and end together.

YouTube’s [troubleshooting guidance for audio and video not syncing](https://support.google.com/youtube/answer/2853702) notes that unequal audio and video track durations can prevent them from syncing and advises editing the tracks so their durations match. Treat that as a useful source-file check, not proof that duration differences explain every live-loop problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Focusrite Scarlett Solo 3rd Gen USB-C Audio Interface
  • Pro performance with great pre-amps - Achieve a brighter recording thanks to the high performing mic pre-amps of the Scarlett 3rd Gen. A switchable Air mode will add extra clarity to your acoustic instruments when recording with your Solo 3rd Gen
  • Get the perfect guitar and vocal take with - With two high-headroom instrument inputs to plug in your guitar or bass so that they shine through. Capture your voice and instruments without any unwanted clipping or distortion thanks to our Gain Halos
  • Studio quality recording for your music & podcasts - Achieve pro sounding recordings with Scarlett 3rd Gen’s high-performance converters enabling you to record and mix at up to 24-bit/192kHz. Your recordings will retain all of their sonic qualities
  • Low-noise for crystal clear listening - 2 low-noise balanced outputs provide clean audio playback with 3rd Gen. Hear all the nuances of your tracks or music from Spotify, Apple & Amazon Music. Plug-in headphones for private listening in high-fidelity
  • Everything in the box: Includes Pro Tools Intro+, Ableton Live Lite, Cubase LE, and Hitmaker Expansion: a suite of essential effects, powerful software instruments, and easy-to-use mastering tools

Listen to or inspect the beginning and the section immediately before and after the repeat. A jump at that boundary points you toward the file’s track boundaries and timestamp continuity there. Smoothly increasing drift points more toward the streams’ timing relationship or output sync behavior. These are diagnostic inferences, so confirm them against the actual media and logs.

Check how FFmpeg loops and synchronizes streams

Confirm the loop applies to the intended input

FFmpeg documents -stream_loop as an input option. Check that it appears before the input it is meant to loop, and inspect the stream mapping to confirm the intended audio and video are both sent to the output. FFmpeg notes that mapping can affect which stream’s timestamps are used for synchronization. -stream_loop -1 requests indefinite looping; it is not a general-purpose audio-sync correction.

Rank #2
Focusrite Scarlett Solo 4th Gen USB-C Audio Interface
  • The new generation of the songwriter's interface: Plug in your mic and guitar and let Scarlett Solo 4th Gen bring big studio sound to wherever you make music
  • Studio-quality sound: With a huge 120dB dynamic range, the newest generation of Scarlett uses the same converters as Focusrite’s flagship interfaces, found in the world's biggest studios
  • Find your signature sound: Scarlett 4th Gen's improved Air mode lifts vocals and guitars to the front of the mix, adding musical presence and rich harmonic drive to your recordings
  • All you need to record, mix and master your music: Includes industry-leading recording software and a full collection of record-making plugins
  • Everything in the box: Includes Pro Tools Intro+, Ableton Live Lite, Cubase LE, and Hitmaker Expansion: a suite of essential effects, powerful software instruments, and easy-to-use mastering tools

Review output frame synchronization

FFmpeg’s -fps_mode controls video frame synchronization. The documented modes include:

  • passthrough: pass demuxer timestamps through.
  • cfr: duplicate or drop frames to achieve the requested constant frame rate.
  • vfr: pass timestamps through or drop frames to avoid duplicate timestamps.
  • auto: select a mode based on what the muxer supports.

These modes affect video timing; they are not interchangeable audio-delay fixes. FFmpeg also cautions that a muxer may further modify timestamps. Choose settings based on your input and delivery needs, and consult the documentation for your installed build. The current FFmpeg documentation marks the older -vsync option as deprecated; where applicable, use the per-stream -fps_mode approach described for your version. FFmpeg command-line documentation.

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.
Rank #3
SABRENT USB External Stereo Sound Card Adapter, Plug & Play (AU-MMSA)
  • PLUG IN AND HEAR SOUND IN SECONDS - USB Type-A connector with a 3.5mm stereo headphone output and a separate 3.5mm mono microphone input. No drivers, no software, no external power - the adapter is USB bus-powered and is recognized as a standard USB audio device.
  • WORKS ON WINDOWS, MAC AND LINUX - Driverless on Windows 98SE/ME/2000/XP/Server 2003/Vista/7/8, Linux and Mac OSX, and compliant with the USB Audio Device Class 1.0 specification, so any system that supports class-compliant USB audio will see it. Select it as the sound output and input device after plugging it in.
  • TWO JACKS, TWO JOBS - The green jack is stereo OUT for headphones or powered speakers; the pink jack is mono microphone IN for a 3.5mm mic. It does NOT support 4-pole headsets on a single combo plug, it does NOT power passive speakers, and it does NOT add surround sound - it is a stereo 2-channel adapter.
  • FOR LAPTOPS AND DESKTOPS THAT NEED AN AUDIO PORT BACK - Adds a headphone and mic port to a laptop, desktop, or mini PC whose onboard jack has failed or was never there. Managed and work-issued computers can block new USB audio devices by policy - check with your IT department before ordering for a company machine.
  • SABRENT SUPPORT AND WARRANTY - What is in the box: one USB audio sound adapter. Backed by a 1-year limited warranty, extended to 2 years when you register within 90 days on the manufacturer's website.

FFmpeg’s documentation describes synchronizing streams to an unchanged stream: “You can leave either video or audio unchanged and sync the remaining stream(s) to the unchanged one.” That explains an available approach, not which stream should be the reference for your case. Decide only after identifying the timing problem.

Use FFplay and logs to observe drift

FFplay’s -stats output includes playback position and audio/video synchronization drift. Use it to observe whether drift changes during local playback. It is a diagnostic observation, not a guarantee that YouTube’s live ingest will behave identically. FFplay also documents master-clock selection as mainly a debugging option, rather than a universal repair. See the FFplay documentation.

Rank #4
M-AUDIO M-Track Duo USB Audio Interface
  • Podcast, Record, Live Stream, This Portable Audio Interface Covers it All - USB sound card for Mac or PC delivers 48kHz audio resolution for pristine recording every time
  • Be ready for anything with this versatile M-AUDIO interface - Record guitar, vocals or line input signals with two combo XLR / Line / Instrument Inputs with phantom power
  • Everything you Demand from an Audio Interface for Fuss-Free Monitoring - 1/4" headphone output and stereo 1/4" outputs for total monitoring flexibility; USB/Direct switch for zero latency monitoring
  • Get the best out of your Microphones - M-Track Duo’s transparent Crystal Preamps guarantee optimal sound from all your microphones including condenser mics
  • The MPC Production Experience - Includes MPC Beats Software complete with the essential production tools from Akai Professional

Review the FFmpeg output and error logs alongside the media metadata. Look for timestamp warnings or unexpected frame handling, then compare local playback with YouTube’s preview. Do not introduce a guessed -itsoffset, audio delay, or resampling correction before establishing which stream is early and whether the offset is constant.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify YouTube’s encoder settings and connection

YouTube’s general encoder settings guidance for RTMP/RTMPS lists AAC or MP3 audio and constant bitrate (CBR). It recommends a two-second keyframe interval and says not to exceed four seconds. Its advanced settings recommend 44.1 kHz for stereo audio and 48 kHz for 5.1 audio; the listed recommended audio bitrates are 128 kbps for stereo and 384 kbps for 5.1. These are YouTube ingestion recommendations, not a diagnosis of sync drift. Test with representative audio and video, then monitor stream health.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Focusrite Scarlett 2i2 4th Gen USB-C Audio Interface
  • The new generation of the artist's interface: Connect your mic to Scarlett's 4th Gen mic pres. Plug in your guitar. Fire up the included software. Start making your first big hit
  • Studio-quality sound: With a huge 120dB dynamic range, the newest generation of Scarlett uses the same converters as Focusrite’s flagship interfaces, found in the world's biggest studios
  • Never lose a great take: Scarlett 4th Gen's Auto Gain sets the perfect level for your mic or guitar, and Clip Safe prevents clipping, so you can focus on the music
  • Find your signature sound: Air mode lifts vocals and guitars to the front of the mix, adding musical presence and rich harmonic drive to your recordings
  • With Scarlett 4th Gen, you have all you need to record, mix and master your music: Includes industry-leading recording software and a full collection of record-making plugins

For setup, YouTube’s live encoder instructions say to enter the stream URL and stream key in the encoder. Treat the key as a private credential: anyone who has it may be able to send a feed to your channel. YouTube states that streams under 12 hours are automatically archived; that is operational context, not a sync remedy.

YouTube recommends RTMPS, the encrypted extension of RTMP. If connection diagnostics point to a transport problem, check that the server URL is correct and that your encoder supports RTMPS. YouTube’s troubleshooting guidance discusses port 443 where an SSL connection requires it. Do not switch protocols as a sync fix unless connection evidence points to a transport issue.

Follow this troubleshooting sequence

  1. Preserve the baseline. Save the command line and note the installed FFmpeg version.
  2. Classify the symptom. Decide whether the offset is stable, grows over time, or returns at every loop boundary.
  3. Inspect the input. Compare audio and video start times, durations, sample rate, frame rate, and timestamp/time-base metadata.
  4. Audit the command. Check input-option placement for -stream_loop, stream mapping, timestamp handling, and frame-sync options against the documentation for your FFmpeg build.
  5. Observe playback. Where useful, run local playback with FFplay statistics and compare it with YouTube’s Live preview and stream-health indicators.
  6. Check the live configuration. Confirm the server URL, protocol, audio format, CBR, keyframe interval, and relevant sample rate; run a representative test.
  7. Change one variable at a time. Apply a measured offset only for a stable, measured offset. If the mismatch grows, investigate timing or rate behavior instead of adding a fixed delay.

Or let it run in the cloud

If your goal is a 24/7 YouTube loop, StreamNeo is an alternative: upload a recording or build a playlist, add your YouTube stream key once, and go live. It loops uploaded videos from the cloud, so your computer and home connection do not have to stay on. Each slot streams the upload as made, up to 4K 60fps, at one flat price per slot; it automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month.

See StreamNeo for details, or start the free first day.

Free tools Windows power users keep installed

One-click scans. No signup required.

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

What to include when asking for a specific fix

A precise correction depends on the command, media, and observed behavior. To make a diagnosis actionable, share the FFmpeg version, command with the stream key removed, relevant audio and video metadata, which stream leads, the approximate offset, and whether it stays constant, grows, or jumps at the loop. Include whether the mismatch is present in local playback or only in YouTube’s preview.

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 Screening Room

  1. Addicted to Pleasure: TobaccoAdmit one · DrugsAddicted to Pleasure: TobaccoOpened05 OCT 2026Runtime2 min
  2. The psychology of digital marketingAdmit one · TechnologyThe psychology of digital marketingOpened05 OCT 2026Runtime4 min
  3. Mathilde’s Misses: 18 months with Miss HomelessAdmit one · SocialMathilde's Misses: 18 months with Miss HomelessOpened05 OCT 2026Runtime2 min
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

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.