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 DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
VGSources
Blog

How to Loop a Church Sermon Playlist on YouTube Live with FFmpeg Concat

Use an FFconcat playlist and FFmpeg’s -stream_loop -1 to repeat church sermon recordings on YouTube Live, with setup steps and fixes for common failures.
Length6 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To loop recorded sermons on YouTube Live, list the files in playback order in an FFconcat playlist, then pass that playlist to FFmpeg with -stream_loop -1 before the input. The concat demuxer works best when every file has matching streams, codecs, and time bases. FFmpeg then sends a continuous encoded output to the RTMPS URL and stream key shown in your YouTube Live Control Room.

What you need before starting

  • FFmpeg installed on a computer that can stay awake and connected for the broadcast.
  • Local sermon video files in a stable directory; do not rely on a removable drive or a computer configured to sleep.
  • A YouTube channel with live streaming enabled and a stream configured in Live Control Room.
  • Enough sustained upload bandwidth for the output bitrate, with headroom for network variation and other traffic.

This workflow streams existing recordings, not a camera feed. YouTube’s current encoder guidance supports RTMP and RTMPS, H.264, H.265, and AV1 video, AAC or MP3 audio, up to 60 fps, and CBR. For broad compatibility, the example below encodes H.264 video and AAC audio. See YouTube’s encoder settings guidance for current options.

1. Check whether the sermon files can be concatenated directly

FFmpeg’s concat demuxer joins files by placing each one after the previous file on a shared timeline; it does not automatically make incompatible files match. The files should expose the same streams, codecs, and time bases. Check for differences such as a sermon with no audio track, a different audio layout, or a different video format. FFmpeg documents these requirements in its formats documentation.

Duration metadata matters too. The demuxer uses each file’s duration to place the next one. Incorrect duration information—for example, in a truncated or inaccurately indexed file—can produce timestamp gaps or artifacts. If the files do not match, normalize them to a common resolution, frame rate, video and audio codecs, audio layout, and time base before building the playlist, or use a filter-based concat workflow that re-encodes them. Re-encoding takes additional processing capacity and may reduce quality; choose settings appropriate for the originals and your encoder.

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.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

2. Create the FFconcat playlist

  1. Put the sermon files and playlist in a stable working directory.
  2. Create a plain-text file named sermon-playlist.ffconcat. Its first line must be exactly ffconcat version 1.0, with no leading text or byte-order mark.
  3. List each file in the order you want it played. For example:
    ffconcat version 1.0
    file 'sermon-01.mp4'
    file 'sermon-02.mp4'
    file 'sermon-03.mp4'

Relative paths are simplest when the playlist and recordings are in the same controlled directory. The concat demuxer’s default safe-path mode accepts portable relative paths but rejects absolute paths, protocol-like paths, and path components beginning with a period. Quote or escape paths containing spaces or special characters. If you need absolute paths, -safe 0 allows them; use it only with a playlist you trust, because it relaxes path checks.

3. Set the YouTube ingest details and output settings

In YouTube Studio, open Live Control Room and select or create the stream. Copy the exact server URL and stream key displayed there rather than relying on an old endpoint from another guide. YouTube describes a stream key as both an address and a password for the stream: keep it out of public examples, screenshots, shell transcripts, and source control. If it is exposed, reset it in Live Control Room. Details are in Manage live stream settings.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Choose output resolution and frame rate to suit the source material, encoder capacity, and stable available upload bandwidth. YouTube’s current H.264 guidance includes 10 Mbps for 1080p at 30 fps and 8 Mbps for 720p at 30 fps; these are recommendations, not proof that a particular connection can sustain those rates. YouTube recommends CBR and a two-second keyframe interval, with a four-second maximum. Its streaming tips recommend leaving 20% upload headroom.

For a fixed output frame rate, set the GOP length to roughly two seconds of frames: for example, 60 frames at 30 fps. Set the video bitrate and buffer consistently with the selected encoder and YouTube’s current guidance. The following is a template, not a universal tested command; substitute suitable values and the exact ingest URL/key format shown for your stream:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i sermon-playlist.ffconcat 
  -c:v libx264 -preset veryfast -b:v VIDEO_BITRATE -maxrate VIDEO_BITRATE 
  -bufsize VIDEO_BUFFER -g GOP_FRAMES -keyint_min GOP_FRAMES -sc_threshold 0 
  -c:a aac -b:a AUDIO_BITRATE -f flv "$YOUTUBE_RTMPS_INGEST_URL"

For safe relative filenames, omit -safe 0. The value -stream_loop -1 tells FFmpeg to repeat the entire playlist indefinitely; it is an input option and belongs before -i, as documented in the FFmpeg manual. -re paces file input for live output, but behavior can vary with the installed FFmpeg build; rehearse with your actual command. This example re-encodes to a continuous output, which helps when sources differ, but mismatched concat-demuxer inputs may still fail or show timestamp problems. Encoder availability, audio-less files, and the chosen endpoint may require adjustments. Avoid putting the real key in a command that can be exposed through shell history or process listings where practical.

4. Test the playlist and start the stream

  1. Run the complete playlist through at least one full cycle before the service. Listen for abrupt level changes, silence, or audio breaks; watch for black frames, aspect-ratio changes, and the transition from the final sermon back to the first.
  2. Start FFmpeg and check that it is sending data without recurring errors.
  3. Open the stream’s preview in Live Control Room. YouTube’s encoder setup instructions describe connecting the encoder and checking the preview; for a scheduled stream, wait for preview before selecting Go live.
  4. Monitor Live Control Room’s stream health messages and the audio and video during the broadcast. Use YouTube’s RTMPS guidance to understand its encrypted RTMP transport; choose RTMPS when the exact endpoint is available.

YouTube says streams under 12 hours are automatically archived. For a continuous event longer than that, plan for YouTube’s session limit and archive continuity instead of assuming one stream will remain live indefinitely.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Common problems and fixes

Symptom Likely cause What to check or do
Playlist is rejected before playback Incorrect first line, leading text or byte-order mark, path syntax error, or a path blocked by safe mode. Make ffconcat version 1.0 the exact first line; verify quoting and paths. Prefer safe relative paths, or use -safe 0 only for a trusted list.
Concat fails or a transition breaks Files have different streams, codecs, time bases, or audio layouts. Compare file properties, then normalize the files or use a filter-based concat pipeline that re-encodes.
Audio/video gap or visual artifact at a transition Duration metadata is inaccurate, audio and video lengths differ, or timestamps are discontinuous. Check file integrity and durations, then rehearse a full cycle. Normalize problematic sources before streaming.
Stream buffers or health warnings appear Bitrate exceeds stable upload capacity, other traffic is competing for bandwidth, or the encoder cannot sustain the workload. Lower output bitrate or resolution, leave upload headroom, and test the chosen settings under realistic network conditions.
Preview does not appear FFmpeg is not sending to the current URL/key, the stream is not configured as expected, or connection details are mistyped. Copy the URL and key again from Live Control Room, verify FFmpeg output, and check stream status messages. Reset the key if it may have been exposed.
Stream stops when nobody is at the computer The local workstation slept, lost power or network, or FFmpeg exited. Prevent sleep, ensure reliable power and connectivity, and monitor the host process; a local-file workflow depends on that computer and connection remaining available.

Or let it run in the cloud

If you would rather not keep a computer running at church, StreamNeo is a cloud service for keeping a YouTube channel live from uploaded videos. Upload a recording or build a playlist, add your YouTube stream key, and go live. Nothing has to stay on at home; StreamNeo loops uploaded video in the cloud and automatically recovers if YouTube drops the stream. Each slot streams the uploaded quality up to 4K 60fps at one flat price per slot. The first day is free with no card; one free day is available per account. Monthly billing is $9.99 per month. For Indian channels, UPI works, as well as cards.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Start your free StreamNeo day.

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.

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

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 quests from Patch Notes

  1. How To Create Custom Stickers & Shoutouts In Monster Hunter WildsMonster Hunter WildsBlog20min
  2. How to Get XL Gogoat in Pokemon Legends Z-A (An Extra-Large Gogoat)Pokemon Legends Z-ABlog20min
  3. How to Get Rotting Lightbringer in Diablo 4Diablo 4Blog17min
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.