Back to articles
Technology Insight

Building a Sub-Second Ultra-Low Latency Open-Source Video Streaming Server with OvenMediaEngine on Cloud Infrastructure

May 30, 2026

Introduction to Ultra-Low Latency Video Streaming

In the modern digital landscape, video streaming has transitioned from a passive viewing experience to an interactive, real-time necessity. Traditional streaming protocols like HLS (HTTP Live Streaming) and DASH (Dynamic Adaptive Streaming over HTTP) introduce latencies ranging from 5 to 30 seconds. While acceptable for video-on-demand (VOD), this delay is a critical bottleneck for interactive applications such as live auctions, e-sports, interactive gaming, real-time webinars, and enterprise collaboration platforms.

To bridge this gap, organizations are turning to sub-second latency solutions. OvenMediaEngine (OME) has emerged as a premier open-source, ultra-low latency video streaming server. Built from the ground up for high performance, OME is capable of receiving video feeds via various ingestion protocols and broadcasting them to large audiences with sub-second (sub-1 second) latency using WebRTC and Low-Latency HLS (LL-HLS). Deploying this robust engine on high-performance Cloud Servers provides businesses with the scalability, reliability, and cost-efficiency required to deliver flawless live experiences.

Why Choose OvenMediaEngine for Enterprise Applications?

OvenMediaEngine is not just another media server; it is an enterprise-grade infrastructure solution designed specifically for the real-time web. Here is why IT decision-makers and developers prefer OME:

  • Multi-Protocol Support: Ingest via RTMP, SRT, RTSP, or WebRTC, and stream out via WebRTC, LL-HLS, and traditional HLS.
  • True Sub-Second Latency: When using WebRTC for playback, end-to-end latency drops below 500 milliseconds, ensuring instantaneous engagement.
  • Embedded Live Transcoding: Dynamically changes video codecs, bitrates, and resolutions (e.g., converting a 4K feed into 1080p, 720p, and 480p profiles) on the fly using CPU or GPU acceleration.
  • Scalable Architecture: Features a specialized Origin-Edge architecture that allows businesses to scale horizontally across cloud regions to support hundreds of thousands of concurrent viewers.
  • Open-Source Sovereignty: Eliminates vendor lock-in and high licensing fees associated with proprietary streaming SaaS solutions, granting complete control over data privacy and infrastructure.

Prerequisites and Cloud Infrastructure Sizing

Before initiating the deployment, it is crucial to provision a Cloud Server with adequate resources. Live video transcoding and streaming are highly compute-intensive tasks.

Pro-Tip: For production environments, always select a compute-optimized cloud instance with high networking throughput and a modern multi-core CPU architecture.

Recommended Server Specifications

  • Operating System: Ubuntu 22.04 LTS or Ubuntu 24.04 LTS (Clean installation recommended).
  • CPU: Minimum 4 vCPUs (Compute-Optimized instance).
  • Memory: 8 GB RAM minimum to comfortably handle caching and transcoding pipelines.
  • Storage: 50 GB NVMe SSD (primarily for OS and logging, unless archiving live streams).
  • Network: 1 Gbps port with unlimited or high-bandwidth allocation.

Required Network Port Configurations

Ensure your cloud provider's firewall / Security Groups are configured to open the following ports:

  • 1935 (TCP) - For RTMP video ingestion.
  • 9999 (UDP) - For SRT video ingestion.
  • 3333 (TCP) - For OvenMediaEngine Management API.
  • 8080 (TCP) - For WebRTC signaling (WebSocket) and LL-HLS/HLS playback.
  • 10000-10005 (UDP) - For WebRTC media transport (ICE/STUN/TURN candidates).

Step-by-Step Implementation Guide

This section details the step-by-step process of installing, configuring, and executing OvenMediaEngine on your Ubuntu Cloud Server using Docker, which simplifies dependency management and ensures environment consistency.

Step 1: Install Docker and Docker Compose

First, update the system packages and install the Docker engine to containerize our infrastructure:

sudo apt update && sudo apt upgrade -y
sudo apt install docker.io docker-compose -y
sudo systemctl enable --now docker

Step 2: Create the OvenMediaEngine Configuration File

OvenMediaEngine relies on an XML configuration file to define its ports, applications, transcoders, and streaming profiles. Create a directory and generate the Server.xml configuration:

mkdir -p ~/ome-config
nano ~/ome-config/Server.xml

Paste the following optimized configuration into the file:


    
        
            1935
            9999
        
        
            
                8080
                
                    YOUR_SERVER_PUBLIC_IP:10000-10005/udp
                
            
            8080
        
    
    
        
            
                
                    
                        
                            bypass
                            ${SourceStreamName}
                            
                                
                                
                            
                        
                    
                    
                    
                
            
        
    

Note: Replace YOUR_SERVER_PUBLIC_IP with the actual public IP address of your Cloud Server so that external players can establish a WebRTC connection via ICE candidates.

Step 3: Launch OvenMediaEngine via Docker

Deploy the server container using the official OvenMediaEngine image, binding the host configuration directory to the container:

docker run -d --name ovenmediaengine \
  -p 1935:1935 -p 9999:9999/udp -p 8080:8080 \
  -p 10000-10005:10000-10005/udp \
  -v ~/ome-config:/opt/ome/bin_release/conf/ \
  ailabs/ovenmediaengine:latest

Verify that the container is running smoothly by analyzing the logs:

docker logs -f ovenmediaengine

Testing the Streaming Pipeline

With the infrastructure active, we can now execute an end-to-end streaming test utilizing an encoder and a specialized real-time web player.

1. Setting Up the Ingest Encoder (OBS Studio)

Download and open OBS Studio on your local computer, then configure the stream settings:

  1. Navigate to Settings > Stream.
  2. Set the Service to Custom...
  3. Enter the Server URL: rtmp://YOUR_SERVER_PUBLIC_IP/app
  4. Enter the Stream Key: stream1
  5. Go to Output, set Output Mode to Advanced, and change the Keyframe Interval to 1s or 2s (crucial for optimizing low latency).
  6. Click Start Streaming. OBS is now successfully sending your live video feed to OvenMediaEngine.

2. Playback via Ultra-Low Latency Player

Because standard video players do not natively support WebRTC streaming signaling protocols, OvenMediaEngine provides an open-source web player called OvenPlayer.

Open any web browser and navigate to the official test player interface at [https://demo.ovenplayer.com](https://demo.ovenplayer.com). In the source configuration box, enter the WebRTC signaling URL:

ws://YOUR_SERVER_PUBLIC_IP:8080/app/stream1

Click Load and then press the play button. You will observe the live video feed rendering with an astonishing end-to-end latency of roughly 0.2 to 0.5 seconds, satisfying strict sub-second performance benchmarks.

Optimizing and Securing Your Streaming Infrastructure

Transitioning from a development environment to a production environment requires implementing strict security protocols and performance fine-tuning:

  • Implement TLS/SSL Encryption: Production streaming must be protected over HTTPS/WSS. Use Let's Encrypt certificates combined with an Nginx reverse proxy to encrypt signaling traffic over port 443.
  • Enable Stream Security (Signed Tokens): Prevent unauthorized broadcasters or viewers from hijacking your streams by turning on access control tokens in the Server.xml security policies.
  • Turn on Adaptive Bitrate (ABR): Enable dynamic video transcoding profiles so that mobile clients with weaker 4G/5G connections automatically drop to lower resolutions without buffering, while desktop users enjoy high-definition 1080p content.

Conclusion

Building a sub-second, ultra-low latency video streaming infrastructure is no longer exclusive to tech conglomerates with massive engineering budgets. By combining the agility of modern Cloud Servers with the cutting-edge capabilities of OvenMediaEngine, your organization can deploy a production-ready, open-source streaming platform tailored for real-time interactivity. This platform minimizes overhead, removes restrictive licensing models, and provides the foundation for next-generation digital media experiences.

Building a Sub-Second Ultra-Low Latency Open-Source Video Streaming Server with OvenMediaEngine on Cloud Infrastructure | DPTCloud