From fc433de9ac291dac3be1dc0f48f840c61e5918dc Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Fri, 18 Nov 2022 16:47:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dwebrtc=20AV1=E7=BC=96?= =?UTF-8?q?=E7=A0=81:=20#2091?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/config.ini | 2 +- src/Extension/Frame.h | 2 +- webrtc/Sdp.cpp | 2 +- webrtc/offer.sdp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/config.ini b/conf/config.ini index 2dd3dcb3..46bdb452 100644 --- a/conf/config.ini +++ b/conf/config.ini @@ -321,7 +321,7 @@ rembBitRate=0 preferredCodecA=PCMU,PCMA,opus,mpeg4-generic #rtc支持的视频codec类型,在前面的优先级更高 #以下范例为所有支持的视频codec -preferredCodecV=H264,H265,AV1X,VP9,VP8 +preferredCodecV=H264,H265,AV1,VP9,VP8 [srt] #srt播放推流、播放超时时间,单位秒 diff --git a/src/Extension/Frame.h b/src/Extension/Frame.h index 182c70eb..c298ed11 100644 --- a/src/Extension/Frame.h +++ b/src/Extension/Frame.h @@ -38,7 +38,7 @@ typedef enum { XX(CodecL16, TrackAudio, 6, "L16", PSI_STREAM_RESERVED) \ XX(CodecVP8, TrackVideo, 7, "VP8", PSI_STREAM_VP8) \ XX(CodecVP9, TrackVideo, 8, "VP9", PSI_STREAM_VP9) \ - XX(CodecAV1, TrackVideo, 9, "AV1X", PSI_STREAM_AV1) + XX(CodecAV1, TrackVideo, 9, "AV1", PSI_STREAM_AV1) typedef enum { CodecInvalid = -1, diff --git a/webrtc/Sdp.cpp b/webrtc/Sdp.cpp index 2a6f5093..d3d3d397 100644 --- a/webrtc/Sdp.cpp +++ b/webrtc/Sdp.cpp @@ -23,7 +23,7 @@ const string kPreferredCodecA = RTC_FIELD"preferredCodecA"; const string kPreferredCodecV = RTC_FIELD"preferredCodecV"; static onceToken token([]() { mINI::Instance()[kPreferredCodecA] = "PCMU,PCMA,opus,mpeg4-generic"; - mINI::Instance()[kPreferredCodecV] = "H264,H265,AV1X,VP9,VP8"; + mINI::Instance()[kPreferredCodecV] = "H264,H265,AV1,VP9,VP8"; }); } diff --git a/webrtc/offer.sdp b/webrtc/offer.sdp index c3b09302..fa92a59f 100644 --- a/webrtc/offer.sdp +++ b/webrtc/offer.sdp @@ -128,7 +128,7 @@ a=rtcp-fb:108 nack pli a=fmtp:108 level-asymmetry-allowed=1;packetization-mode=0;profile-level-id=42e01f a=rtpmap:109 rtx/90000 a=fmtp:109 apt=108 -a=rtpmap:35 AV1X/90000 +a=rtpmap:35 AV1/90000 a=rtcp-fb:35 goog-remb a=rtcp-fb:35 transport-cc a=rtcp-fb:35 ccm fir