Skip to content
streamneo.
Setup Guides12 min read

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

Use an Oracle Cloud Always Free VM for a YouTube live stream, with clear limits, encoder setup, regional capacity checks and recovery planning.

sn.
StreamNeoPublished 5 October 2026
Worth sharing?

Oracle Cloud’s Always Free compute can host an encoder that sends a continuous video feed to YouTube Live, but it is not a promise of uninterrupted service. Capacity depends on your home region, Oracle’s reclaim policy applies to idle instances, and the complete VM-to-YouTube workflow needs monitoring and recovery planning.

The practical approach is to provision an eligible VM, test the actual encoder and ingest settings, then decide whether the free-tier trade-offs suit a channel that is meant to stay live overnight. Treat the setup as something you operate, not a stream you can start and forget.

What the Oracle Cloud Free Tier setup involves

There are three parts: an Oracle Cloud Infrastructure (OCI) virtual machine, an encoder running on that VM, and a YouTube Live broadcast that receives the encoder’s feed. The VM runs the operating system and encoder; the encoder reads a video or playlist, encodes it, and sends it to YouTube using your stream key. YouTube handles the live viewing experience, while OCI provides the compute resource.

This differs from sending a stream from a desktop. The encoder can continue running with your personal computer switched off, but the VM can still stop, lose connectivity, run out of space, or be reclaimed under Oracle’s conditions. A continuously looping file does not remove those dependencies. Build in a way to see whether the encoder is running and whether YouTube is receiving a healthy signal.

Oracle’s Always Free allowance is a set of eligible resources, not a reserved machine with guaranteed capacity in every region. Oracle documents an Ampere A1 allowance equivalent to 2 OCPUs and 12 GB of memory for Always Free tenancies, along with 200 GB combined boot and block storage and 10 TB per month of outbound data transfer. Check the current Always Free resource list before planning around these figures; quotas and eligibility can change.

The cloud workflow is most suitable when you are comfortable administering a Linux VM or can follow a tested setup guide carefully. If your priority is avoiding command-line work and VM maintenance, consider the operational effort before you begin. For a file-based channel, a continuous YouTube playlist for lecture recordings is a useful example of the content workflow to plan separately from the compute setup.

Check regional availability and capacity

Always Free resources must be provisioned in your tenancy’s home region. That makes the region you select when creating your Oracle account important: you cannot assume that a free A1 instance will be available in whichever region happens to be closest to your viewers. The cloud region and YouTube audience location are separate considerations. Choose the region available to your tenancy, then test the route to YouTube’s ingest endpoint from the VM.

A region can have an eligible shape on paper and still have no host capacity when you try to create it. Oracle’s launch guidance describes an “out of host capacity” message as a temporary shortage for the requested shape in the home region. If you see it, check whether another availability domain is offered for the shape, or wait and retry. Repeated attempts do not create capacity, and it is better not to base a launch plan on the assumption that the first try will succeed.

Before configuring an encoder, open the OCI console and confirm the home region shown for your tenancy. Start the instance creation flow and verify that the chosen shape is marked Always Free eligible. The exact labels and screen layout may change, so use Oracle’s instance launch tutorial alongside the live console rather than relying on an old screenshot.

Do not create a paid shape as a workaround without understanding its billing first. If no eligible capacity is available, pause and decide whether you can wait, use another hosting arrangement, or revise the plan. Capacity is an operational constraint, not a setting that can be fixed by changing the encoder bitrate.

Understand Always Free limits and reclaim conditions

Oracle’s documented Always Free A1 allowance is equivalent to 2 OCPUs and 12 GB of memory. It also lists 200 GB of combined boot and block volume storage and 10 TB per month of outbound transfer. These are account resource limits rather than an individual streaming guarantee. Leave room for the operating system, logs, and any local media files, and monitor transfer use if your channel sends a high-bitrate feed continuously.

The amount of outbound transfer depends on the encoder’s output bitrate and how long it sends data. A higher resolution or frame rate generally calls for a higher bitrate, which means more data leaving the VM over time. Estimate from the settings you intend to use, then watch actual usage in the OCI console. Do not infer your monthly total from viewer numbers: the VM sends one ingest feed to YouTube, not a separate copy for every viewer.

Oracle also describes conditions under which it may reclaim idle compute instances. Its policy looks at CPU and network utilisation at the 95th percentile over a seven-day period, with both below 20%; for A1 instances, memory utilisation below 20% is also part of the stated condition. A video encode-and-upload workload may generate activity, but that does not establish that an instance is exempt from reclamation. Do not add artificial workload or treat a busy encoder as a guarantee against policy action. Review Oracle’s Always Free compute reclamation policy and keep backups of the media and configuration you need to rebuild.

Keep the temporary trial distinct from Always Free. Oracle’s Free Tier documentation describes trial credits lasting up to 30 days; that is not the same as the ongoing eligible resource allowance. Oracle also says excess A1 resources may be disabled and deleted after 30 days unless the account is upgraded. Confirm the current terms in Oracle’s documentation and account console before selecting resources beyond the Always Free allocation.

A budget and a recovery plan are both sensible even when your intended compute use is free. A service can change its offer, a resource can be reclaimed, or you may choose a paid configuration later. For a broader view of the billing model, see how cloud YouTube streaming services treat viewer watch time; the central distinction here is that outbound transfer and compute use are not the same thing as audience watch time.

Prepare a VM and encoder for YouTube Live

Once an eligible instance is available, create a Linux VM using the Oracle launch flow and choose an image you know how to maintain. Oracle’s tutorial shows an example A1 configuration with 1 OCPU and 6 GB of memory; it is an example, not a required allocation for streaming. Stay within the free allowance and check the console’s eligibility labels before confirming. A smaller resource allocation may be enough for a modest encode, but actual performance depends on the source, codec, resolution, and frame rate, so test rather than assume.

Secure access before leaving the VM unattended. Use key-based SSH access, keep private keys private, and restrict inbound network access to what you need for administration. You generally do not need to expose an incoming streaming port when the VM’s encoder initiates an outbound connection to YouTube. Apply operating-system security updates deliberately, and avoid making changes during a broadcast unless you have a reason and recovery time.

Install an encoder such as FFmpeg from a trusted source appropriate to your distribution, then verify that it can read the media file and encode the selected video and audio formats. This article does not claim a tested command or service unit: package names, FFmpeg builds, and input formats differ. If you use a command-line loop, test how it behaves at the end of a file, with audio-track changes, and after a process restart. A prepared playlist can help avoid a long silent gap between items, but it cannot remedy a failed VM.

Store media on the VM only if the available storage and transfer plan support it. Keep an original copy elsewhere, and preserve the encoder configuration in a location you can retrieve if the instance disappears. Protect the YouTube stream key as a credential: do not publish it in a script repository, paste it into screenshots, or leave it readable to unrelated accounts on the VM. If you think it has been exposed, replace it in YouTube Studio and update the encoder.

You can also send video from a local machine, but then your home power and internet connection become part of the 24/7 path. A cloud VM removes that particular dependency; it does not eliminate network or process failures. If a looped MP4 is your source, the guide to looping MP4 videos to YouTube Live from Ubuntu can help you think through the encoder side, while the Oracle-specific task remains provisioning and operating the VM.

Configure and verify the stream

Use YouTube’s current encoder guidance as the source of truth. YouTube recommends RTMPS, its secure extension to RTMP, for ingest; it supports H.264, H.265/HEVC, and AV1 video, with AAC or MP3 audio. For a predictable live feed, choose constant bitrate (CBR) and a keyframe interval of two seconds, which must not exceed four seconds. YouTube’s encoder settings and bitrate recommendations provide codec- and resolution-specific figures. Select the correct codec column rather than combining a bitrate recommendation from one codec with a limit from another.

For example, YouTube’s displayed H.264 recommendations include 4 Mbps for 240p–720p at 30 fps, 6 Mbps for 720p at 60 fps, 10 Mbps for 1080p at 30 fps, and 12 Mbps for 1080p at 60 fps. Those figures are guidance for those respective formats, not a promise that every source will look right at that bitrate. A static devotional image with audio and fast-moving footage have different visual demands. Choose a resolution and frame rate that suit the material and the VM’s tested encoding capacity.

For stereo audio, YouTube lists 44.1 kHz sample rate and 128 Kbps audio bitrate as recommended advanced settings. Confirm that the source actually contains the audio you intend to broadcast. A silent or unsupported track can make a video appear to work while leaving viewers with no sound. Listen to the test feed, not just the local file.

In YouTube Studio, set up the live stream or broadcast and obtain its stream key. The YouTube Live API documentation describes stream resources separately from broadcast resources, so ensure the persistent feed and the broadcast lifecycle are configured consistently. A successful encoder connection does not by itself prove that the event is public, correctly scheduled, or visible to viewers. Check the current YouTube Live API overview if you are automating broadcast creation; do not assume reconnection recreates or resumes an event exactly as you intend.

Run a real test before relying on the setup. Start the encoder, verify that YouTube receives the feed, and inspect stream health messages in Studio. Check video, audio, aspect ratio, and whether the stream remains stable through a source-file transition. Make the test private or unlisted if that suits your channel workflow. Then stop and restart the encoder deliberately, and confirm what happens in Studio before treating the arrangement as ready for a public continuous channel.

Monitor operation and plan for recovery

A continuous stream needs checks at both ends. On the VM, inspect whether the encoder process is running, whether it is producing logs, and whether disk space and memory remain adequate. In YouTube Studio, look at stream health and any warnings about the incoming signal. YouTube recommends testing in advance and monitoring stream health during a live event; a process that exists on Linux can still be sending an invalid or stalled feed.

Use a process supervisor or equivalent restart plan so an encoder crash can be noticed and retried. Configure restart-on-failure cautiously, with logs and an alert path you will actually see. A service manager can bring a process back after a crash, but a restart may not restore the same YouTube broadcast state or clear every ingest issue. Test what happens after a process stop, a VM reboot, and a temporary network interruption. The exact behaviour depends on your setup, and no particular service unit has been validated here.

Plan for the possibility that the VM itself is unavailable or reclaimed. Keep the source files, encoder settings, and a note of the YouTube broadcast configuration outside that instance. If you need to rebuild, provision only eligible resources, restore the media and settings, rotate the stream key if needed, and verify the ingest again before directing viewers to it. A recovery checklist is more useful than assuming a restart will happen without your involvement.

Set a monitoring routine that fits the channel. For a small business promotion loop, a missed overnight broadcast may affect a planned message; for a devotional or ambience station, a brief interruption may be less urgent but still needs detection. Decide who receives an alert, how soon someone will check it, and what fallback content or announcement makes sense. For channels that depend on a stable source despite home connectivity limits, this guide to running a live stream on slow internet explains why moving the encoder does not solve every network-related issue.

StreamNeo addresses one specific operational burden when your source is a prepared video file: you upload it once, provide the YouTube stream key, and the broadcast can run with your computer switched off, with monitoring and automatic restart if it drops. It is YouTube-only, and it does not change YouTube’s ingest requirements or make a channel immune to interruptions. For this Oracle setup, the important choice is whether you want to administer and monitor the VM yourself or prefer not to keep that part of the workflow on your task list.

Before committing, compare the operating options on the pricing page. When the file and channel are ready, start free — 24-hour trial, no card.

FAQ

Can Oracle Cloud Free Tier run a YouTube stream 24/7?

It can host an encoder that sends a continuous feed, provided an eligible VM is available and the encoder and YouTube broadcast are configured correctly. Always Free eligibility does not guarantee capacity, continuous operation, or immunity from instance reclamation, so plan to monitor and recover the stream.

What bitrate should I use for a continuous YouTube stream?

Choose a bitrate from YouTube’s current recommendations for your codec, resolution, and frame rate, then test the actual feed in Studio. Use CBR and the recommended two-second keyframe interval, and check outbound transfer use in OCI rather than treating a bitrate as a universal setting.

Will a looping encoder prevent OCI from reclaiming my VM?

Do not rely on that. Oracle’s idle-instance policy uses utilisation conditions over a seven-day period, and a looped upload does not establish an exemption or promise that the instance will remain allocated.

What should I check when the stream drops?

Check the VM and encoder logs first, then inspect YouTube Studio for ingest health and broadcast state. Restart only after you understand what stopped, and verify the feed again; keep media and configuration backed up so a VM rebuild is possible if the instance is no longer available.

YOU’VE REACHED THE END

Keep the ideas coming.

More guides, useful tools and a little help for your next broadcast.

Back to the journal ↗
YOUR NEXT READ

A little more to explore.

More Setup Guides guides ↗ · All topics ↗