October DealsAmazon USOctober deal check: compare before you payAmazon 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 NowOctober 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 24/7 YouTube Radio Stream from an MP4 Playlist Using FFmpeg

Use FFmpeg’s concat demuxer and infinite input looping to send a compatible MP4 playlist to YouTube Live, with guidance for stream settings, testing, and continuous operation.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To loop a playlist of MP4 files into YouTube Live, create a broadcast in YouTube Studio, list compatible files in an FFmpeg concat playlist, and send the loop to YouTube over RTMPS. The FFmpeg process must keep running, and a working command alone does not guarantee uninterrupted or unattended streaming.

What you need before starting

  • MP4 files you have the right to stream.
  • FFmpeg installed on a computer or server that can remain online and has a reliable upload connection.
  • Live streaming access and a configured broadcast in YouTube Studio.
  • A private YouTube stream key and the current ingest URL shown in Live Control Room. Treat the key like a password: do not publish it or expose it in screenshots or repositories.

YouTube Live separates the broadcast from the incoming encoder feed: configure or select the broadcast in Live Control Room, then connect FFmpeg using the ingest settings for its stream. See Google’s explanation of broadcasts and streams.

As an Amazon Associate I earn from qualifying purchases.

Prepare an FFmpeg playlist

Check whether the MP4s are compatible

The concat demuxer joins inputs as a virtual sequential source without decoding and re-encoding them. Its files need compatible stream layouts, codecs, and time bases. Compare dimensions, frame rates, pixel formats, audio sample rates, and stream presence as well; mismatches can cause errors or unreliable transitions. For incompatible sources, normalize them to a common format or use a filter-based concat workflow that re-encodes. Re-encoding is more CPU-intensive but gives you control over a consistent output.

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

Create the playlist file

Save a plain-text file named playlist.ffconcat, with this exact signature on the first line, followed by one file directive per MP4:

#1 Best Overall
Nulaxy 54W Bluetooth 5.3 Car Adapter, FM Transmitter 4-Port Fast Charging
  • 54W High Power Fast Charging, 4-Port Synchronous Charging: Nulaxy Bluetooth car adapter integrates PD36W and QC18W, offering a high-speed and efficient charging solution. Its innovative four-port design supports parallel charging of multiple devices, effortlessly overcoming battery anxiety and enhancing charging efficiency.
  • Technological Leadership, Revolutionary Bluetooth 5.3: The iphone fm transmitter for car radio uses the latest Bluetooth 5.3 technology, significantly improving connection speed and data transmission efficiency. Enhanced sound quality ensures rapid and stable connections, providing a clearer, smoother experience for both calls and music playback.
  • Stunning Bass, Colorful Lighting Effects: One-touch activation of stunning bass effects reproduces the true texture of music, offering an unparalleled musical experience. The five-color lighting design provides accurate perception at night, ensuring easy and safe operation, making nighttime driving more relaxed.
  • Voice Commands and Precise Touch Control: Our bluetooth cigarette lighter adapter supports smart voice navigation from your phone for truly hands-free driving. Its unique raised button design provides precise, sightless control, ensuring safety and convenience while driving.
  • Comprehensive Safety Assurance and Wide Compatibility: FM modulator bluetooth for car provides all-around safety protection, including over-current, over-voltage, overheating, and short-circuit protection, ensuring the safety of you and your devices. Its wide compatibility supports 12V to 24V vehicle voltages, suitable for most cars. Nulaxy continues to innovate, offering industry-leading car Bluetooth adapter that ensure safety and compatibility. (Please compare the size between the transmitter and your car cigarette lighter )
ffconcat version 1.0
file '/media/radio/track-001.mp4'
file '/media/radio/track-002.mp4'
file '/media/radio/track-003.mp4'

Replace the example paths with the real file locations. Quote or escape paths containing spaces or special characters. The concat demuxer’s safe-path setting defaults to 1 and rejects unsafe paths or directives. Prefer relative paths where practical. Use -safe 0 only if you trust the playlist and need absolute paths or paths the default safety check rejects. See the FFmpeg concat demuxer documentation for syntax and limitations.

Configure YouTube Live

  1. Open YouTube Studio and go to Live Control Room.
  2. Create or select the broadcast you intend to use, and locate its encoder stream URL and stream key.
  3. Choose RTMPS when it is available, then use the exact ingest values currently shown in the Control Room. Do not copy an endpoint from an old example or expose your stream key.
  4. Confirm that the broadcast is ready to receive the encoder feed. Starting FFmpeg sends media; it does not create a broadcast, enable Live access, or guarantee the broadcast remains available.

YouTube recommends RTMPS for conventional encoder delivery; it carries RTMP over an SSL connection. See Google’s RTMPS ingestion guide and YouTube’s encoder settings guidance.

Rank #2
Sale
LENCENT FM Transmitter, Bluetooth FM Transmitter Wireless Radio Adapter Car | Dual USB Charging, Audio Receiver Car Charger MP3 Player, Support Hands-Free Calling, TF Card & USB Disk
  • Crystal Clear Music Streaming: LENCENT T25 is anti- statics designed, and equipped with noise and wind suppressed by CVC technology that can achieve full duplex sound quality. You can stream music on your car stereo via Bluetooth/ USB Flash Drive (≤32GB) / microSD Card (≤32GB). WMA MP3 WAV APE FLAC music formats are all supported
  • Intelligent Dual USB Ports & Safe Charging: Coming with 2 USB ports(5V-2.4A and 5V-1A), you can charge two devices simultaneously. Built-in over-current protection, over-voltage protection, intelligent temperature control, short circuit protection, it will effectively ensure safe charging
  • Hands-Free Calling & Voice Navigation: Bluetooth provides a stable connection, while Noise Suppression (CVC) technology and echo-cancellation grants an amazing hands-free calling experience. Besides, you can also get clear voice navigation from your phone’s app, which means driving will be more safely
  • Car Battery Voltage Detection & Blue Ambient Light: The FM transmitter will display car’s voltage when plugged into the cigarette lighter. Keep abreast of car battery health at all times to avoid problems when driving. With the circle of blue backlight around this car charger, it will greatly simplify your operation for safer driving. (Please compare the size between the transmitter and your car cigarette lighter )
  • Wider Range & Compatibility: This Bluetooth transmitter is well compatible with most of the smartphones and more devices that equipped with bluetooth function. It will automatically connect to its memorized paired Bluetooth device when power on. Also, with the wider range from 88.1MHz - 107.9 MHz, you can get more stable and consequent music experience without interference

Start the loop with FFmpeg

For a compatible playlist, this illustrative command loops the concat input and publishes H.264 video and AAC audio. Replace the sample playlist location and RTMPS destination with your own values:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
ffmpeg -re -stream_loop -1 -f concat -safe 0 -i playlist.ffconcat 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -b:v 4500k -maxrate 4500k -bufsize 9000k -g 60 
  -c:a aac -b:a 128k -ar 44100 
  -f flv 'rtmps://YOUR_CURRENT_INGEST_URL/YOUR_STREAM_KEY'

This is a starting example, not a universal tested configuration. Input options such as -re and -stream_loop belong before the corresponding -i. -re paces file reading in real time; -stream_loop -1 requests infinite looping of the input. Check the manual for your installed FFmpeg build, since versions and option behavior can differ. FFmpeg documents -stream_loop in its command-line documentation.

Rank #3
BaseWish 7W 1W Long Range FM Transmitter with LCD & 3.5mm Audio Cable - Ideal for Drive-in Church, School & Supermarket Events, Light Shows & Fireworks Display - Black
  • FCC Certified(FCC ID: 2ASVO05B7CT200) with two power modes (1W and 7W).
  • High Stability with next-generation integrated NC FM stereo radio transmitter chip BH1415, built-in PLL advanced modulation system, audio pre-emphasis, limiter and low pass filter circuit.
  • Clear Stereo Sound with AT89C2051 and AT24C02 control panel, three power amplifiers (two 2SC3355 and one 2SC2053) to ensure great sound quality output effect.
  • Excellent Heat Dissipation with high quality aluminum alloy material, lightweight and excellent heat dissipation.
  • Easy to Use with LCD display to show transmission frequency, easy to adjust and intuitive.

Choose output settings for your source and connection

The example encodes H.264 video and AAC audio, formats YouTube lists as supported, with 128 kbps audio at 44.1 kHz. That audio setting is for stereo, not a recommendation for 5.1 surround sound; YouTube’s guidance lists 48 kHz for 5.1. The example’s video bitrate is not a one-size-fits-all setting. Choose resolution, frame rate, and bitrate from YouTube’s current encoder-settings table for your output, and make sure the upload connection can sustain the video and audio bitrate plus protocol overhead. Use a dependable connection with headroom rather than targeting its maximum measured speed.

YouTube recommends constant bitrate (CBR) and a two-second keyframe interval, with intervals not exceeding four seconds. The example’s -g 60 means a 60-frame GOP: at 30 fps, that is approximately two seconds. Adjust the GOP to match the frame rate you actually send. YouTube also recommends testing with similar motion and audio to the intended stream. Review its current bitrate, resolution, and encoder recommendations before relying on the example settings.

Rank #4
Sale
Scosche BTFM9 FM Bluetooth Transmitter Car, Dual 12W USB-C and USB-A Charging Ports, Fast Type C Car Charger, Wireless Radio Bluetooth Adapter, Hands-Free Kit for Calls, Siri and Google Assistant
  • Car FM Transmitter: Experience superior sound quality and seamless connectivity with our FM Transmitter for Car. Effortlessly connecting to your car's FM radio, the Bluetooth car adapter enables wireless music streaming from your device via Bluetooth. It's the perfect solution to integrate Bluetooth for cars without Bluetooth.
  • Hands-Free Car Kit - Make and receive calls effortlessly while driving with the Scosche Handsfree Bluetooth Car Kit. This Bluetooth car adapter makes it possible to connect your smartphone to your car stereo through the Scosche Bluetooth FM transmitter, allowing you to keep your hands on the wheel and eyes on the road.
  • 12V Cigarette Lighter Adapter - Plugs directly into your car's 12V cigarette lighter socket for unlimited transmitting and listening hours. This FM Bluetooth Transmitter car adapter doubles as a cigarette lighter charger and features dual USB-A and USB-C 12W charging ports, allowing you to charge multiple devices on the go.
  • Voice Command - Equipped with easy-to-use controls for volume up/down, play/pause, answer/hang up the phone, our Scosche FM Bluetooth transmitter car is a must-have in Bluetooth car accessories. This versatile accessory supports Siri and Google Voice commands, enhancing your car audio receiver and providing a safer, hands-free driving experience.
  • Universal Compatibility - Effortlessly connect any iPhone, iPod, Galaxy, MP3 player, smartphone, USB-A, USB-C, or other mobile devices with a 3.5mm aux port or Bluetooth. Enjoy your favorite music and make hands-free calls with our Bluetooth FM transmitter car. For added peace of mind, it comes with a 3-year limited warranty.

Test the stream before leaving it running

  1. Start with a private or unlisted test broadcast and representative playlist files.
  2. Watch the Live Control Room’s stream-health messages while FFmpeg is connected.
  3. Let the playlist reach its end and wrap to the beginning. Check picture changes, audio continuity, and whether the stream continues.
  4. Check logs and confirm behavior with a damaged or missing source file before depending on the setup unattended.

The concat demuxer advances using file durations. If audio and video stream lengths differ, gaps can occur; inaccurate duration metadata can also cause artifacts. Do not assume a playlist will transition seamlessly: inspect a complete cycle. YouTube’s guidance is to test before going live and monitor stream health.

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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Keep FFmpeg operating continuously

A 24/7 stream requires more than a looping command: the host must stay on, FFmpeg must remain alive, and the network and ingest must continue working. For a long-running setup, use a process supervisor or service manager configured to restart FFmpeg after an exit, retain logs somewhere persistent, and alert on process exits or loss of ingest. Assign someone to check stream health. These are operational safeguards, not a guarantee of uninterrupted uptime from YouTube or FFmpeg.

Best Value
Syncwire Bluetooth 5.4 Car Adapter 48W FM Transmitter for Hands Free Calls
  • [Humanized Ambient Light Switch Design] - Indulge in a delightful driving experience with our trendy rainbow light design. Immerse yourself in fun while having the convenience of easily turning off the light by double pressing the red "B" button when not needed. Enjoy the captivating ambiance of the rainbow lights and have full control over your driving atmosphere.
  • [Upgraded Bluetooth 5.4 Technology] - The latest Bluetooth 5.4 technology, optimizing the transmission delay and connection defect problems, Bluetooth 5.4 will bring you a faster, more stable and smarter connection with less sound quality loss, uninterrupted calls and music experience. It takes only 1 second to complete pairing, and no need to repeat pairing after the first successful pairing with your device.
  • [Intelligent Dual USB Ports & Fast Charging] - Coming with 2 USB ports(PD 36W and USB A 12W), can charge two devices simultaneously. Built-in over-current protection, over-voltage protection, intelligent temperature control, short circuit protection, it will effectively ensure safe charging.
  • [Great Clear Music Streaming] - Bluetooth 5.4 provides a stable connection, while Noise Suppression (CVC) technology and echo-cancellation grant an amazing hands-free calling experience. In addition, this Bluetooth car adapter supports Bluetooth connection and USB stick connection (≤64GB).
  • [Hi-Fi Deep Bass & Backlit] - Just press the button "B" and you will enjoy powerful deep bass and immersive sound. The high-fidelity Hi-Fi sound quality will also make the music more dynamic and pleasing to the ear, taking your passion for music to a new level.

RTMPS or HLS?

Protocol When it fits Trade-off
RTMPS The usual choice for an FFmpeg encoder sending a conventional YouTube Live feed. YouTube recommends it for this path; use the ingest URL and key shown in Live Control Room.
HLS ingestion An alternative when the encoder supports YouTube’s HLS setup, including some HDR or codec use cases not supported over RTMP. Segment-based delivery has higher latency and requires the HLS-specific configuration and segment/playlist behavior. A normal FFmpeg RTMPS output is not HLS ingestion.

See YouTube’s HLS stream setup guidance for its configuration and latency considerations.

Common problems and fixes

  • FFmpeg rejects a playlist path: Check quoting and escaping, confirm paths exist, and use -safe 0 only for a trusted playlist that needs paths rejected by the default safe mode.
  • Concat reports mismatched streams or output glitches: Check that every file has compatible stream layouts, codecs, and time bases. Normalize the files or switch to a filter-based concat workflow that re-encodes.
  • There are pauses or artifacts at file boundaries: Compare audio and video durations and inspect duration metadata. The demuxer uses file durations to place the next input, so mismatches can create gaps or artifacts.
  • YouTube reports unstable stream health: Check the chosen bitrate against YouTube’s current settings guidance and verify that the upload link has dependable headroom for the full output, including audio and protocol overhead.
  • The stream stops when the list ends: Confirm -stream_loop -1 appears before the input’s -i and that FFmpeg is still running. Check logs for a missing or damaged source file.
  • FFmpeg is running but no broadcast is available: Verify Live access, broadcast status, ingest URL, and stream key in YouTube Studio. A successful encoder command does not create or schedule the broadcast.

Or let it run in the cloud

If you do not want a home computer, FFmpeg process, and internet connection to stay on, 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; StreamNeo loops the uploaded videos from the cloud. It streams to YouTube only, not from a live camera.

  • Nothing has to stay running at home.
  • Your uploaded video streams as made, up to 4K 60fps, at one price per slot rather than quality tiers.
  • Automatic recovery is included if YouTube drops the stream.
  • The first day is free with no card; one free day per account.
  • Monthly: $9.99 per month.

Start the free day at StreamNeo registration.

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