Use FFmpeg’s concat demuxer to line up compatible media files, then configure FFmpeg separately to repeat the input, encode or pass through a YouTube-compatible live output, and send it to your YouTube Live event. A concat file only sequences files: it does not fix mismatched codecs, create a live stream by itself, or give you permission to broadcast the music.
Before you begin: clear the music rights
Do not go live until you have the rights needed to broadcast every track. YouTube scans livestreams for third-party content, and a stream may be interrupted or terminated when a match is detected. If you have licensed music from a rights holder that uses Content ID, the rights holder may also need to add your channel to its Content ID allowlist. A credit, purchased track, “royalty-free” label, or license for ordinary uploads does not by itself establish permission for a continuous livestream. Read YouTube’s Terms of Service and copyright guidance for live streams, and confirm the scope of your license directly with the rights holder.
Choose the right FFmpeg concat method
FFmpeg offers two relevant approaches. The concat demuxer reads a playlist as one virtual input without first joining or normalizing the media. Its compatibility requirement is strict: the files need the same streams, including codecs and time bases. As the FFmpeg concat demuxer documentation puts it, “All files must have the same streams (same codecs, same time base, etc.).”
| Method | Use it when | Trade-off |
|---|---|---|
| Concat demuxer | Inputs already have compatible streams and you want to avoid re-encoding. | It does not convert mismatched files. Differences in stream lengths or duration metadata can produce gaps or transition artifacts. |
| Concat filter | Inputs need conversion or stream matching before they can be joined. | It requires filtering and re-encoding the output. FFmpeg’s concat FAQ recommends this route when inputs need re-encoding. |
Do not assume that matching extensions, filenames, or apparent playback compatibility means the streams are suitable for the demuxer. Inspect the actual streams first.
Recommended Free Tools
#1 Best Overall
- 【Powerful & Efficient Performance】Powered by the Intel Celeron J3355 Processor (up to 2.5GHz), this Mini PC delivers a 25% performance boost over previous generations. Pre-installed with Windows 11 Home and supporting Linux/Ubuntu, it’s the ideal micro desktop for seamless web browsing, document editing, and efficient daily office tasks.
- 【Massive Storage & Unique Expansion】Equipped with 6GB LPDDR3 RAM and 128GB onboard storage for fast boot-ups. Stand out with our dual M.2 SSD slot design (1x SATA + 1x NVMe), allowing you to easily expand storage up to 2TB without replacing the original drive. Perfect for managing large digital libraries and intensive multitasking.
- 【Stunning 4K Dual HDMI Display】Boost your productivity with Intel HD Graphics 500 and dual HDMI ports, supporting 4K @60Hz high-definition visuals. Connect two monitors simultaneously to streamline your workflow—ideal for home office setups, stock trading, or enjoying a theater-like 4K media experience.
- 【Ultra-Compact & Space-Saving Design】Measuring only 4.2x4.1x1.4 inches and weighing just 0.49 lbs, this palm-sized mini computer fits anywhere. Use the included VESA bracket to mount it behind your monitor for a zero-clutter workspace. Features a smart silent fan and heat sink system for quiet, reliable 24/7 operation.
- 【Stable Connectivity & Smart Recovery】Stay connected with Dual-Band WiFi (2.4G/5G), Bluetooth 5.0, and Gigabit Ethernet. Exclusive One-Click Restore feature (via F9 key) allows for quick system recovery in minutes. Backed by Bmax's 12-month warranty and lifetime technical support for a worry-free purchase.
Inspect and standardize the media
Check each file’s streams
Use a media-inspection tool such as ffprobe to examine every file before making the playlist. Compare the video and audio streams, codecs, time bases, and stream layout across files. Check whether the audio and video tracks in each file have comparable durations; a mismatch can affect where the next file begins.
If streams do not match, create compatible versions first or build a concat-filter workflow that converts them during concatenation. Do not try to solve incompatible inputs just by changing the playlist.
Rank #2
- 【Ryzen 5 3500U Processor】KAMRUI Essenx E2 Mini PC is equipped with AMD Ryzen 5 3500U (4-cores/8-threads, up to 3.7GHz) with integrated Radeon Vega 8 Graphics(1200MHz, 8 Core). The 3500U CPU operates at a base frequency of 2.1 GHz and a Boost frequency of 3.7 GHz. This DDR supports upgradable up to 32GB, SSD supports up to 2TB.(NOT INCLUED), KAMRUI E2 3500U Mini PC is ideal for light office work and home entertainment. KAMRUI E2 3500U is more than 35% more powerful and smoother in operation than the Intel N150, 33% faster than Intel N95, 28% performance boost over Intel i3-10110U, and 42% stronger processing power than AMD Ryzen 3 3200U.
- 【16GB DDR4 & 256GB SSD】The KAMRUI E2 mini computers is equipped with 16GB DDR4(Expandable up to 32GB) for faster multitasking and smooth application switching. 256GB M.2 SSD ensures fast startup times,fast file transfers and plenty of storage space,eliminating slow loading times and ensuring fast responsiveness.Storage space can RAM supports up to 32 GB, SSD supports up to 2TB (Not included)make file storage easier.
- 【4K Dual Display & USB 3.2 Type-A Port】KAMRUI E2 3500U mini desktop pc is equipped with an HDMI 2.0+DP 1.4 interfaces for faster transmission, Support Dual 4K@60Hz Display, E2 mini desktop computers is ideal for visual home entertainment, home office, conference rooms, etc. USB3.2 Gen1 Type-A Port×2 with a transfer speed of up to 5Gbps (10 times faster than USB 2.0) for efficient data transfer. The RJ45 1000M Gigabit Ethernet Port ensures a stable network connection.
- 【WiFi+Bluetooth stable connection】The Kamrui E2 micro pc have reliable and stable wireless connection, open websites in seconds, watch movies without buffering and download files smoothly, connect your monitor from WiFi or Ethernet, use a wireless keyboard and mouse through bluetooth, which will be powerful workstation for you.
- 【Versatile Ports】This KAMRUI E2 Small pc is equipped with HDMI 2.0×1(4K@60Hz)、DP1.4×1(4K@60Hz)、Gigabit Ethernet Port (RJ45, 10/100/1000Mbps) ×1、USB3.2 Gen1 Type-A Port×2(5Gbps)、USB2.0 Type-A Port×2、3.5mm Audio Jack ×1、DC In ×1、Power Button ×1
Check timing as well as codecs
The demuxer places each file after the preceding one using timestamps derived from file durations. Unequal stream lengths can leave gaps, and inaccurate duration metadata can cause artifacts. The concat demuxer supports a duration directive to override a stored duration when you have an accurate value and need to correct timing. Do not guess durations: verify them against the media.
Create the concat playlist
Make a plain-text file named, for example, playlist.ffconcat, and list the media in playback order:
Rank #3
- 【Fanless Design for Uninterrupted Stability】Perfect for noise-sensitive environments and 24/7 operation. This mini PC delivers completely silent performance with an efficient cooling system that prevents overheating. It reliably runs office software and HD video without slowdowns, making it ideal for focused offices, home theaters, and demanding industrial IoT applications
- 【Ultra-Portable & Ready for Any Screen】Extremely compact and lightweight, this is a full Windows 10/Ubuntu computer that fits in your pocket. It's the ultimate plug-and-play solution for business presentations on a projector, digital signage in classrooms, or entertainment on your home TV. Achieve true "work from anywhere" flexibility with one device for all scenarios
- 【Stunning UHD 600 Graphics】Experience vibrant, fluid visuals with 4K @ 60Hz output. Powered by Intel UHD 600 Graphics, this mini PC is your perfect home entertainment center for streaming movies, attending online classes, or hosting video conferences. It turns any display into a sharp, high-definition visual experience
- 【Versatile Ports for Easy Expansion】Tackle multiple tasks with ease using our comprehensive selection of ports. Connect storage, keyboards, monitors, and more simultaneously with 2x USB 3.0 ports, a Gigabit LAN port, and a TF card reader. With convenient USB-C charging, it becomes the effortless control center for your office or home setup
- 【Pre-Installed & Ready to Go】Get started immediately with the genuine Windows 10 Pro operating system pre-installed. Paired with 4GB LPDDR4 RAM and 64GB eMMC storage, it's fully equipped for everyday office tasks and HD content right out of the box. This hassle-free setup is perfect for businesses, schools, and users who want a simple, ready-to-run computer
ffconcat version 1.0
file 'track-01.mp4'
file 'track-02.mp4'
file 'track-03.mp4'
Format and path rules
- For automatic format recognition,
ffconcat version 1.0must be the exact first line: no leading whitespace and no byte-order mark. - The script uses extended-ASCII text according to the FFmpeg documentation. Quote or escape paths with spaces or special characters according to FFmpeg’s syntax.
- Relative paths are convenient when the playlist and media are together, but they still need to resolve from FFmpeg’s working context.
- Path escaping can depend on the operating system and shell. Check the paths in your actual environment rather than assuming one quoting style works everywhere.
Loop the playlist and send a live output
The concat list determines sequence; it does not make the sequence repeat indefinitely. Select FFmpeg’s input-looping behavior and realtime pacing for your live-input workflow, then configure the output for YouTube. The exact command depends on whether your sources are audio-only or include video, the codecs and containers in those sources, and your FFmpeg build. Test with your real files rather than treating one command as universal.
Assemble the command with these separate parts:
- Read the playlist. Point FFmpeg to the concat demuxer and your playlist file.
- Set the live-input behavior. Configure repetition and realtime pacing appropriate to the input. Looping controls whether the sequence starts again; realtime pacing controls whether it is delivered at a live rate.
- Choose output streams and encoding. Use codec copy only if the existing streams are suitable for the chosen output container and YouTube ingest. Otherwise, encode to supported output codecs. Audio-only and audio-plus-video outputs need different stream mapping and options.
- Set the destination. Use the current ingest address and stream name/key provided for your own YouTube Live event. Keep the key private; do not put a real key in a shared script or public post.
YouTube’s live encoder settings support RTMP and RTMPS ingest, with RTMPS recommended for encrypted transport. The guidance lists H.264, H.265, and AV1 video, and AAC or MP3 audio. It recommends constant bitrate (CBR) and a two-second keyframe interval, not exceeding four seconds. For audio, it recommends AAC or MP3 at 128 kbps and 44.1 kHz stereo. These are platform recommendations, not a guarantee of quality or uninterrupted streaming.
Rank #4
- 【Smooth Performance for Daily Work】Powered by Ryzen 5 3501U(4 cores, 8 threads, up to 3.7GHz), this mini PC handles everyday tasks smoothly. It works well as a small computer for office work, browsing, and multitasking.
- 【16GB Memory for Better Responsiveness】With 16GB DDR4 RAM and a 512GB SSD, this mini computer runs multiple apps and tabs more smoothly. A reliable small PC for users who need consistent performance.
- 【Expand Your Workspace Easily】Supports up to three displays through HDMI and USB-C connections. This mini desktop computer setup helps improve workflow when working across multiple screens.
- 【Flexible Connectivity Options】Includes WiFi 6, Bluetooth 5.3, USB ports, Ethernet, and audio connections. This micro PC integrates easily into different desktop computer setups.
- 【Compact Alternative to Larger Systems】Compared with traditional desktop computers, this small PC saves space while providing the functions needed for daily computing. Suitable for users considering mini computers.
Choose the video bitrate from YouTube’s current table for your selected resolution, frame rate, and codec, and leave upload headroom. The right setting depends on the format you actually send and the available connection; do not reuse a bitrate intended for a different resolution or frame rate. Recheck YouTube’s guidance when configuring the encoder because platform settings can change.
Connect the YouTube event and preflight
- In YouTube Live Control Room, create or select the live event you intend to use.
- Copy that event’s current ingestion address and stream name/key into your encoder configuration. YouTube’s Live Streaming API documentation describes ingestion addresses, stream names, status, and health fields.
- Start FFmpeg and confirm that YouTube reports incoming data and a healthy stream. Keep Live Control Room open and watch stream health and any messages.
- Test with audio and visual motion similar to the actual programme. A static image with music may not reveal the same encoding or bitrate problems as moving video.
Troubleshoot common failures
| Symptom | Likely cause | What to check |
|---|---|---|
| FFmpeg does not recognize the playlist automatically | The format marker is not at the exact start of the file, or has extra whitespace or a byte-order mark. | Make ffconcat version 1.0 the exact first line and save the file without a preceding marker. |
| Concat fails or a transition has gaps or artifacts | Files have different codecs, time bases, stream layouts, lengths, or inaccurate duration metadata. | Inspect the streams and durations. Standardize inputs for the demuxer, or use a concat-filter workflow if conversion is needed. Use a verified duration override only when stored duration is inaccurate. |
| YouTube receives no input or reports an unhealthy stream | The event’s ingest address or key is wrong, the output codec or settings are unsupported, or the connection cannot sustain the configured bitrate. | Verify the current event address and key, supported codecs, bitrate, keyframe interval, upload capacity, and YouTube’s health messages. |
| The stream stops after a music match despite a license | The license may not cover livestreaming, or the channel may not be allowlisted in Content ID. | Check the rights notice, confirm livestream coverage with the rights holder, and ask whether the channel must be allowlisted. |
Or let it run in the cloud
For a YouTube-only always-on stream from uploaded videos, StreamNeo replaces the local FFmpeg process: upload a recording or build a playlist, add your YouTube stream key once, and go live. Your computer and home connection do not have to stay on. Each slot streams uploads as made, up to 4K 60fps, at one flat price per slot; StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly pricing is $9.99 per month. Start your free day with StreamNeo.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problemsQuick Recap
Best Value
- 【Great power in a small computer】Get fast performance from the AMD Ryzen 5 3501U CPU (2.1GHz-3.7GHz, 4 Cores 8 Threads) inside this mini pc, TDP 15W up to 25W. It's perfect for all your home office and business use, like daily computing, web browsing, and smooth media streaming. This small desktop computer handles everyday tasks easily and quietly.
- 【Work on many things at once with lots of storage】This mini PC comes with 16GB of fast DDR4 RAM (expandable up to 32GB), allowing you to smoothly run multiple programs, dozens of browser tabs, and large files all at once. It also features a spacious 512GB NVMe SSD that provides ample storage and delivers dramatically faster boot-ups, app launches, and file transfers compared to a traditional hard drive.
- 【See everything clearly on one or two 4K screens】Connect one or two monitors for more space to work or play. Dual HDMI ports on this mini pc support super sharp 4K Ultra HD video. It's great for doubling your work area for business or watching movies in high definition.
- 【Fast modern connections in a tiny box】Enjoy a better and more stable internet connection with the latest WiFi 6. Use Bluetooth 5.3 to connect wireless headphones, keyboards, and mice without wires. This small pc is very compact to save desk space and has extra USB ports (USB 2.0×2, USB 3.0×2, Type-c 2.0×1, Type-c 3.2 full featured×1, HDMI×2) for your printer, webcam, or other computer accessories.
- 【Reliable Warranty and Support】We provides 1 year warranty for each Mini computers. So you don't need to worry about any product problems. If you have any questions about the product, please contact our customer service, we will provide 24-hour professional technical support and serve you at any time.
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.

