Guide · Loop video live stream

How to loop a video as a 24/7 YouTube live stream (free and paid methods)

By the LoopStream Live team 9 min readUpdated
Quick answer

To loop a video on YouTube Live, send it to YouTube on repeat with your stream key. For free, use OBS with a looping media source (your computer must stay on) or FFmpeg on a rented server. For 24/7 with nothing left running, use a cloud tool such as LoopStream Live: add the video, paste the key, press Go Live.

Loop any video on YouTube Live 24/7: add it, paste your stream key, tap Go Live.
Start streaming

A loop video live stream is how lofi radio channels, rain sound channels and church replay channels stay live all day without anyone sitting at a desk. You record or edit the video once, and it keeps playing live on your channel around the clock. This guide covers every way to do it, the free methods and the paid ones, what each really costs you in time and money, and how to keep the stream running for weeks without touching it.

MethodCostDevice left on?Best for
OBS on your computerFreeYes, the whole timeTesting, or a few hours at a time
FFmpeg on a rented serverServer rental, often around $5 a monthNoPeople comfortable with a Linux terminal
Cloud loop tool (LoopStream Live)Free plan (1 hour a day), passes for 24/7No24/7 streams set up from a phone or browser

What is a loop video live stream?

A loop video live stream is a YouTube live broadcast made from a pre-recorded video that plays on repeat. To viewers it behaves like any other live stream: it carries the red LIVE badge, it shows up in the Live tab of your channel, and people can chat while they watch. The difference is that nobody is in front of a camera. The same file, or a playlist of files, is sent to YouTube again and again with no gap between loops.

Under the hood, the video is encoded and pushed to YouTube over RTMP (to the YouTube RTMP URL, with your stream key), the same protocol OBS Studio and hardware encoders use. YouTube cannot tell whether the picture comes from a camera or a file, so a looped stream is treated like any live stream.

Whichever method you pick, you need live streaming turned on for your channel first. Open YouTube Studio, click Create, then Go live. If your channel has never streamed, YouTube asks you to verify a phone number, and the first activation can take up to 24 hours. You only do this once.

Free method 1: how do you loop a video in OBS Studio?

OBS Studio is free, open-source streaming software for Windows, Mac and Linux. It can play a video file on repeat and send it to YouTube, which makes it the quickest free way to test a loop stream.

  1. 1

    Connect OBS to YouTube

    Open OBS, go to Settings, then Stream. Choose YouTube as the service, pick Use Stream Key, and paste the key from YouTube Studio (where to find your stream key).

  2. 2

    Add the video as a looping Media Source

    In the Sources box, click +, choose Media Source, tick Local File and browse to your video. Tick Loop, then click OK. The video now fills the scene and starts again every time it ends.

  3. 3

    Set the output

    In Settings, then Output, set the video bitrate (around 4,500 Kbps suits 1080p at 30 fps) and set the keyframe interval to 2 seconds. YouTube warns about anything longer.

  4. 4

    Start streaming and keep the computer awake

    Click Start Streaming. Then turn off sleep and automatic restarts for updates in your computer's power settings, because the stream only lasts as long as OBS stays open and online.

For playlists, smooth loop points and audio-only loops, see the full guide on how to loop a video in OBS. The catch is that word computer. A sleep timer, a Windows update, a power cut or a Wi-Fi drop ends the stream, and OBS does not always reconnect on its own after a long outage. OBS is fine for a few hours or for testing your video. For a stream that runs for days, the computer becomes the weak point.

Free method 2: how do you loop a video with FFmpeg on a server?

FFmpeg is the free command-line tool most streaming software uses under the hood. Run it on a rented Linux server (a VPS) and the loop no longer depends on your own computer. The software is free; the server is not, and small ones often cost around $5 a month. Upload your video to the server, then run:

ffmpeg -re -stream_loop -1 -i video.mp4 \
  -c:v libx264 -preset veryfast -b:v 4500k -maxrate 4500k -bufsize 9000k \
  -pix_fmt yuv420p -g 60 -c:a aac -b:a 128k -ar 44100 \
  -f flv rtmp://a.rtmp.youtube.com/live2/YOUR-STREAM-KEY
  • -re sends the video at normal playback speed instead of as fast as possible.
  • -stream_loop -1 repeats the file forever.
  • -g 60 puts a keyframe every 2 seconds at 30 fps, which is what YouTube expects. Use -g 120 for a 60 fps video.
  • If your file is already H.264 video with AAC audio, you can swap the encoding options for -c copy to use almost no CPU, but a file with uneven keyframes can make YouTube show warnings.

Run the command inside tmux or screen, or as a systemd service, so it survives when you log out. Over days, YouTube will drop the connection now and then, which ends FFmpeg. A simple shell loop such as while true; do ffmpeg ...; sleep 5; done restarts it, but every restart begins the video again from 0:00. This method works well if you are comfortable in a terminal; it is the most hands-on of the three.

Cloud method: how to loop a video 24/7 with nothing left on

A cloud loop tool does the FFmpeg part for you on its own servers. You set the stream up once from a browser or phone, then nothing of yours has to stay on (setting up on a phone? see our stream loop app guide). Here is how it works in LoopStream Live:

  1. 1

    Turn on live streaming for your channel

    In YouTube Studio, click Create, then Go live, and complete the one-time phone verification if asked. You don't need any subscribers: here's how to go live on YouTube without 50 subscribers.

  2. 2

    Add your video

    Sign up for LoopStream Live (the free plan needs no card), create a new stream and upload your video from your phone, or paste a Google Drive or Dropbox share link so the file is fetched for you without using your mobile data. MP4 files with H.264 video and AAC audio work best. Add more videos if you want a playlist.

  3. 3

    Paste your stream key

    In YouTube Studio, go to Go live, open the Stream tab and copy the Stream key (if you can't spot it, here's how to find your YouTube stream key on a phone or computer). Paste it into LoopStream Live and switch on Loop continuously. Keep the key private: anyone who has it can stream to your channel.

  4. 4

    Press Go Live

    Tap Go Live. Within a minute the preview appears in YouTube Studio and the stream is public on your channel. You can now close the app, lock your phone or shut your laptop. The loop keeps running on our servers.

Try it on your own channel. The free plan needs no card.
Start streaming

Free vs paid: which way to loop a video should you use?

Free methods cost nothing in software but cost you in upkeep. OBS needs your computer on, awake and online for as long as the stream runs. FFmpeg on a server avoids that, but you rent the server, write the command and fix it yourself when it stops. A cloud stream loop app moves both jobs onto someone else's servers: it reconnects on its own, and you control everything from a browser or the Android app.

A simple rule: if you want to stream for a few hours or test an idea, OBS is enough. If you are happy in a terminal and want the cheapest 24/7 setup, use FFmpeg on a VPS. If you want a stream that runs for weeks without you looking after it, use a cloud tool. If you're weighing up cloud tools, here's how the best 24/7 live streaming services compare on price and limits.

OBS on your PCYour own VPSLoopStream Live
Your device must stay onYes, 24/7NoNo
SetupInstall and configure OBSServer, FFmpeg, loop commandAdd video, paste key
Reconnects after a dropUsually manualOnly if you script itAutomatic
Resumes mid-video after a dropNoOnly if you script itYes
Set up from a phoneNoNoYes
CostFree, plus electricityMonthly server feeFree plan (1 hour a day), passes from $5 a week

How do you loop a playlist instead of one video?

Add several videos to the same stream and they play in order, then start again from the first one. This is the easiest way to make a 24/7 channel feel fresh, because returning viewers do not see the same clip every time they tune in. A good rule is to make the full playlist at least an hour long. Lofi and ambience channels often run three to eight hours of material on repeat.

Will the stream really stay live 24/7?

Any stream that runs for days will see YouTube drop the connection now and then. That is normal and happens to every encoder. What matters is what happens next. LoopStream Live reconnects on its own and picks up from the point the video had reached, instead of jumping back to 0:00, so viewers in the middle of a track are not thrown back to the start. You can also set a schedule to start and stop at fixed times, once or every day, if you do not want the channel live around the clock. Here is how to schedule a YouTube live stream so it goes live by itself.

What kind of videos work best on a 24/7 loop?

Loop streams do best with content that people leave playing in the background, where a repeat is not a problem:

  • Lofi, jazz and study music for focus sessions (how to set up a 24/7 lofi stream)
  • Rain, ocean, fireplace and forest ambience for sleep
  • White noise and meditation tracks
  • Sermon, bhajan, kirtan and Quran recitation replays
  • Podcast episodes and talk show reruns
  • Nature and scenic camera footage
  • Product demos and menu boards for shops and restaurants
Only stream videos and music you own or are licensed to use. YouTube's Content ID checks live streams too, and a claim on third-party music can stop the stream or limit it.

Tips for a smooth loop stream

  • Export at a steady frame rate, 30 fps is ideal, and keep one resolution for the whole file, 1080p or 720p.
  • Add a short fade at the start and end of the video so the loop point is not jarring.
  • Put what the stream is, plus 24/7, in the title, for example Rain sounds for sleep, 24/7, and use a custom thumbnail.
  • Write a description that says the stream is a looped recording. Honest titles keep viewers and keep you clear of misleading-content rules.
  • Check the stream health panel in YouTube Studio once after going live. It should read Excellent or Good.

Frequently asked questions

Can I loop a video on YouTube Live for free?

Yes. OBS Studio is free and can loop a video file to YouTube, as long as your computer stays on. FFmpeg is also free, but running it 24/7 means renting a server. LoopStream Live has a free plan with 1 hour of streaming a day; streaming 24/7 needs a pass.

Is it allowed to loop a pre-recorded video on YouTube Live?

Yes. Many channels run looped live streams. Follow YouTube's Community Guidelines, only stream content you have the rights to, and keep your title and description honest about what the stream is.

Do I need to keep my phone or computer on?

No. Once you press Go Live, the stream runs on LoopStream Live's servers. You can close the app, lock your phone or turn your computer off.

Can I loop a video that is already on my YouTube channel?

Yes. Download it from YouTube Studio (Content, then the video's options menu, then Download), then upload it to LoopStream Live or paste a Google Drive link to it.

What happens if the stream disconnects?

It reconnects automatically and resumes from where the video was, rather than restarting from the beginning.

Does it work with Facebook, Twitch or Kick?

Yes. Any platform that accepts an RTMP stream key works the same way: paste that platform's server and stream key instead of YouTube's (for Facebook, here is the Facebook Live RTMP URL and stream key).

How much does a loop live stream cost?

You can start on the free plan (720p, small watermark, 1 hour of streaming a day). For 24/7 streaming, buy a one-time pass for a week ($5, or ₹399 in India), a month ($12 or ₹999) or a year ($120 or ₹9,999). Passes never auto-renew.