October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
Mountain View desk6 min

How to Create a YouTube Live Playlist from Folder Files with FFmpeg

Use an ordered FFmpeg concat script to send folder videos to YouTube Live, with real-time pacing, an optional infinite loop, compatible media, and YouTube encoder settings.

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.

To stream a repeating sequence of local videos on YouTube Live, put their paths in an ordered FFmpeg concat script, then send that input to YouTube’s encoder ingest URL with a stream key. FFmpeg can loop the sequence and pace file playback in real time, but the files should have compatible streams and YouTube’s automatic archive behavior is separate from FFmpeg’s infinite loop.

What “playlist” means here

This method creates a live feed from a sequence of local files; it does not create a YouTube playlist object. FFmpeg’s concat demuxer reads a text script and presents the listed files one after another. The sequence is only as ordered as that script: a folder by itself is not an automatically maintained playlist.

As an Amazon Associate I earn from qualifying purchases.

FFmpeg’s documentation says, “All files must have the same streams (same codecs, same time base, etc.).” See the FFmpeg concat demuxer documentation. The instructions below are a documentation-based workflow, not a command tested on your particular files. FFmpeg’s concat documentation is rolling master documentation, so check the behavior against your installed version.

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

1. Create an ordered concat file

Make a UTF-8 plain-text file named playlist.txt. The first line must be exactly ffconcat version 1.0 for automatic format recognition. Put one file entry per line, in the order you want viewers to hear and see them:

#1 Best Overall
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
ffconcat version 1.0
file 'clip-01.mp4'
file 'clip-02.mp4'
file 'clip-03.mp4'

Save the script in the media folder and use paths relative to the process working directory, or list paths relative to another known working directory. If paths contain spaces or special characters, quote and escape them according to concat-script syntax; do not assume ordinary shell quoting rules are interchangeable with the script’s rules.

By default, the concat demuxer applies safe=1 and rejects paths it considers unsafe. Prefer safe relative paths when possible. Use -safe 0 only when the paths require it, such as absolute paths, and only if you trust every entry in the playlist: disabling the check accepts arbitrary file names. If the folder’s contents change over time, regenerate the script in a deliberate, deterministic order before starting a broadcast. FFmpeg does not automatically add files to a concat script already in use.

2. Check that the videos are compatible

Concat demuxing joins files; it does not turn unrelated media into matching inputs. Check each file’s streams and properties with FFmpeg tools before broadcasting. The files should have matching stream structure, codecs, and time bases; consistent dimensions, frame rates, audio codecs, and audio layout also make transitions more predictable.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

The demuxer uses each file’s duration to place the next one. Incorrect or unavailable duration metadata can cause artifacts, including at transitions. If a duration is known accurately, a duration directive in the concat script can override the stored duration; do not guess a value. Where files differ, transcode them beforehand to a consistent format. Re-encoding uses CPU or GPU capacity and can alter quality, but it is the safer general approach for mixed sources. Stream copying can reduce processing when inputs already match, but matching file extensions alone do not guarantee clean transitions or an acceptable ingest stream.

3. Set up YouTube Live and protect the key

  1. In YouTube Studio, open the Live Control Room and create or schedule an encoder stream.
  2. Copy the stream URL and stream key shown in that stream’s settings. The URL is the ingest destination; the key identifies and authorizes your broadcast.
  3. Keep the key private. Do not put it in a public script, screenshot, or log. You can place it in a shell environment variable rather than a shared file.
  4. For a scheduled broadcast, start sending the feed and wait for the preview in Live Control Room. YouTube’s encoder setup instructions say to click Go live once the preview is ready.

Use the exact ingest details displayed for the active stream. YouTube’s instructions are at YouTube encoder setup.

4. Send the playlist to YouTube with FFmpeg

For a compatible set of H.264/AAC MP4 files and an RTMP endpoint, this is an illustrative command shape, not a universal or tested copy-and-run recipe:

Rank #3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
  • Easily store and access 1TB to content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop. Reformatting may be required for Mac
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.txt 
  -c:v libx264 -pix_fmt yuv420p -preset veryfast -b:v 5M -maxrate 5M -bufsize 10M 
  -r 30 -g 60 -c:a aac -b:a 128k -ar 44100 
  -f flv "$YOUTUBE_RTMP_URL/$YOUTUBE_STREAM_KEY"

-re paces file input in real time, and -stream_loop -1 repeats the input indefinitely. Both are input options. The concat demuxer reads playlist.txt; the video and audio options re-encode the feed; -f flv specifies the output container used in this RTMP implementation pattern. See the FFmpeg command-line documentation.

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

The example includes -safe 0 because real folders often use absolute paths. Remove it if your playlist uses safe relative paths. Set the environment variables to the precise ingest URL and stream key YouTube displays; verify the required destination form rather than assuming it is identical for every stream. Protect the key wherever you store it.

Adjust frame rate, bitrate, keyframe interval, audio handling, and resolution for your actual inputs and YouTube’s current stream settings. If using stream copy instead of re-encoding, remove the encoding options and validate that the sources’ codecs, parameters, transitions, and ingest container are compatible. That can save compute, but it is not a guarantee of seamless playback.

Rank #4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
  • Easily store and access 4TB of content on the go with the Seagate Portable Drive, a USB external hard drive.Specific uses: Personal
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

5. Choose settings for YouTube’s ingest

YouTube’s encoder settings page lists H.264, H.265, and AV1 for RTMP/RTMPS video, frame rates up to 60 fps, AAC or MP3 audio, and CBR. It recommends a two-second keyframe frequency and says not to exceed four seconds. For advanced video settings, it recommends square pixels, progressive scan, and Rec. 709 for SDR; its audio guidance includes stereo AAC at 128 Kbps. Use the ingest URL supplied by Live Control Room; YouTube recommends RTMPS for encryption where available.

The same settings page lists these H.264 bitrate recommendations and minimums (YouTube’s current page, accessed 2026-10-03). Recommendations are not minimum requirements; choose a setting that your connection can sustain.

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.
H.264 output YouTube recommended bitrate YouTube minimum
720p30 8 Mbps 3 Mbps
1080p30 14 Mbps 5 Mbps
1080p60 17 Mbps 6 Mbps

These figures are YouTube’s published encoder recommendations and minimums, not guarantees of quality or a promise that a particular internet connection can sustain them. Measure sustained upload capacity, leave headroom for network variation, and test before the broadcast. The example’s 5 Mbps video bitrate is only a starting value and is below YouTube’s listed 1080p30 recommendation.

Best Value
Sale
UnionSine 500GB Ultra Slim Portable External Hard Drive HDD-USB 3.0
  • [Upgraded Version] - This external hard drive features a mirrored logo stripe combined with a striped anti-slip design, and the rounded corners of the casing make it easier to grip. The stripes also have a heat dissipation function, ensuring stable and fast data transfer.
  • 【Ultra-thin and quiet】 - The motherboard adopts JMicron 578 noise-free solution, giving you a quiet working environment. Lightweight and portable size designed to fit in your pocket for easy portability.
  • 【Ultra-Fast Data Transfers】 - Pairing this external hard drive with JMicron 578 solution USB 3.0 and USB 2.0 interfaces enables blazing-fast data transfer. It boasts theoretical read speeds of up to 125MB/s and write speeds of up to 103MB/s.
  • 【Plug and Play】 - With no software to install, just plug it in and the drive is ready to use.The hard disk chip is wrapped with an aluminum anti-interference layer to increase heat dissipation and protect data.
  • 【What You Get】 - 1 x Portable Hard Drive, 1 x USB 3.0 Cable, 1 x User Manual, Gift-type shell packaging ,Three-year manufacturer's warranty and free technical support services.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

6. Start, monitor, and end the broadcast

  1. Run FFmpeg and check its output for errors while it reads the playlist and sends the feed.
  2. In Live Control Room, wait for the incoming preview and check stream health, audio, and video. For a scheduled stream, click Go live when the preview is ready.
  3. Monitor upload stability throughout the broadcast. YouTube recommends testing in advance and monitoring stream health.
  4. To end the broadcast, stop the encoder and use Live Control Room’s End Stream workflow where applicable.

YouTube says streams under 12 hours are automatically archived. An FFmpeg process that loops indefinitely does not mean YouTube will archive an indefinitely long broadcast; plan the broadcast duration around YouTube’s stated archive condition. See YouTube’s encoder setup guidance.

Common problems and fixes

Concat errors or files are missing

  • Check that every listed path exists relative to FFmpeg’s working directory and that names are quoted or escaped correctly.
  • If the playlist uses absolute or otherwise unsafe paths, verify whether -safe 0 is required. Use it only with trusted playlist contents.

Video or audio glitches at transitions

  • Compare stream count and structure, codecs, time bases, dimensions, frame rates, and audio layout across the files.
  • Check duration metadata. Normalize mismatched inputs, or specify a duration only when its value is known accurately.

YouTube does not show a preview

  • Confirm FFmpeg is using the exact ingest URL and key for the active stream, and that the key has not been reset.
  • Check that FFmpeg is sending a format accepted by the configured stream and inspect its output for connection or encoding errors.

Dropped frames or poor stream health

  • Lower resolution or bitrate to fit sustained upload capacity, while following YouTube’s codec-specific guidance.
  • Test the complete setup ahead of time and monitor stream health while live.

The broadcast is longer than its archive

Do not treat -stream_loop -1 as a way to override YouTube’s under-12-hour automatic archive statement. Plan your stream and archive expectations separately.

Or let it run in the cloud

If you want a 24/7 YouTube stream without keeping a computer or home connection on, StreamNeo runs uploaded videos or playlists from the cloud. Upload the video or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; your upload streams as made, up to 4K 60fps, at one price per slot, and StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly billing is $9.99 per month.

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

Quick Recap

SaleBestseller No. 1
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400) | Everyday HDD storage. Plug-and-play backup. Windows & macOS. Adobe CC trial included. 1-Year Warranty
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
Bestseller No. 2
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Bestseller No. 3
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
Seagate Portable 1TB External Hard Drive HDD – USB 3.0 for PC, Mac, PlayStation, & Xbox, 1-Year Rescue Service (STGX1000400) , Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$119.80
Bestseller No. 4
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
Seagate Portable 4TB External Hard Drive HDD – USB 3.0, 1-Year Rescue
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$208.99

Start your free first day with StreamNeo.

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
Crashes, No Sound, or Screen Glitches?Free driver scan
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.