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

Use FFmpeg’s concat demuxer to join an ordered list of MP4 files into one continuous encoder feed, then send that feed to YouTube Live with the server URL and stream key from YouTube Studio. The playlist controls the order of the videos; YouTube’s event controls determine when the broadcast is shown to viewers.

What you need

  • A server with FFmpeg installed and access to the MP4 files.
  • A YouTube channel able to create a live stream, plus its ingest server URL and stream key from YouTube Studio’s Live Control Room.
  • A stable server connection and enough capacity to read and encode the media while sending the stream.

Keep the stream key private: anyone who obtains it may be able to send a feed to your stream. Do not publish it in a script repository, a public command example, or logs.

Prepare the files and playlist

Check the files first

For a reliable concatenation, use files with matching resolution, frame rate, video codec, and audio codec. This is practical guidance for the concat workflow, not a separate YouTube requirement. Different characteristics can cause playback or transition problems, so test the exact files you intend to broadcast.

Write the playlist in playback order

Create a text file such as playlist.txt, with one file entry for each MP4. The order of the entries is the order FFmpeg will read them:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Lexar D40E 128GB Dual USB 3.2 Gen 1 Type-C Jump Drive, Champagne Silver
  • 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
file '/path/to/first.mp4'
file '/path/to/second.mp4'
file '/path/to/third.mp4'

Use paths that are accessible from the server account running FFmpeg. If a path contains a single quote, spaces, or unusual characters, check the concat-demuxer quoting rules for your installed FFmpeg version rather than assuming the example will work unchanged.

Configure YouTube Live

  1. Open YouTube Studio and enter the Live Control Room.
  2. Create or select the live stream or scheduled event you intend to use.
  3. Copy the stream’s server URL and stream key from YouTube Studio into your encoder configuration. Treat the key as a password and use a private configuration method rather than committing it to a public script.
  4. Decide whether you are preparing one continuous show or separate scheduled events. A playlist is media sequencing for one encoder feed; it is not a schedule of separate broadcasts.

YouTube’s API distinguishes the ingest configuration (liveStream) from viewer-facing scheduled or live events (liveBroadcast). One stream configuration can be associated with recurring broadcasts, but only one event can be live at a time. See YouTube Live Streaming API documentation.

Rank #2
SANDISK 128GB Ultra Flair, USB-A Flash Drive, Up to 150MB/s Read Speeds
  • 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]

Send the playlist from the server

Use FFmpeg’s concat demuxer as the input and configure the output for the YouTube ingest address and key. The exact command depends on the installed FFmpeg version, input formats, and chosen YouTube ingest protocol. The available sources for this workflow do not establish a version-independent command line, so verify syntax against the FFmpeg documentation for the version installed on your server before using it in production. Use placeholders in scripts or examples; never expose a real stream key.

YouTube’s setup guidance is to enter the Live server URL and stream key in the encoder. Start FFmpeg, then wait for the incoming feed to appear in the Live Control Room preview. For a scheduled event, use YouTube’s event controls to select Go live after the preview is available. When finished, stop the outgoing feed and end the event using the controls shown in the Live Control Room. Follow YouTube’s live streaming setup guidance for the current interface.

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

Choose an ingest protocol

Protocol What to know
RTMP or RTMPS YouTube documents RTMPS as RTMP carried through an SSL connection. The practical FFmpeg playlist guide uses RTMP for this kind of feed. Use the protocol supported by your encoder and configured in the YouTube Live Control Room.
HLS YouTube also supports HLS ingest. Its Help documentation notes higher latency because content is sent in segments, and requires a rolling playlist with no more than five outstanding segments. HLS may suit cases such as HDR or codecs not supported through RTMP, but requires an encoder configured for HLS.

There is no universally best protocol for every server and media collection. Compare encoder support, latency needs, file format support, and the operational complexity of segmented delivery. See YouTube’s ingest protocol guidance and YouTube’s HLS ingestion documentation.

Test playback and understand archive limits

  • Watch the Live Control Room preview before starting a public event.
  • Check transitions between files, including audio continuity and whether the next file begins as expected.
  • Monitor stream health during the broadcast and verify that the playlist remains available to the FFmpeg process.
  • YouTube Help says streams under 12 hours are automatically archived. Do not assume a longer continuous or looping playlist will be preserved as one complete archive on that basis.

Testing transitions before relying on a long broadcast is operational advice based on the playlist workflow; it is not a claim that any particular configuration has been tested.

Rank #4
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.

Playlist order is not event scheduling

The concat playlist determines which media files the encoder sends, and in what order. A scheduled YouTube broadcast determines when an event is presented to viewers, along with its own event controls. If viewers need distinct watch pages or separate start and end controls, create and manage separate YouTube events; changing the order in one playlist does not create a calendar of broadcasts.

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

Troubleshooting

The feed does not appear in the Live Control Room

  • Confirm that FFmpeg is running and can read the playlist and every listed file.
  • Recheck that the server URL and stream key are copied from the intended YouTube stream configuration and that the selected protocol matches the encoder output.
  • Keep the stream key private, but check the configured value for accidental whitespace or truncation.

The playlist stops or a file is skipped

  • Confirm the playlist paths exist and are readable by the account running FFmpeg.
  • Check playlist order and the quoting of paths containing spaces or special characters against the installed FFmpeg version’s concat-demuxer rules.
  • Check server storage and process logs for read errors; do not assume a file was successfully opened just because earlier entries played.

There is a glitch at a file transition

  • Compare resolution, frame rate, video codec, and audio codec across the files.
  • Test the transition in the Live Control Room preview before relying on the full broadcast.
  • If the sources differ, prepare compatible files or verify a version-appropriate FFmpeg workflow that handles those differences.

The broadcast is on the wrong schedule or watch page

Check the selected YouTube event separately from the FFmpeg playlist. The playlist controls incoming media order; the event controls which scheduled broadcast viewers see.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
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.

Or let it run in the cloud

If you want an always-on YouTube stream without keeping this server or a home computer running, StreamNeo lets you upload a recording or build a playlist, add your YouTube stream key once, and go live. It loops uploaded videos from the cloud; it does not stream from a camera. Nothing has to stay on at home, uploaded video streams as made up to 4K 60fps at one flat price per slot, and StreamNeo can recover automatically if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. See StreamNeo or start the free first 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.