Driver FixRecommendedSound, Wi-Fi or graphics acting up? Check drivers firstFind missing or outdated drivers fast.Check DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
DocumentaryTube
24/7 streaming

How to Run a 24/7 YouTube Stream on Oracle Cloud Free Tier

A practical guide to a continuous YouTube Live feed from an OCI Always Free VM, including Oracle’s limits, YouTube’s encoder settings, an FFmpeg example, and recovery checks.

By DocumentaryTube Team 11 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can run a continuous YouTube Live broadcast from an Oracle Cloud Infrastructure (OCI) Always Free virtual machine by looping video through an encoder such as FFmpeg and sending the feed to YouTube. It is not guaranteed to stay free of interruptions: Always Free capacity is limited, instances can be reclaimed under Oracle’s idle-compute policy, and the encoder and YouTube broadcast both need monitoring.

This guide covers the OCI limits, YouTube ingest settings, an FFmpeg setup to adapt and test, and recovery checks. The FFmpeg commands and service example are implementation guidance, not a configuration validated by Oracle or YouTube.

What you need before setting it up

The workflow has three parts: an OCI virtual machine (VM), an encoder that continuously produces a video signal, and a YouTube Live broadcast that ingests it. For a pre-recorded documentary stream, the encoder can loop one video or a playlist. The VM must remain provisioned and the encoder must keep sending a valid feed.

  • An OCI account with an Always Free eligible compute shape available in its home region.
  • A video file or playlist you have the rights to stream, stored on the VM or otherwise accessible to the encoder.
  • A YouTube channel enabled for live streaming, a scheduled or active broadcast, and its stream key.
  • An encoder such as FFmpeg, plus a way to supervise the process, inspect logs, and check YouTube’s stream health.

For documentaries, confirm that you have permission to broadcast the footage, music, narration, and any other included material. YouTube’s copyright and monetization policies apply to continuous streams just as they do to other uploads or live broadcasts; looping a recording does not grant rights or guarantee monetization.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Understand the Oracle Cloud Free Tier limits

Oracle documents the Always Free Ampere A1 allowance as equivalent to 2 OCPUs and 12 GB of memory, with 200 GB of combined boot and block volume storage and 10 TB per month of outbound data transfer. These are Oracle service quotas, not a promise that a suitable VM will be available in every region or that a stream will run without interruption. Free resources must be provisioned in the tenancy’s home region. See Oracle’s Always Free resources documentation and Free Tier overview.

Capacity, trial credits, and deletion risks

  • If OCI reports “out of host capacity,” Oracle says the home region may temporarily lack capacity for Always Free shapes. Try another availability domain if one is available, or wait and retry.
  • Oracle’s launch tutorial shows a sample A1 VM with 1 OCPU and 6 GB of memory. That is an example configuration, not a required size for a stream. Choose an Always Free eligible shape and leave enough resources for the operating system and encoder.
  • Oracle’s Free Tier documentation describes $300 of trial credits for up to 30 days. Those temporary credits are separate from eligible Always Free resources, which may remain available after the trial expires.
  • Oracle warns that excess A1 resources may be disabled and deleted after 30 days unless the account is upgraded. Check the account’s status and the resources you have actually provisioned rather than assuming trial or free-tier eligibility will preserve every resource.

Oracle’s idle-compute policy can also put an Always Free VM at risk of reclamation. Oracle describes an idle instance as one whose CPU and network utilization are each below 20% at the 95th percentile over a seven-day period; for A1, memory utilization below 20% is also part of the condition. A looping encode-and-upload workload may produce activity, but do not treat streaming as an exemption from this policy. Review Oracle’s current terms at the Always Free resources page.

Create an Always Free eligible VM

  1. Choose the home region. In the OCI Console, select the region associated with your tenancy. Always Free resources must be created there.
  2. Open the compute instance workflow. Follow OCI’s current instance creation flow and select an Ampere A1 shape marked Always Free eligible. Oracle’s tutorial uses 1 OCPU and 6 GB memory as an example; it is not a mandatory configuration. Console labels and available capacity can vary.
  3. Configure access and storage. Add an SSH public key so you can administer the Linux VM. Keep the boot volume and any media storage within the applicable Always Free storage allowance.
  4. Set up network access. Ensure you can connect to the VM over SSH. The encoder needs outbound connectivity to YouTube’s ingest endpoint. Restrict inbound access to what you need; do not expose the stream key or administrative access publicly.
  5. Launch and verify. Connect by SSH, update the operating system using its documented package manager, and confirm that the VM has the expected shape, storage, and region before transferring large media files.

If capacity prevents creation, do not substitute a paid shape on the assumption it will remain free. Wait or try another availability domain in the home region where OCI offers one.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Prepare YouTube Live for a continuous feed

In YouTube Studio, create or schedule a live broadcast and configure its stream. Exact labels can change, but YouTube’s model distinguishes the broadcast (the event viewers see) from the stream (the incoming encoded feed). The YouTube Live API documentation discusses this separation and 24/7 broadcast scenarios: YouTube Live Streaming API documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Enable live streaming for the channel if it has not been enabled already; YouTube may require an initial activation period.
  2. Create or schedule the broadcast and set its visibility, title, description, and other viewer-facing details.
  3. Open the broadcast’s stream settings and copy the server/ingest address and stream key. Treat the key like a password: anyone with access may be able to send video to your channel.
  4. Keep the broadcast configured consistently with the persistent feed. Test whether the broadcast remains usable after a disconnect or VM restart; do not assume reconnection will automatically recreate or resume the same event.

YouTube recommends RTMPS for live ingestion: “We recommend streaming to YouTube Live with RTMPS, a secure extension to the popular RTMP streaming video protocol.” Use the RTMPS ingest address shown for your broadcast rather than guessing a server URL. Read the current YouTube encoder settings and bitrate recommendations.

Choose encoder settings for the source video

Match the output resolution and frame rate to the material. Higher resolutions and frame rates require more bitrate, and the recommended bitrate depends on the codec. YouTube’s guidance supports H.264, H.265/HEVC, or AV1 video, AAC or MP3 audio, constant bitrate (CBR), frame rates up to 60 fps, and a keyframe interval of 2 seconds that must not exceed 4 seconds. For stereo audio, its advanced settings recommend 44.1 kHz and 128 Kbps.

Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
H.264 output YouTube recommended bitrate
240p–720p at 30 fps 4 Mbps
720p at 60 fps 6 Mbps
1080p at 30 fps 10 Mbps
1080p at 60 fps 12 Mbps

These figures are YouTube’s displayed H.264 recommendations, not universal settings for every codec or source. Its page gives separate ranges for AV1/H.265 and higher resolutions; use the matching codec column on the current page rather than combining figures across codecs. In particular, follow YouTube’s live table if a displayed recommendation appears inconsistent with another codec’s range.

Allow for audio and protocol overhead when estimating network use. A 10 Mbps video stream sends roughly 4.5 GB of video data in an hour before audio and overhead; at that rate, a continuously running stream can consume a substantial share of Oracle’s 10 TB monthly outbound allowance. Actual transfer depends on bitrate, audio, and connection behavior. YouTube recommends a test broadcast and ongoing checks of stream health and messages rather than relying on a successful encoder launch alone.

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

Install FFmpeg and prepare a looping source

Install FFmpeg using the package instructions for the operating system image you chose, or use a trusted build compatible with that system. Confirm the binary is available with ffmpeg -version. Upload the media file to a protected directory on the VM and check that its audio and video streams decode correctly before starting a long-running broadcast.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2Ă— USB C male to USB A female adapters and 2Ă— USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft

The following is an illustrative FFmpeg command for a 1080p30 H.264/AAC source. Replace the ingest URL and key with the values YouTube provides. This command is not an officially validated YouTube or Oracle configuration; test it with your own source and broadcast settings.

ffmpeg -re -stream_loop -1 -i /path/to/documentary.mp4 
  -c:v libx264 -preset veryfast -b:v 10M -maxrate 10M -bufsize 20M 
  -pix_fmt yuv420p -r 30 -g 60 -keyint_min 60 -sc_threshold 0 
  -c:a aac -b:a 128k -ar 44100 -ac 2 
  -f flv "rtmps://YOUR_INGEST_ADDRESS/YOUR_STREAM_KEY"
  • -re reads the file at its playback rate rather than encoding as fast as possible.
  • -stream_loop -1 loops the input indefinitely. To loop a playlist, create a compatible concat input or manage the playlist with a separate process; test transitions and durations before using it live.
  • The example uses H.264 at 10 Mbps for 1080p30, with a 2-second GOP at 30 fps. If you change frame rate, adjust the keyframe interval to preserve a 2-second spacing, and keep it no longer than YouTube’s 4-second maximum.
  • The example sets AAC stereo audio to 128 Kbps and 44.1 kHz. If the source has no audio or uses a different layout, adapt the command and test the result.
  • -preset veryfast trades compression efficiency for lower encoding demand. If the VM cannot encode smoothly, lower the output workload or choose a preset that fits its available CPU; a preset does not change YouTube’s ingest requirements.

For a video that already matches the desired resolution and frame rate, avoid upscaling merely to label it 1080p. Monitor CPU, memory, and network usage during the test. Do not place a real stream key in shell history, public logs, screenshots, or shared scripts. Prefer a restricted configuration file or service environment file with permissions limited to the account that runs FFmpeg.

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

Keep the encoder running and plan for recovery

A terminal session is not a reliable supervisor for a 24/7 process: disconnecting SSH or rebooting the VM may stop it. Use a process supervisor or service manager with restart-on-failure behavior, and direct output to logs you can inspect. The example below is a starting point for a Linux system using systemd, not a tested service unit. Adapt it to the VM’s user, file paths, secret handling, and systemd version.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
[Unit]
Description=YouTube Live FFmpeg stream
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=stream
ExecStart=/usr/bin/ffmpeg -re -stream_loop -1 -i /srv/video/documentary.mp4 -c:v libx264 -preset veryfast -b:v 10M -maxrate 10M -bufsize 20M -pix_fmt yuv420p -r 30 -g 60 -keyint_min 60 -sc_threshold 0 -c:a aac -b:a 128k -ar 44100 -ac 2 -f flv rtmps://YOUR_INGEST_ADDRESS/YOUR_STREAM_KEY
Restart=on-failure
RestartSec=10

[Install]
WantedBy=multi-user.target

Putting the key directly in a unit file can expose it to users who can read that file. A safer deployment keeps secrets in a root-readable environment file or another protected secret store and references them without printing them in routine logs. After installing a unit, reload the service manager, enable the service at boot, start it, and inspect its status and logs. Exact commands depend on where you install the unit and how your distribution manages services.

  • Use restart-on-failure to relaunch FFmpeg after a process failure; it does not prove that the next connection will be accepted by YouTube.
  • Check the encoder process, VM resource usage, logs, OCI instance status, and YouTube stream-health messages on a regular schedule.
  • Test recovery by restarting the service and, separately, rebooting the VM. Verify whether the feed returns and whether the intended YouTube broadcast is still active.
  • Set an alert for a stopped process or lost ingest if you need timely notice. A local process supervisor alone cannot alert you if the VM is unreachable or reclaimed.
  • Keep a recovery note with the media path, service name, broadcast settings, and the steps to rotate the stream key if it is exposed.

Neither Oracle’s cited documentation nor YouTube’s encoder guidance establishes that a particular FFmpeg unit will reconnect uninterrupted, automatically recreate a broadcast, or prevent OCI reclamation. Treat recovery as something to design and verify, not a guarantee.

Estimate transfer and storage before leaving it live

Oracle lists 10 TB per month of outbound transfer and 200 GB of combined boot and block storage for Always Free resources. The outgoing video bitrate is the main variable in transfer use; audio and network overhead add to it. A constant 10 Mbps video rate alone is about 3.24 TB over 30 days (10 megabits per second divided by 8, multiplied by 2,592,000 seconds), before audio and overhead. That arithmetic is an estimate, not an OCI usage measurement or assurance that all account traffic is covered identically.

Keep the source file size, operating system, logs, and any additional media within the storage allowance. If you store multiple documentaries locally, check space before copying them; a full disk can prevent logs, temporary files, or the encoder from operating as expected.

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

Troubleshoot common failures

Symptom Likely cause What to check
OCI cannot launch the instance Temporary lack of Always Free host capacity in the home region Try another availability domain where available or wait and retry; confirm you are selecting an Always Free eligible shape.
FFmpeg exits immediately Bad file path, unsupported or damaged media, invalid options, or malformed ingest URL/key Read the FFmpeg error output, verify the file and stream metadata, and re-enter the exact ingest details from YouTube.
YouTube receives no video Wrong stream key or server address, outbound connectivity issue, or encoder not producing a supported signal Check the broadcast’s current stream settings, VM network access, FFmpeg logs, and YouTube stream-health messages.
Ingest connects but is unstable Bitrate too high for the available outbound connection, encoding overload, or mismatched settings Compare actual output to YouTube’s codec-specific guidance; inspect VM CPU and network use; test a lower resolution or frame rate.
Broadcast ends after a disconnect The broadcast lifecycle may not resume automatically when ingest returns Inspect the event in YouTube Studio, test reconnect behavior before relying on it, and configure the broadcast and feed lifecycle appropriately.
Stream stops after VM reboot or process crash Encoder was started only in a terminal, or supervision/restart is misconfigured Check the service manager’s status and logs, confirm startup enablement, and perform a controlled reboot test.
VM disappears or resources become unavailable Instance may be affected by account limits, eligibility, capacity, or Oracle’s idle-compute policy Check OCI account notifications, instance state, current Free Tier terms, and the utilization policy. Do not assume a stream prevents reclamation.

Or let it run in the cloud

If you want an always-on YouTube stream without maintaining an OCI VM and encoder, StreamNeo runs uploaded videos from the cloud: upload a recording or build a playlist, add your YouTube stream key once, and go live. Nothing has to stay on at home; it streams the uploaded file as made, up to 4K 60fps, at one price per slot, with automatic recovery if YouTube drops the stream. The first day is free with no card required (one free day per account). Monthly pricing is $9.99 per month. StreamNeo is for YouTube streams from uploaded videos, not live camera feeds. Start the free day with StreamNeo.

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.

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 Screening Room

Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver 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.