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

You can rotate several prerecorded videos in a continuous YouTube Live broadcast by having a Raspberry Pi play them as one continuous playlist and sending that playback through an encoder to YouTube. The clips change at the playback layer; you do not need to create a new live broadcast for each one. The exact playlist setup depends on your media and FFmpeg version, and a Raspberry Pi’s ability to encode a particular profile continuously must be tested on the actual board.

How the setup works

The Pi stores and plays your video files, a media player or FFmpeg supplies continuous playback, and an encoder sends the audio and video to YouTube’s ingest server. YouTube describes an encoder as software or hardware that converts video into a digital format for streaming. The encoder uses the server URL and stream key provided for your YouTube stream. YouTube’s encoder setup guide explains that connection.

Keep the playlist running as a single input to the encoder. The live transmission can continue while the source advances from one clip to the next. Google’s API documentation distinguishes a broadcast—the event viewers watch—from a stream, the transmission and its settings. A stream can be bound to as many as three broadcasts; that is an API capability, not a requirement for rotating clips. Google’s YouTube Live Streaming API documentation describes the distinction.

Before you start

  • A Raspberry Pi running a Linux setup suitable for your chosen playback and encoding software. No particular Pi model is established here as a universal choice for continuous encoding at a given resolution.
  • Video files stored locally and accessible to the playback software. Use clips you have the right to broadcast.
  • A reliable internet connection with enough sustained upload capacity for the chosen stream bitrate, plus headroom for normal variation.
  • A YouTube channel with live streaming enabled. First-time activation may take up to 24 hours, so enable it well before the planned start.
  • An encoder configured with the YouTube server URL and stream key. Treat the key like a password; do not publish it or include it in a public command, screenshot, or repository.

Set up and test the continuous playlist

1. Enable YouTube Live and prepare the stream

  1. In YouTube Studio, start the live-stream setup flow and create or configure the event or reusable stream you intend to use.
  2. Copy the ingest server URL and stream key shown by YouTube into the encoder configuration on the Pi. Use RTMPS when available; YouTube recommends RTMPS.
  3. Keep the key private. If it is exposed, replace or reset it in YouTube Studio before streaming again.

2. Organize and validate the media

Put the clips in a known order and confirm that the Pi can read each file. Decide what should happen at the end of the list: repeat from the first clip, or stop for operator intervention. Check that the playlist arrangement you choose actually implements that behavior.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
  • Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM)
  • Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
  • CanaKit Premium High-Gloss Raspberry Pi 4 Case with Integrated Fan Mount, CanaKit Low Noise Bearing System Fan
  • CanaKit 3.5A USB-C Raspberry Pi 4 Power Supply (US Plug) with Noise Filter, Set of Heat Sinks, Display Cable - 6 foot (Supports up to 4K60p)
  • CanaKit USB-C PiSwitch (On/Off Power Switch for Raspberry Pi 4)

There is no universally safe copy-and-paste multi-file FFmpeg command for every installed version and every collection of media. FFmpeg playlist, concat, and looping behavior depends on the input arrangement, codecs, and file properties. Verify the syntax against the documentation for the FFmpeg version installed on your Pi, then test the complete sequence locally before connecting it to a live stream. Confirm transitions, audio continuity, differing resolutions or frame rates, and end-of-list behavior.

3. Configure the encoder profile

Use a profile the Pi can sustain, not merely one YouTube accepts. YouTube’s current published H.264 ingest figures are recommendations for the incoming stream, not Raspberry Pi performance guarantees. Its guide lists these values for RTMP/RTMPS:

Rank #2
Raspberry SC15184 Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (2GB)
  • Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1. 5GHz
  • 2. 4 GHz and 5. 0 GHz IEEE 802. 11b/g/n/ac wireless LAN, Bluetooth 5. 0, BLE
  • 2 × USB 3. 0 ports, 2 x USB 2. 0 Ports
  • 2 × micro HDMI ports supproting up to 4Kp60 video resolution
  • Micro SD card slot for loading operating system and data storage
H.264 profile Minimum video bitrate Recommended video bitrate
720p30 2 Mbps 3 Mbps
720p60 3 Mbps 8 Mbps
1080p30 5 Mbps 14 Mbps
1080p60 6 Mbps 17 Mbps

These are YouTube’s published settings on its encoder-settings guide, accessed October 3, 2026; they are not measured Pi output rates. YouTube lists H.264, H.265, or AV1 video; AAC or MP3 audio; constant bitrate (CBR); frame rates up to 60 fps; and a recommended 2-second keyframe interval that should not exceed 4 seconds. See YouTube’s live encoder settings and bitrate guide for the current guidance.

For a cautious first trial, consider 720p30 if it suits the material and the specific Pi sustains it without dropped frames or overheating. Run a speed test and make sure sustained upload capacity exceeds the selected video bitrate, including audio and network overhead. YouTube transcodes the incoming stream into multiple viewer formats, so the encoder sends one suitable input profile rather than separate encodes for each viewer rendition.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Raspberry Pi 4 Model B (2GB)
  • Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
  • 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)
  • 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE Gigabit Ethernet
  • 2 USB 3.0 ports; 2 USB 2.0 ports.
  • Raspberry Pi standard 40 pin GPIO header (fully backwards compatible with previous boards)

4. Run a representative preflight

  1. Start the playlist and encoder in a private or otherwise suitable test setup before relying on an unattended broadcast.
  2. Check the YouTube preview for picture, sound, clip transitions, and whether the stream remains connected through at least one full playlist cycle.
  3. Monitor YouTube’s stream-health indicators while the Pi is under the intended workload. Include representative motion and audio; a static test image alone will not reveal every encoding problem.
  4. Test what happens when the network drops and when the playback or encoder process is restarted. Decide how you will restart the playlist and reconnect the encoder before leaving it unattended.

YouTube explicitly advises testing before going live and monitoring stream health. A “24/7” label does not establish continuous uptime: recovery after a local process, power, or network failure depends on your own configuration and environment.

Keep the stream compliant and sustainable

  • Rights: Use video and audio you are authorized to broadcast. A playlist does not grant rights to music, footage, or other material it contains.
  • YouTube policies: Check YouTube’s current rules for your content and channel. The available setup guidance does not establish whether a particular library is eligible for monetization or how a specific channel will be treated.
  • Continuous operation: Test the actual board, software, media, resolution, and frame rate together over an extended period before depending on them. No cited benchmark establishes a universal Pi model or thermal profile for 24/7 multi-file encoding.
  • Recovery: YouTube recommends health monitoring, but your response to a dropped connection or failed process is a local engineering choice. Test it rather than assuming playback will recover automatically.

Common problems and fixes

Symptom Likely area to check What to do
YouTube does not receive a picture Server URL, stream key, encoder connection, or live activation Recheck the URL and key in YouTube Studio and the encoder. Confirm live streaming has been enabled; first-time activation can take up to 24 hours.
Stream health warns of insufficient bitrate or unstable delivery Upload capacity or selected bitrate Run a speed test, check for competing upload traffic, and try a lower supported profile that the Pi can sustain.
Video stutters or the Pi cannot keep up Encoding workload, chosen profile, or media compatibility Test the same files and profile locally; reduce resolution or frame rate if needed, and verify performance on the specific board rather than relying on a general model claim.
Audio drops out or changes between clips File audio formats, playlist transitions, or playback configuration Test each file and the transitions in sequence. Confirm that your playback arrangement maintains audio as intended across the list.
Playlist stops after the last clip End-of-list behavior Check the loop setting or playlist implementation in the installed software and repeat a full-cycle test before using it live.
Stream does not resume after a drop Local process or network recovery behavior Simulate a brief network interruption and process restart. Add and test an appropriate restart or reconnect procedure for your setup.

Local Pi or cloud hosting?

A local Raspberry Pi gives you control over the files and playback process, but it relies on your hardware, power, internet connection, and tested recovery setup staying available. YouTube’s encoder guide also identifies Gyre as a cloud-based option for continuous prerecorded-video streams; check its current capabilities and terms directly before choosing it. For a cloud option, StreamNeo is #1 to try first: it keeps uploaded videos live on YouTube from the cloud, at any uploaded quality up to 4K 60fps for one flat price per slot, with the first day free.

Rank #4
Vilros Raspberry Pi 4 Complete Starter Kit- Includes Raspberry Pi 4 Board, Fan Cooled Case, 64GB Preloaded Micro SD Card and More (4GB, Clear Transparent Case)
  • Vilros Complete Starter Kit for Pi 4 Includes Raspberry Pi 4 Model B Board and all the accessories you need to get started.
  • 9-PART KIT WILL HAVE YOU READY TO GET UP AND RUNNING: Kit Includes 1. Raspberry Pi 4 Model B Board 2. Case With Easy to connect Built-in fan 3. 64GB Micro SD card Preloaded with RP OS 4. Vilros Pi 4 Compatible Power Supply with Inline on/off switch (power supply color may vary white/black) 5. Micro HDMI to Standard HDMI cable (5ft) 6. Micro SD to USB adapter to reflash card if desired 7. Neoprene Storage Bag to store all parts when not in use 8. Set of 4 Heatsinks 9. Vilros QuickStart Guide instruction booklet for Pi 4
  • PASSIVE & ACTIVE COOLING: The included case is well-vented and the kit also includes a set of heatsinks with thermal stickers for easy application and a pre-installed fan to keep the board cool in any use.
  • CONVENIENT ACCESSORIES: The power supply features an inline on/off switch neoprene bag that holds and protects all the parts when not in use and the QuickStart guide is updated and written for Raspberry Pi 4.
  • IMPORTANT: Kit does NOT include Keyboard, Mouse or Monitor
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Or let it run in the cloud

With StreamNeo, upload your recording or build a playlist, add your YouTube stream key once, and go live. It loops uploaded videos from the cloud, so nothing has to stay on at home. Any uploaded quality up to 4K 60fps is included at one price per slot, and StreamNeo automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month. Start your free StreamNeo day.

Quick Recap

Bestseller No. 1
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
CanaKit Raspberry Pi 4 4GB Starter PRO Kit - 4GB RAM
Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM); Includes Pre-Loaded 32GB EVO+ Micro SD Card (Class 10), USB MicroSD Card Reader
$159.99
Bestseller No. 2
Raspberry SC15184 Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (2GB)
Raspberry SC15184 Pi 4 Model B 2019 Quad Core 64 Bit WiFi Bluetooth (2GB)
Broadcom BCM2711, quad-core Cortex-A72 (ARM v8) 64-bit SoC @ 1. 5GHz; 2. 4 GHz and 5. 0 GHz IEEE 802. 11b/g/n/ac wireless LAN, Bluetooth 5. 0, BLE
$89.93
Bestseller No. 3
Raspberry Pi 4 Model B (2GB)
Raspberry Pi 4 Model B (2GB)
Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz; 1GB, 2GB, 4GB or 8GB LPDDR4-3200 SDRAM (depending on model)
$83.00
Bestseller No. 5
CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM); CanaKit USB-C PiSwitch (On/Off Power Switch)
$139.99
Best Value
CanaKit Raspberry Pi 4 4GB Basic Kit with PiSwitch (4GB RAM)
  • Includes Raspberry Pi 4 4GB Model B with 1.5GHz 64-bit quad-core CPU (4GB RAM)
  • CanaKit 3.5A USB-C Power Supply with Noise Filter (UL Listed) specially designed for the Raspberry Pi 4 (5-foot cable)
  • CanaKit USB-C PiSwitch (On/Off Power Switch)
  • Set of 3 Aluminum Heat Sinks for the Raspberry Pi 4

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.

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.