Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon 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 NowHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk7 min

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

Use an FFconcat playlist and FFmpeg’s infinite input loop to play recorded sermons in order on YouTube Live, with guidance on file compatibility, bitrate, rehearsal, and troubleshooting.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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

What you need before you start

  • A computer that can remain awake and connected for the broadcast, with FFmpeg installed and enough CPU or hardware-encoding capacity for your chosen output.
  • Local sermon video files stored in a stable directory. Do not rely on a removable drive or a workstation that may sleep during a long broadcast.
  • A YouTube channel with live streaming enabled and access to Live Control Room. YouTube’s encoder setup explains how to create or select a stream and connect an encoder: Create a YouTube live stream with an encoder.
  • A reliable wired or otherwise stable internet connection with upload capacity above the stream’s bitrate, including headroom for other network traffic.

This method re-encodes the playlist as it streams. FFmpeg’s concat demuxer does not normalize mismatched source files automatically, so check file compatibility before configuring the live output.

As an Amazon Associate I earn from qualifying purchases.

Check whether the sermon files can be concatenated

The concat demuxer expects every file in the list to have the same streams, codecs, and time bases. In practical terms, check that videos have compatible video and audio tracks, codecs, frame characteristics, and audio layouts. A sermon with no audio track, for example, may not fit cleanly alongside files with audio.

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

Duration metadata matters too: FFmpeg uses each file’s duration to place the next one on the timeline. Incorrect duration information, such as metadata from a truncated file or an inaccurate duration estimate, can create timestamp gaps or artifacts. Different audio and video lengths can also produce gaps as timestamps are adjusted across the playlist. See the FFmpeg Formats Documentation for concat-demuxer behavior, file syntax, path safety, and duration handling.

#1 Best Overall
Sale
Lexar D40E 128GB Dual USB 3.2 Gen 1 Type-C Jump Drive, Champagne Silver | USB-C Flash, Metal Housing, Swivel Design, Thumb Drive
  • USB-C 2-in-1 storage OTG: The Lexar JumpDrive Dual Drive D40E features USB Type-A and Type-C connectors in a slim, portable form factor for easy device compatibility
  • Transfer speeds up to 100MB/s: Based on internal testing, performance may vary depending upon the host device, interface, and usage conditions. 1MB=1,000,000 bytes
  • Plug and Play: Widely compatible with USB Type-C smartphones, tablets, laptops, Macs, and traditional Type-A devices, no software installation required. The 360° swivel design allows for easy switching between connectors without the hassle of losing a cap
  • Durable & Compact: The Lexar D40E USB memory stick features a metal enclosure, withstands temperatures from 0° to 50° C (32°F to 122°F), and is lightweight at 26g with dimensions of 70.4 x 16.9 x 11.7mm
  • Security & Warranty: Securely protects files using an advanced security software solution with 256-bit AES encryption. Backed by a Lexar 3-year limited warranty

If the files do not match, normalize them first to compatible dimensions, frame rate, codecs, audio layout, and time base, or use an FFmpeg filter-based concat workflow that re-encodes the inputs. That alternative requires more setup and processing; test it with your actual files rather than assuming a concat list will resolve their differences.

Create the FFconcat playlist

  1. Put the source files in a directory that will remain available throughout the broadcast.
  2. Create a plain-text file named sermon-playlist.ffconcat in that directory. Its first line must be exactly ffconcat version 1.0, with no leading text or byte-order mark.
  3. List the sermon files in the intended playback order. For example:
    ffconcat version 1.0
    file 'sermon-01.mp4'
    file 'sermon-02.mp4'
    file 'sermon-03.mp4'
  4. Save the list as plain text. Relative paths are simplest when the playlist and files are in a controlled working directory. Paths containing spaces or special characters need appropriate quoting or escaping.

By default, the concat demuxer applies safe-path checks. It accepts relative paths made from portable letters, digits, period, underscore, and hyphen, but rejects absolute paths, protocol-like paths, and path components starting with a period. If absolute paths are necessary, FFmpeg provides -safe 0 to relax these checks. Use it only with a playlist you trust; omit it when safe relative paths work.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds | USB Flash Drive, Up to 15x Faster than standard 2.0, Password Protection, Durable, Sleek Metal Casing, USB 3.0, Silver/Black
  • High-speed USB 3.0 performance of up to 150MB/s(1) [(1) Write to drive up to 15x faster than standard USB 2.0 drives (4MB/s); varies by drive capacity. Up to 150MB/s read speed. USB 3.0 port required. Based on internal testing; performance may be lower depending on host device, usage conditions, and other factors; 1MB=1,000,000 bytes]
  • Transfer a full-length movie in less than 30 seconds(2) [(2) Based on 1.2GB MPEG-4 video transfer with USB 3.0 host device. Results may vary based on host device, file attributes and other factors]
  • Transfer to drive up to 15 times faster than standard USB 2.0 drives(1)
  • Sleek, durable metal casing
  • Easy-to-use password protection for your private files(3) [(3)Password protection uses 128-bit AES encryption and is supported by Windows 7, Windows 8, Windows 10, and Mac OS X v10.9 plus; Software download required for Mac, visit the SanDisk SecureAccess support page]

Choose YouTube output settings

Use the exact ingest server URL and stream key displayed for the selected stream in YouTube Live Control Room. Do not rely on an endpoint copied from an old guide. YouTube supports RTMP and RTMPS ingest and recommends RTMPS, which carries RTMP over a TLS/SSL connection. Its encoder guidance also lists H.264, H.265, or AV1 video; AAC or MP3 audio; up to 60 fps; constant bitrate (CBR); and a two-second keyframe interval, with a four-second maximum. Check YouTube’s encoder settings, bitrate, and resolution guidance for the current table and settings.

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

For H.264, YouTube’s current guidance includes 10 Mbps for 1080p at 30 fps and 8 Mbps for 720p at 30 fps. These are recommendations, not guarantees that your connection can sustain them. Select output quality based on source quality, encoder capacity, and stable upload bandwidth. YouTube’s streaming tips recommend leaving 20% upload headroom; that is a useful planning margin, not a measurement of your particular connection.

Rank #3
Sale
2 Pack 64GB USB Flash Drive USB 2.0 Thumb Drives Jump Drive Fold Storage Memory Stick Swivel Design - Black
  • What You Get - 2 pack 64GB genuine USB 2.0 flash drives, 12-month warranty and lifetime friendly customer service
  • Great for All Ages and Purposes – the thumb drives are suitable for storing digital data for school, business or daily usage. Apply to data storage of music, photos, movies and other files
  • Easy to Use - Plug and play USB memory stick, no need to install any software. Support Windows 7 / 8 / 10 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, compatible with USB 2.0 and 1.1 ports
  • Convenient Design - 360°metal swivel cap with matt surface and ring designed zip drive can protect USB connector, avoid to leave your fingerprint and easily attach to your key chain to avoid from losing and for easy carrying
  • Brand Yourself - Brand the flash drive with your company's name and provide company's overview, policies, etc. to the newly joined employees or your customers

For an H.264 output with a fixed frame rate, set the GOP/keyframe interval to two seconds’ worth of frames. For example, at 30 fps that means 60 frames. Match -g and -keyint_min to that frame count, and disable scene-cut keyframes if you need a fixed interval. Use a bitrate, maximum rate, and buffer appropriate to the resolution and frame rate; the template below deliberately leaves those values for you to set.

Connect FFmpeg to YouTube Live

Replace the placeholders in this template with values suited to your output, and replace the destination with the exact RTMPS URL-and-key format shown in Live Control Room:

Rank #4
Sale
SIMMAX 32GB Memory Stick USB 2.0 Flash Drives Swivel Thumb Drive Pen Drive (32GB Purple)
  • GOOD VALUE PACKAGE - 1 Pack 32GB Memory Stick USB 2.0 Flash Drives with great cost performance and high quality.
  • BIG CAPACITY - The available capacity: 29.10GB-29.8GB, You can save the data of movies, music, photos, designs, programs, manuals, handouts in a high speed.Good performance in digital data storing, transferring and sharing with families, friends, workmates, clients and machines.
  • EASY TO USE & PLUG AND WORK - Support windows 7 / 8 / 10 / Vista / XP / 2000 / ME / NT Linux and Mac OS, Compatible with USB2.0 and below.
  • TWISTTURN DESIGN & EASY CARRY - The metal clip rotates 360° round the ABS plastic body which with rubber oil skin feeling finish. The capless design can avoid lossing of cap, and providing efficient protection to the USB port.
  • WARRANTY & SUPPORT - SIMMAX logo is laser printed on the USB connector surface, our products are of good quality and we promise that any problem about the product within one year since you buy.
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"

This is a configurable template, not a tested universal command. The concat playlist is the input, and -stream_loop -1 tells FFmpeg to repeat that input indefinitely. The FFmpeg documentation describes -stream_loop and its infinite value. Keep the loop option before the input it applies to. The -re option paces file input for live output; confirm its behavior with your installed FFmpeg build and rehearse the complete setup.

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

The example uses -safe 0 for convenience if the list needs paths that fail the default checks. Remove it when using safe relative paths. The command encodes video as H.264 and audio as AAC, but exact options may need adjustment for your FFmpeg version, available encoders, source resolution, fixed output frame rate, audio-less files, and YouTube ingest endpoint. If the sources do not have compatible streams, changing this command alone may not make concat-demuxer input reliable; normalize the files or build a filter-based concat pipeline.

Best Value
IMEASON Swivel Design 16GB USB Flash Drive with Keychain, USB 2.0 Portable Thumb Drive Memory Stick, FAT32 Format Flashdrive for Data Storage, Photos, Music, Files (Black, 16 GB)
  • 【16GB Flash Drive】USB flash drives with 16GB capacity, meet your needs of daily use on work, school, home and travelling for photos, music, videos, files storage and transfer. IMEASON thumb drives can be used to store different files, easy to data backup.
  • 【Metal Swivel Cap Design】USB thumb drive is metal swivel cover provides extra protection for the usb thumbdrive connector, no usb drive cap to lose; keychain design makes it easier to carry without worrying lose it.
  • 【Wide Compatibility】USB drive supports Windows 7/8/10/11 / Vista / XP / Unix / 2000 / ME / NT Linux and Mac OS, also Supports USB 2.0 and 1.1 ports. USB Stick support TV, desktop, notebook computer, car, audio and other device. The USB Memory Stick is your great data storage and transfer companion with traveling and working.
  • 【Easy to use】usb memory stick is plug and play without any software installation. Just simply plug the Flashdrive into the port of your USB-compatible devices such as computer, laptop to start data storage or transmission.
  • 【What You Get】16 GB USB Flash Drive Thumb Drive, The default format of the usb storage flash drive is FAT32.

The stream key is like a password and address for your stream. Do not put a real key in public examples, screenshots, shell transcripts, or source control. A key embedded in a command can also be exposed through shell history or process listings, depending on your system. Protect it where practical, and reset it in Live Control Room if it is compromised. YouTube explains key and stream controls in Manage live stream settings.

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

Rehearse, start, and monitor the stream

  1. Run the playlist locally through at least one complete cycle. Check the transition from the last sermon back to the first, audio continuity and levels, aspect ratio, and any black frames or silence.
  2. In YouTube Live Control Room, create or select the stream and copy its displayed ingest URL and stream key into your encoder configuration. Start FFmpeg so it begins sending the stream.
  3. Check the Live Control Room preview before making a scheduled event public. For a scheduled stream, wait for the preview and then select Go live. YouTube’s encoder setup instructions cover this connection flow.
  4. Monitor stream health messages and audio/video during the broadcast. YouTube recommends testing before going live and monitoring the stream; see its streaming tips.

A continuous local FFmpeg loop does not guarantee that YouTube will accept one uninterrupted live session indefinitely. YouTube’s current help page says streams under 12 hours are automatically archived. For a longer broadcast, plan for session limits and archive continuity rather than assuming the live event can continue without interruption.

Troubleshoot common problems

FFmpeg rejects the concat list

  • Cause: The first line is not exactly ffconcat version 1.0, or it has a byte-order mark or other text before it. Fix: Re-save as plain text with that exact first line at the beginning.
  • Cause: A path contains spaces or special characters, or fails concat demuxer safe-path checks. Fix: Quote or escape the path correctly; use portable relative paths where possible. Only use -safe 0 for a trusted local list that needs broader path support.

A transition has a gap, artifact, or broken audio

  • Cause: The files have different streams, codecs, time bases, or audio layouts, or one has inaccurate duration metadata. Fix: Inspect and normalize the files to compatible properties, or use a filter-based concat workflow and re-encode.
  • Cause: Audio and video lengths differ. Fix: Check both tracks and rehearse the full playlist to identify where timestamps or gaps become apparent.

YouTube does not show a preview or reports stream trouble

  • Cause: The server URL or stream key is incorrect, or the encoder has not begun sending. Fix: Copy the current URL and key from Live Control Room, verify the encoder destination, and confirm FFmpeg is running.
  • Cause: The selected bitrate exceeds stable upload capacity, or other traffic consumes bandwidth. Fix: Lower the output bitrate or resolution and leave upload headroom; test again while monitoring stream health.
  • Cause: A key was exposed or mistyped. Fix: Reset it in Live Control Room if compromised, then update the encoder configuration. Keep the replacement secret.

The stream stops when unattended

  • Cause: The computer sleeps, loses power or internet, the source drive disconnects, or FFmpeg exits. Fix: Keep the machine awake and powered, use stable local storage and networking, and monitor the process. A local setup depends on that computer and connection remaining available.

Or let it run in the cloud

If you want the sermon playlist to keep running without leaving a computer on at church, StreamNeo is a cloud service for keeping a YouTube channel live from uploaded videos. Upload the recording or build a playlist, add your YouTube stream key once, and go live. StreamNeo loops the videos from the cloud, so nothing has to stay on at home or at the church. It supports any quality up to 4K 60fps as uploaded at one flat price per slot, with automatic recovery if YouTube drops the stream. The first day is free with no card required; the monthly option is $9.99 per month. Start your free day with StreamNeo.

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

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
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair 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.