selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

ant-media-server logo

Self-host ant-media-server

ams-v3.1.0

Live streaming server for WebRTC, RTMP ingest and HLS

ReleaseOpen CoreApache-2.0
docker run --restart=always -d --name antmedia --network=host -it antmedia/enterprise:latest
Updated2 months ago
LanguageJava
Setup difficultyModerate
Stars
4 747
CPU
at least 4 vCPUs (compute-optimized)
RAM
8 GB RAM for a single instance
Ports
5080 (HTTP (web panel and streaming)), 5443 (HTTPS), 1935 (RTMP), 4200 (SRT (UDP)), 5000 (Internal cluster communication only; should not be public), 50000 (Start of the default WebRTC UDP port range 50000-60000)
Docker
antmedia/enterprise
Web panel home screen with instance health metricsLive Streams tab listing streams and viewer countsPer-stream actions menu (recording, restreaming, publish URL)VoD tab with recordings and uploaded filesApplication settings screen for publishing, playback and recording

What is ant-media-server?

Ant Media Server is a live-streaming media server for developers building video products — telehealth, e-learning, live shopping, auctions, gaming or IP-camera monitoring. It accepts streams from encoders and cameras over RTMP, RTSP and WebRTC, plays them back in the browser with HLS, records sessions, offers DVR, restreams to social platforms and serves uploaded or recorded files as VoD. Everything is driven from a web panel (applications, live streams, VoD, per-stream actions, plus instance health figures for CPU, disk, memory and the JVM heap) and from REST APIs, with client SDKs covering JavaScript, Unity, Flutter, React Native and the two mobile platforms. You run it yourself: a shell install script on Ubuntu/CentOS/Rocky/Alma, the official Docker image, or a Docker Compose file you build from a release ZIP, with the panel on port 5080 (5443 once SSL is enabled). It ships in two editions. The free, Apache-licensed Community Edition covers RTMP/HLS workflows with 8-12 second latency and WebRTC ingest only (no WebRTC playback), and excludes adaptive bitrate transcoding, clustering, Kubernetes and SRT/NDI/WHIP — those are Enterprise Edition features, licensed per instance (hourly, monthly, annual or perpetual) and validated against Ant Media's license manager unless you buy an offline license.

ant-media-server alternatives

Should you self-host ant-media-server?

ant-media-server scores 65/100 on selfhost.directory (how scoring works) and ranks #19 of 119 in Media Server. It has 4 747 GitHub stars, +5 in the last 30 days.

It shipped 7 stable releases in the past year. The latest, ams-v3.1.0, came out on 31 August 2026. New versions land roughly every 5 weeks.

Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is Apache-2.0-licensed and written mostly in Java.

Its closest alternative on selfhost.directory is Jellyfin (88/100, 59 157 stars). It scores higher overall, so compare the two before you pick. See ant-media-server vs Jellyfin side by side.

Features

  • Adaptive bitrate transcodingListed as Enterprise Edition in the edition comparison; Community shows it as not included.
  • Client SDKsiOS/Android WebRTC SDK is publish-only in the Community Edition.
  • Clustering and horizontal scalingScaling and Kubernetes support are marked Enterprise Edition in the edition comparison table.
  • DVR
  • Embedded web player
  • Health metrics monitoring
  • HLS Streaming
  • IP camera streaming
  • RecordingCommunity Edition records HLS and MP4 only.
  • REST API
  • Restreaming to social platforms
  • RTMP Ingest
  • VoD libraries
  • Web management dashboard
  • WebRTC ingestCommunity Edition: WebRTC ingest only, no WebRTC playback; Enterprise has full WebRTC support.

ant-media-server README

Follow Us on LinkedIn Follow Us on Twitter Subscribe on our Youtube Channel GitHub Repository Stars Count Review your experience on G2

Ant Media Server — Ultra-Low Latency, HLS, SRT, RTMP, WebRTC Streaming Engine

Scalable open-source media server for live streaming, adaptive bitrate (ABR), real-time communication (RTC), recording, and cloud auto-scaling.
Supports WebRTC, SRT, RTMP, HLS, CMAF, RTSP, and H.265/HEVC.


How to install ant-media-server

Install ant-media-server with Docker

docker run --restart=always -d --name antmedia --network=host -it antmedia/enterprise:latest

OR, if --network=host isn't available on your platform:

docker run --restart=always -d --name antmedia -p 5080:5080 -it antmedia/enterprise:latest

The published image is Enterprise Edition; Community Edition images are built from the project Dockerfile with --build-arg AntMediaServer=<zip>.

How to configure ant-media-server

  • -lInstall script flag that passes the Enterprise Edition license key received by email

    values: license key string

  • -iInstall script flag to install from a previously downloaded Ant Media Server ZIP file (Community or Enterprise)

    values: path to <ANT_MEDIA_SERVER_ZIP_FILE>

  • -uUpdate an existing installation script to the latest version
  • -hShow the install script's command line options
  • LicenseKeyDocker build argument used to build an Enterprise image from a license key (Enterprise only)

    values: license key string

ant-media-server releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

FAQ

Which protocols are supported for ingesting?

Ingest works over RTMP, RTSP, WebRTC, SRT, Zixi and WHIP.

What are the latency figures supported?

About 0.5 seconds with WebRTC, 3-5 seconds with low-latency DASH or HLS, and 8-10 seconds with standard HLS.

How can I build my own Video Application with Ant Media Server?

Through its REST APIs and SDKs, which let external apps control and manage the server remotely.

Can I build and provide hosted streaming solutions?

Yes, companies, ISPs and data centres can offer hosted video streaming services built on it.

Can I build my own Online Video Platform?

Yes, the server can be used as the streaming backbone for your own OVP or SaaS video service.

Is Ant Media Server provided as SaaS (Software as a Service) Platform?

No — it is standalone software that you install and run yourself to serve video streaming sessions.

What does Ant Media Server License include and how it’s licensed?

Enterprise Edition is licensed per server (per pod on Kubernetes), imposes no viewer or connection limits, and includes the mobile SDKs.

Can Ant Media Server scale automatically?

Yes, auto-scaling can be configured on-premises with Kubernetes or through cloud marketplace images that add nodes under load.

Can I scale Ant Media Server?

Yes, it scales vertically by adding CPUs to the server or horizontally by adding more Enterprise Edition instances.

Is there any price difference in the Cluster License?

No, the cluster license adds nothing on top of the license fees.

What is the Cluster License of Ant Media Server?

It lets several Enterprise Edition instances run synchronized in an origin/edge setup and enables auto scalability.

What is the difference between a Subscription-based License and a Perpetual License?

Subscription licenses renew automatically for a set period, whereas a perpetual license is a one-time purchase for unlimited use, with upgrades and support needing a separate package after the first year.

What are the price packages for Ant Media Server?

The Community Edition is free with limited functions, while the Enterprise Edition is paid through monthly or annual subscriptions and also a one-time perpetual license, with hourly scaling available on monthly subscriptions.

More in Media Server

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…