-
Notifications
You must be signed in to change notification settings - Fork 632
Getting Started
Attention: We have migrated our documentation to our new platform, Ant Media Resources. Please follow this link for the latest and up-to-date documentation.
Ant Media Server is a software that can stream live and VoD streams. It supports scalable, ultra low latency (0.5 seconds) adaptive streaming and records live videos in several formats like HLS, MP4, etc.
Here are the fundamental features of Ant Media Server:
- Ultra Low Latency Adaptive One to Many WebRTC Live Streaming in Enterprise Edition.
- Adaptive Bitrate for Live Streams (WebRTC, MP4, HLS) in Enterprise Edition.
- SFU in One to Many WebRTC Streams in Enterprise Edition.
- Live Stream Publishing with RTMP and WebRTC.
- WebRTC to RTMP Adapter.
- IP Camera Support.
- Recording Live Streams (MP4 and HLS).
- Restream to Social Media Simultaneously(Facebook and Youtube in Enterprise Edition).
- One-Time Token Control in Enterprise Edition.
- Object Detection in Enterprise Edition.
Ant Media Server has two versions. One of them is the Community Edition(Free) and the other one is Enterprise Edition. Community Edition is available to download on Github. Enterprise Edition can be purchased on antmedia.io
Community Edition | Enterprise Edition | |
---|---|---|
Ultra Low Latency One-to-Many WebRTC Streaming |
||
End-to-End Latency | 8-12 Seconds | 0.5 Seconds (500ms) |
Scaling | ||
RTMP(Ingesting) to WebRTC (Playing) | ||
Hardware Encoding(GPU) | ||
Adaptive Bitrate | ||
Secure Streaming | ||
iOS & Android WebRTC SDK | ||
iOS & Android RTMP SDK | ||
RTMP, RTSP, MP4 and HLS Support | ||
WebRTC to RTMP Adapter | ||
360 Degree Live & VoD Streams | ||
Web Management Dashboard | ||
IP Camera Support | ||
Re-stream Remote Streams | ||
Open Source | ||
Simulcasting to Periscope | ||
Simulcast to Facebook & Youtube | ||
Support | Community | E-mail, On-site |
Price | Free | Paid |
Download and save the Ant Media Server Community/Enterprise Edition from http://antmedia.io to your disk. Ant Media Server is being tested on Ubuntu 18.04 versions on CI.
Open a terminal and go to the directory where you have downloaded Ant Media Server Zip file
cd path/to/where/ant-media-server....zip
Download the install_ant-media-server.sh
shell script
wget https://raw.githubusercontent.com/ant-media/Scripts/master/install_ant-media-server.sh
chmod 755 install_ant-media-server.sh
You need to add "true" to the end of the command line if you want to keep your settings from previous installation.
sudo ./install_ant-media-server.sh -i [ANT_MEDIA_SERVER_INSTALLATION_FILE] -r true
For a clean new installation:
sudo ./install_ant-media-server.sh -i [ANT_MEDIA_SERVER_INSTALLATION_FILE]
You can check the service if it is running
sudo service antmedia status
You can stop/start the service anytime you want
sudo service antmedia stop
sudo service antmedia start
Open your browser and type http://SERVER_IP_ADDRESS:5080
to go to the web panel. If you're having difficulty in accessing the web panel, there may be a firewall that blocks accessing the 5080 port.
In order to server run properly you need to open some network ports. Here are the ports server uses
- TCP:1935 (RTMP)
- TCP:5080 (HTTP)
- TCP:5443 (HTTPS)
- UDP:5000-65000 (WebRTC)
- TCP:5000-65000 (You need to open this range in only cluster mode for internal network. It should not be open to public.)
Generally, port forwarding is used to forward default ports to the server's ports in order to have ease of use. For instance let's forward 80 to 5080, just type the command below.
sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 5080
sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 5443
After running the command above, the request goes to 80, 443 is being forwarded to 5080, 5443 consecutively
To List port forwarding run the command below
sudo iptables -t nat --line-numbers -L
To delete a port forwarding run the command below
iptables -t nat -D PREROUTING [LINE_NUMBER_IN_PREVIOUS_COMMAND]
If you want the server to reload port forwarding after reboot, we need to install iptables-persistent package and save rules like below
sudo apt-get install iptables-persistent
Above command will install iptables-persistent package, after that just run the command below every time you make a change and want it to be persistent
sudo sh -c "iptables-save > /etc/iptables/rules.v4"
- Introduction
- Quick Start
- Installation
- Publishing Live Streams
- Playing Live Streams
- Conference Call
- Peer to Peer Call
- Adaptive Bitrate(Multi-Bitrate) Streaming
- Data Channel
- Video on Demand Streaming
- Simulcasting to Social Media Channels
- Clustering & Scaling
- Monitor Ant Media Servers with Apache Kafka and Grafana
- WebRTC SDKs
- Security
- Integration with your Project
- Advanced
- WebRTC Load Testing
- TURN Servers
- AWS Wavelength Deployment
- Multi-Tenancy Support
- Monitor Ant Media Server with Datadog
- Clustering in Alibaba
- Playlist
- Kubernetes
- Time based One Time Password
- Kubernetes Autoscaling
- Kubernetes Ingress
- How to Install Ant Media Server on EKS
- Release Tests
- Spaceport Volumetric Video
- WebRTC Viewers Info
- Webhook Authentication for Publishing Streams
- Recording Streams
- How to Update Ant Media Server with Cloudformation
- How to Install Ant Media Server on GKE
- Ant Media Server on Docker Swarm
- Developer Quick Start
- Recording HLS, MP4 and how to recover
- Re-streaming update
- Git Branching
- UML Diagrams