Halloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanHalloween DealsAmazon USOctober picks are moving - compare before checkoutAmazon US: current deals, useful picks and tech finds.See Picks×
FREEDOM251

Freedom251 › Blog › FFmpeg

How to Run a 24/7 YouTube Stream of Public-Domain Films with FFmpeg

By Freedom251 Team · · 5 min read

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

To run public-domain films as a continuous YouTube live stream, loop a local video file with FFmpeg, encode it to YouTube’s supported live format, and send it to the RTMPS ingest address and stream key from YouTube Studio. The computer, network connection, and media storage must remain available for the stream to continue; FFmpeg does not by itself guarantee recovery from a crash or lost connection. First confirm that the exact film, restoration, soundtrack, and territory are cleared for your use.

Before you stream: confirm the rights and prepare the film

Check the exact copy, not just the film title

A film described as public domain is not automatically safe to stream in every version or territory. Check the source and rights information for the precise file, including its restoration and soundtrack. Internet Archive cautions that its rights labels are supplied by uploaders and may be inaccurate; its U.S.-specific guidance also warns that a restored print or later soundtrack may carry separate rights. Its generalization that U.S. films completed in 1923 or earlier are generally public domain does not settle rights in later enhancements or in other countries. See Internet Archive’s Movies and Videos guide as a screening aid, not a definitive clearance ruling.

As an Amazon Associate I earn from qualifying purchases.

Download a file you can play locally

Use a local video file that you have the right to broadcast, rather than depending on a browser player during continuous playout. Check that the file decodes and that its audio and video play correctly before going live. Internet Archive notes that some formats cannot be played in its web player and provides download links for those files; a successful download or playback does not establish that the content is rights-cleared.

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.

Enable YouTube Live and get the encoder details

  1. Enable live streaming on the YouTube channel if it is not already enabled. YouTube says first-time enablement can take up to 24 hours.

  2. Open YouTube Studio’s Live Control Room and create an encoder stream. Copy the server URL and stream key shown in the live setup details.

  3. Treat the stream key as a credential: do not publish it, share it, or leave it visible in screenshots. Put the current server URL and key into FFmpeg’s output destination as described below; do not guess an ingest URL.

See YouTube’s current instructions for creating a live stream with an encoder. For encoder settings, follow its current bitrate and resolution recommendations, since the appropriate values depend on resolution and frame rate.

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.

Loop one film with FFmpeg

Starting command for a compatible 1080p30 file

This is a configuration template, not a tested command. Replace the file name, ingest URL, and stream key with your own values. Confirm that your FFmpeg build includes the listed encoders, then test privately or unlisted before publishing.

ffmpeg -re -stream_loop -1 -i "film.mp4" 
  -c:v libx264 -preset veryfast -pix_fmt yuv420p 
  -r 30 -b:v 5000k -maxrate 5000k -bufsize 10000k -g 60 
  -c:a aac -b:a 128k -ar 44100 
  -f flv "rtmps://YOUR_YOUTUBE_INGEST_URL/YOUR_STREAM_KEY"

What the important options do

  • -re paces reading from the file in real time. -stream_loop -1 loops the input indefinitely. These are input options, so put them before -i, as in the example.

  • -c:v libx264 encodes H.264 video; -pix_fmt yuv420p selects a commonly supported pixel format. The example sets output to 30 frames per second with -r 30.

  • -b:v and -maxrate set the target and maximum video bitrate in this example; -bufsize sets the rate-control buffer. YouTube’s current table lists 5 Mbps minimum and 14 Mbps recommended video bitrate for H.264 at 1080p30. The example’s 5 Mbps target is a starting point at that resolution and frame rate, not a universal recommendation. Use the current YouTube table and the source file’s actual resolution and frame rate to choose settings.

    Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  • -g 60 sets a 60-frame GOP, which is a 2-second keyframe interval at 30 fps. YouTube recommends a 2-second interval and says not to exceed 4 seconds; if you change frame rate, set the GOP accordingly.

  • -c:a aac -b:a 128k -ar 44100 encodes AAC audio at the example’s bitrate and sample rate. Check that the chosen file has the audio you expect, including levels and channel layout.

  • -f flv selects the output container used for this RTMP-family ingest. The destination uses RTMPS, which YouTube recommends as the secure extension to RTMP. Copy the actual server URL and key from Live Control Room rather than using the placeholder literally.

FFmpeg documents the loop option in its command-line documentation and RTMP-family transport in its protocol documentation. Confirm the installed version’s options and the input file before relying on a long-running process.

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

Test the stream and keep it supervised

  1. Start with a private or unlisted stream and confirm that YouTube receives both audio and video. Check the picture, sound, cadence, and stream-health messages in Live Control Room.

  2. Make the test representative of the real film. YouTube recommends testing with similar audio and motion, then monitoring stream health and messages during the event.

  3. For continuous operation, keep the computer, network connection, and media storage available. Arrange your own process monitoring, alerts, and restart procedure for FFmpeg exits or network failures; YouTube’s encoder instructions describe stopping an encoder stream but do not promise that FFmpeg will recover unattended.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Plan for copyright checks and stream archives

Public-domain status does not prevent a live interruption

YouTube scans live streams for third-party content. A match can cause the video to be replaced by a placeholder and a warning; if the matched content remains, YouTube may interrupt or terminate the stream. YouTube also says that licensed third-party content may require the rights holder to add the channel to its Content ID allowlist. Review YouTube’s guidance on copyright issues with live streams. A public-domain claim, an archive label, or a successful test does not guarantee that Content ID will not act.

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

Do not rely on automatic archiving for streams over 12 hours

YouTube automatically archives live streams only when they are under 12 hours. A longer continuous broadcast may not produce a complete automatic VOD. If an archive matters, schedule shorter sessions and preserve the original file or make a separate recording.

Costs and practical limits of a home FFmpeg setup

FFmpeg itself is the encoder in this workflow, but a 24/7 setup still depends on a continuously running computer, stable upload capacity, reliable access to the media files, and a plan for failures. Before choosing a home machine or hosted computer, compare sustained encoding capacity, network stability, storage access, uptime, and restart handling. There is no single hardware configuration established here as best for every file or connection. An external hard drive is optional local storage; the needed capacity depends on the size of your film collection.

Or let it run in the cloud

If you do not want a computer at home to stay on, StreamNeo keeps a YouTube channel live from uploaded videos: upload a recording or build a playlist, add the YouTube stream key once, and go live. It loops the video in the cloud, with no home computer or connection required. Every slot streams the uploaded quality up to 4K 60fps at one flat price per slot, with no re-encode or quality tiers, and includes automatic recovery if YouTube drops the stream. The first day is free with no card; it is one free day per account. Monthly billing is $9.99 per month. See StreamNeo plans or start the free day.

Quick Recap

Bestseller No. 1
Bestseller No. 2
Bestseller No. 3

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.

FFmpeglive streamingpublic domain filmsYouTube Live

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.

Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

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.