-
Notifications
You must be signed in to change notification settings - Fork 632
WebRTC Codecs
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.
In this section, we're going to explain simply how to use H.264 & VP8 in Ant Media Server. VP8 and H.264 are mandatory codecs in WebRTC according to RFC 7742. On the other hand, not all browsers support VP8 and H.264 codecs at the same time.
Ant Media Server supports H.264 for 1.x versions and it has started to support VP8 for 2.x versions including transcoding, clustering. So that all of the devices can play WebRTC streams within their browsers. If a browser does not play streams(notSetRemoteDescription error), you can think adding H.264/VP8 support. Here are some information about H.264 and/or VP8 support in Ant Media Server.
-
SFU Mode(No adaptive bitrate): Ant Media Server can ingest WebRTC stream in H.264 and VP8. If both of the codecs are supported by browser, Ant Media Server chooses H.264 to ingest. Because there is not adaptive bitrate, incoming video stream is not transcoded to other codec. In other words, server can ingest H.264 or VP8 and it forwards the incoming video stream to the players.
-
Adaptive Bitrate Mode(if you have at least one adaptive bitrate): Ant Media Server ingest stream and transcode it into H.264 and VP8. So that devices that only support H264 or VP8 can play the streams.
- SFU Mode: Ant Media Server can only ingest H.264 streams and forwards it into the players.
- Adaptive Bitrate Mode: Ant Media Server can only ingest H.264 and transcode the stream into different H264 bitrates and send to the players.
You can check if your device supports H264 in this link
- SFU Mode: Ant Media Server can only ingest VP8 streams and forwards it into the players.
- Adaptive Bitrate Mode: Ant Media Server can only ingest VP8 and transcode the stream into different VP8 bitrates and send to the players.
If you only have VP8 enabled, HLS Streaming & MP4 Recording will not work.
- 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