From 4c9d95149d58836baa621c169610a7824826b18e Mon Sep 17 00:00:00 2001 From: David Zhao Date: Wed, 27 Sep 2023 21:16:13 -0700 Subject: [PATCH] Enable SVC codecs by default (#2109) --- README.md | 2 ++ config-sample.yaml | 4 ++-- pkg/config/config.go | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3692b94e..524d8d98 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ LiveKit's server is written in Go, using the awesome [Pion WebRTC](https://githu - [end-to-end optimizations](https://blog.livekit.io/livekit-one-dot-zero/) - [selective subscription](https://docs.livekit.io/guides/room/receive/#selective-subscription) - [moderation APIs](https://docs.livekit.io/guides/server-api/) + - end-to-end encryption + - SVC codecs (VP9, AV1) - [webhooks](https://docs.livekit.io/guides/webhooks/) - [distributed and multi-region](https://docs.livekit.io/deploy/distributed/) diff --git a/config-sample.yaml b/config-sample.yaml index 15c7ada1..d7a4fe77 100644 --- a/config-sample.yaml +++ b/config-sample.yaml @@ -43,7 +43,7 @@ rtc: # that maps to an external one use_external_ip: true # # when set, LiveKit will attempt to use a UDP mux so all UDP traffic goes through - # # listed port(s). To maximize system performance, we recommend using a range of ports + # # listed port(s). To maximize system performance, we recommend using a range of ports # # greater or equal to the number of vCPUs on the machine. # # port_range_start & end must not be set for this config to take effect # udp_port: 7882-7892 @@ -148,7 +148,7 @@ keys: # max_participants: 0 # # only accept specific codecs for clients publishing to this room # # this is useful to standardize codecs across clients -# # other supported codecs are video/h264 +# # other supported codecs are video/h264, video/vp9, video/av1, audio/red # enabled_codecs: # - mime: audio/opus # - mime: video/vp8 diff --git a/pkg/config/config.go b/pkg/config/config.go index 62142bc4..b99be109 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -459,8 +459,8 @@ var DefaultConfig = Config{ {Mime: "audio/red"}, {Mime: webrtc.MimeTypeVP8}, {Mime: webrtc.MimeTypeH264}, - // {Mime: webrtc.MimeTypeAV1}, - // {Mime: webrtc.MimeTypeVP9}, + {Mime: webrtc.MimeTypeVP9}, + {Mime: webrtc.MimeTypeAV1}, }, EmptyTimeout: 5 * 60, },