October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
DocumentaryTube
Admit one · Blog

How to Set Up a YouTube Live Video Loop on Google Cloud Compute Engine

Run a prerecorded video as a YouTube Live stream from a Google Cloud VM. This guide covers channel requirements, RTMPS, encoder settings, testing, and costs.
Opened Runtime6 min Written byDocumentaryTube Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can run a prerecorded video as a YouTube Live stream from a Google Cloud Compute Engine virtual machine (VM): prepare an eligible YouTube channel, create a Linux VM in a billing-enabled Google Cloud project, connect an encoder to YouTube using the stream URL and key, and test the feed in Live Control Room. The VM can keep the encoder running without your home computer, but it also creates ongoing cloud costs and requires you to manage the software and recovery.

Before you begin

  • YouTube access: The channel must be verified and must not have had a live-streaming restriction during the previous 90 days. See YouTube’s live-streaming eligibility requirements.
  • Google Cloud project: Billing must be enabled before you create a Compute Engine VM. Google’s Linux VM guide uses Ubuntu 24.04 LTS as an example image; that image is an example, not a YouTube requirement.
  • Source video: Use a video you have the rights to stream. Make it accessible to the VM, for example by storing it on the VM or using a cloud storage method you configure. The setup does not require an external drive.
  • Encoder: You need software on the VM that can send the video feed to YouTube over RTMPS and repeat the media. This guide covers the connection and YouTube settings, but does not give a copy-and-paste FFmpeg loop command: exact loop syntax and reconnect behavior depend on the FFmpeg build and were not established here.

1. Confirm the channel can stream live

Check live-streaming access in YouTube Studio before paying for VM time or configuring an encoder. YouTube requires channel verification and no live-streaming restrictions in the preceding 90 days. If live streaming is unavailable, resolve the issue shown in Studio first; a correctly configured VM cannot bypass a channel restriction.

2. Create a Linux VM in Compute Engine

  1. In the Google Cloud console, select or create a project and enable billing for it.
  2. Open the Compute Engine VM instances page and create a Linux instance. Google’s guide demonstrates Ubuntu 24.04 LTS, but the operating system choice should match the encoder you plan to install and maintain.
  3. Choose a machine type with sufficient CPU, memory, and network capacity for your encoder and the resolution/frame rate you intend to send. No specific VM size is established here; verify capacity with a test stream rather than assuming one configuration fits every video.
  4. Connect to the VM using the console’s SSH option. Install and configure your chosen encoder according to its current documentation. Keep your media file somewhere the encoder can read reliably.

A VM-originated stream connects outward to YouTube. Google documents that the default VPC rules allow outgoing traffic and block incoming traffic by default; you generally do not need to open an inbound firewall port just to send the stream. Actual egress capacity depends on the VM machine type and network route. See Google Cloud’s networking overview.

3. Create the YouTube Live stream and get its connection details

  1. In YouTube Studio, open Create → Go live to reach Live Control Room, then create or schedule a stream. You can use private or unlisted visibility for an initial test.
  2. In the stream settings, copy the server URL and stream key. YouTube describes stream keys as “like your YouTube stream’s password and address.” Treat the key as a credential: do not expose it in a public repository, logs, screenshots, or messages.
  3. Use the RTMPS server URL when available. YouTube may show the ordinary RTMP URL by default; reveal and select the RTMPS URL for an encrypted connection. See YouTube’s encoder setup instructions and RTMPS guidance.
  4. Enter the server URL and stream key in your encoder’s YouTube destination settings. Keep the key out of command history and other places that may be retained or shared when possible.

4. Configure the encoder for YouTube

Follow YouTube’s current live encoder settings guidance when selecting output. The published guidance lists RTMP/RTMPS ingest, H.264, H.265, or AV1 video, AAC or MP3 audio, constant bitrate (CBR), and frame rates up to 60 fps. It recommends a two-second keyframe interval and says it should not exceed four seconds.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
UNISHEEN 1080P60 HDMI Video Encoder, H.265/H.264 Live Streaming Encoder, HDMI to RTSP/RTMP/SRT/HLS/WebRTC IPTV Encoder for YouTube Facebook Live, Browser Setup, No PC Software Needed
  • 【Hardware H.265/H.264 Encoding at 1080P60】Dedicated hardware encoder delivers broadcast-quality 1080P60 streams with H.265/H.264 compression. Reduces bandwidth usage by up to 50% compared to legacy H.264-only solutions, while maintaining crisp, crystal-clear video output.
  • 【Broad Protocol Support for IP Distribution】 Supports SRT, RTMP(S), RTSP, UDP, HTTP, HLS, WebRTC, TRTC, Icecast and SHOUTcast — integrate seamlessly with CDNs, surveillance NVRs, IPTV systems and browser-based monitoring dashboards. One device replaces multiple single-purpose streaming boxes.
  • 【Browser-Based Setup in Minutes】 Set up in minutes through any browser — no software, drivers or OS compatibility issues. DHCP is enabled by default to prevent IP address conflicts on your network. Note: basic networking knowledge (IP address, RTSP/RTMP configuration) is recommended for advanced streaming setups.
  • 【Compact Design with Flexible Deployment】Palm-sized form factor (approx. 90×54×29mm) fits easily behind monitors, on shelves, or in equipment racks. Low power consumption ensures reliable 24/7 operation for live events, remote monitoring, and digital signage.
  • 【Professional Audio & OSD Overlay + 1-Year Warranty】 Supports HDMI embedded audio plus external 3.5mm input. Built-in OSD generator adds scrolling text, logos, or timestamps directly to the video stream — ideal for branding, event info, or security labeling. Backed by a 1-year warranty and 24/7 online technical support.

Choose bitrate based on the resolution and frame rate you are sending, using YouTube’s live encoder page at setup time rather than relying on a number that may become stale. Match the encoder output to the source where practical; confirm that the VM can encode and sustain the intended output. These are encoder settings, not a guarantee that a particular VM size will handle a particular workload.

5. Set up the repeat and test the stream

Configure your encoder to play the authorized source repeatedly, then start its outgoing feed and check the preview in Live Control Room before making the stream public. Because FFmpeg loop flags and reconnect behavior were not verified for a selected build, consult the current documentation for the encoder you choose and test its repeat behavior end to end. Do not assume that a process restart automatically resumes at the right point or that a dropped connection will recover without configuration.

Rank #2
H.265 H.264 4K HDMI to IP Network Video Encoder, 1080P HD Video Audio Encoder Supports RTSP RTMPS UDP HLS SRT HTTP WebRTC ICECAST, for IPTV, Live Streaming, YouTube, Facebook, OBS, ONVIF NVR, etc.
  • ⭐【Innovative Product with Leading Technology】- Equipped with an advanced H.265 /H.264 dual encoding chip, supports 4K UHD (3840x2160) video input and output, with a maximum frame rate of 30fps at 4K resolution and up to 120fps at 2K and lower resolutions, delivering a smooth and detailed visual experience. It also supports HDCP 1.4 decryption, easily decoding various HDMI ultra HD video sources, delivering a cinematic visual experience for both professional live streaming and 4K ultra HD content transmission.
  • ⭐【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), ONVIF, FLV, WebRTC, TRTC, ICECAST, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • ⭐【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • ⭐【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • ⭐【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.
  • Confirm the Live Control Room preview appears and that both picture and sound are present.
  • Check that the video repeats at the intended point and does not stop after one pass.
  • Watch the stream health indicator and inspect for disconnects, missing audio, or visual errors during a meaningful test.
  • Only switch to the desired public visibility after you have confirmed the feed and rights for the content.

YouTube says streams shorter than 12 hours are automatically archived; see its streaming tips. Do not treat an archive as a substitute for maintaining the live stream.

Copyright, reused content, and channel risk

Only loop documentaries or other recordings you own or are licensed to broadcast. A video being available online, credited to its creator, or already streamed by another channel does not establish permission. YouTube’s copyright and monetization decisions are separate: permission to use footage does not by itself guarantee eligibility for monetization, and repetitive or minimally transformed uploads may raise reused-content concerns under YouTube’s policies. Check the applicable YouTube rules and rights for every video before scheduling a long-running broadcast.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
DDMALL H.265 HDMI Video Encoder, Mini 2K Hardware Live Encoder (AVC-2K)
  • 【Ultra-Compact & Low-Power Design】 Experience maximum portability with this pocket-sized (2.95 x 1.26 x 0.87 in) HDMI video encoder, weighing only 1.13oz. Engineered for extreme efficiency, it consumes just 2.4W and can be powered directly via USB or the HDMI source. This eliminates the need for bulky external adapters—perfect for professional live broadcasting, mobile setups, and installations with limited space.
  • 【Pro-Grade 1080P HD Encoding】 Deliver crystal-clear video transmission with support for up to 1080P60 HD input and stable 1080P30 encoding output. This versatile hardware encoder is fully compatible with a wide range of HDMI sources, including NVRs, PCs, drones, DSLR cameras, and professional camcorders. Whether for security monitoring or live broadcasting, it ensures a high-quality, low-latency video feed for a truly reliable user experience.
  • 【2K SRT & Multi-Protocol Compatibility】 Experience broadcast-level stability with 2K SRT support, delivering secure, reliable, and ultra-low latency video over any network. This hardware encoder ensures peak efficiency with H.265/HEVC and H.264/AVC compression. Fully compatible with a wide range of protocols—including RTMP, RTMPS, HLS, RTSP, and UDP—it is tailor-made for social media live production, house of worship, secure IP surveillance, and corporate training.
  • 【Centralized Cloud Management】 Beyond standard Web-UI, this encoder supports DDMALL LinkCloud for remote monitoring and control via the Internet. For large-scale deployments, we provide specialized support to assist you in building a self-hosted private cloud, ensuring absolute data security and efficient video distribution. This professional-grade centralized control simplifies complex workflows for multi-site corporate, educational, or broadcast environments.
  • 【More Excellent Features & Reliable Support】This encoder elevates your broadcasting with dual-stream output, enabling simultaneous streaming to platforms like YouTube and Facebook. It also features real-time OSD overlays and direct Web-UI signal preview for precise control. Beyond the device, our professional technical team provides customized solutions, continuous firmware updates, and expert guidance to ensure your live production stays seamless.

Troubleshooting

Symptom Likely cause What to check
YouTube will not accept the stream Channel eligibility issue, incorrect server URL/key, or wrong ingest protocol Confirm live access in Studio, copy the current server URL and key, and use the RTMPS URL if available.
No preview appears Encoder is not sending, destination details are wrong, or the VM cannot reach the ingest endpoint Check encoder output and the URL/key, verify outbound connectivity, and watch Live Control Room for ingest status.
Video appears but has no sound Audio track missing, muted, or configured with an unsupported codec Confirm the source has an audio track and encoder output uses AAC or MP3, as listed in YouTube’s guidance.
Stream disconnects or does not resume VM, network route, encoder process, or reconnect configuration problem Inspect encoder and VM logs, verify the process remains active, and consult the selected encoder’s current reconnect documentation. A specific automatic recovery configuration is not established here.
Video stops instead of looping Repeat behavior was not enabled or the encoder’s loop configuration is incorrect Check the current documentation for your encoder and validate the repeat in a test stream before relying on it.
Unexpected Google Cloud charges The VM continues running or transferring data Review VM runtime and network usage in Cloud Billing. Google documents deleting the VM to stop further VM charges when it is no longer needed; an always-on broadcast necessarily needs a running streaming path.

Cost and operational trade-offs

Compute Engine requires billing, and an always-on VM can incur recurring compute and network charges. The actual cost depends on region, machine type, runtime, and traffic; current prices were not established here, so check Google Cloud Billing before launching a continuous stream. A self-managed VM gives you control over the Linux environment and encoder, but you are responsible for keeping the process, media access, and recovery behavior working.

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

If you want a YouTube-only prerecorded loop without keeping a VM or computer running at home, StreamNeo handles the continuous playback from the cloud. Upload your video, add your YouTube stream key once, and go live. It streams the upload as made, up to 4K 60fps, at one flat price per slot; there are no quality tiers. If YouTube drops the stream, StreamNeo automatically recovers. The first day is free with no card. Monthly pricing is $9.99 per month. See StreamNeo for details, then start the free day.

Best Value
HEVC MPEG4 H.265 H.264 HDMI to IP Network Video Encoder, 1080P HD Digital Video Audio Encoder Hardware Supports RTSP RTMPS UDP HLS SRT, for IPTV, Live Streaming, YouTube, Facebook, OBS, NVR, etc.
  • ⭐【Innovative Product with Leading Technology】- Equipped with an advanced H.265/H.264 dual encoding chip, supports 1920x1080 resolution input and output, achieving 60fps high-definition presentation with realistic and delicate color reproduction and lossless detail. It also supports HDCP 1.4 decryption, easily decoding various HDMI high-definition video sources, delivering a cinematic visual experience for both professional live streaming and high-definition content transmission.
  • ⭐【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), ONVIF, FLV, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • ⭐【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • ⭐【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • ⭐【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.
Rank #4
URayCoder HD HEVC H.265 MPEG4 H.264 4K HDMI to Video Streaming IPTV Encoder for HDMI to RTSP RTMP HTTP UDP HLS SRT Facebook YouTube Live Streaming Server
  • 【Innovative Product with Leading Technology】- Equipped with an advanced H.265 /H.264 dual encoding chip, supports 4K UHD (3840x2160) video input and output, with a maximum frame rate of 30fps at 4K resolution and up to 120fps at 2K and lower resolutions, delivering a smooth and detailed visual experience. It also supports HDCP 1.4 decryption, easily decoding various HDMI ultra HD video sources, delivering a cinematic visual experience for both professional live streaming and 4K ultra HD content transmission.
  • 【Multi-protocol and Multi-platform Compatibility】- Fully compatible with streaming protocols such as HTTP, RTSP, RTMP(S), SRT, HLS(M3U8), MP4, Multicast(UDP, RTP, PTL), FLV, WebRTC, TRTC, ICECAST, it can simultaneously output 4 video streams with different protocols and push them to live streaming platforms such as YouTube, Facebook, Twitch, and Vimeo with one click. Simultaneous live streaming across multiple platforms can be achieved without additional equipment.
  • 【Highly Customizable Settings to Meet Individual Needs】- It supports adding static text, scrolling captions, brand logos, and timestamps. Users can freely adjust core parameters such as video resolution, frame rate, and bitrate, and also perform personalized editing functions such as video cropping, rotation, flipping, and mirroring. It supports dual input of HDMI embedded audio and line-in audio, with adjustable sound quality, making your live stream content more distinctive and allowing you to create a unique brand live stream style.
  • 【Stable and Efficient Transmission, Easy Operation】- Employing HDMI to Ethernet core connection technology, it ensures stable and reliable network transmission with low latency and no lag, adapting to various network environments. Equipped with an intuitive user interface and detailed instruction manual, no professional technical background is required; setup can be completed quickly after connecting the device. It is also compatible with multiple terminals such as computers and mobile phones for management, and the video stream status can be viewed in real time via a URL.
  • 【Lifetime Free Warranty and Technical Supports】- All URayCoder video codecs come with a lifetime free warranty and technical supports, supporting secondary development and feature customization to meet enterprise-level personalized needs. Meanwhile, we providing many kinds of customization services such as shell pattern printing, logo addition, hardware and function development, ensuring reliable quality and worry-free after-sales service.

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

  1. Earth Story: How Our Planet Has Changed Over TimeAdmit one · NatureEarth Story: How Our Planet Has Changed Over TimeOpened05 OCT 2026Runtime3 min
  2. The Internet’s Own Boy: The Story of Aaron SwartzAdmit one · SocialThe Internet's Own Boy: The Story of Aaron SwartzOpened05 OCT 2026Runtime2 min
  3. BBC Future of Food – SenegalAdmit one · Food/DrinkBBC Future of Food - SenegalOpened05 OCT 2026Runtime2 min
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
Windows Errors? Fix Them Before They SpreadFree repair 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.