【发布时间】:2021-08-22 13:58:25
【问题描述】:
如何在统一使用 agora sdk 共享屏幕的同时提高图像质量。我在下面使用过 VideoProfile 的设置为
mRtcEngine.SetVideoEncoderConfiguration(new VideoEncoderConfiguration()
{
// Sets the video encoding bitrate (Kbps).
minBitrate = 100,
bitrate = 1130,
// Sets the video frame rate.
minFrameRate = 10,
frameRate = FRAME_RATE.FRAME_RATE_FPS_24,
// Sets the video resolution.
dimensions = new VideoDimensions() { width = EncodeWidth, height = EncodeHeight },
// Sets the video encoding degradation preference under limited bandwidth. MIANTAIN_QUALITY means to degrade the frame rate to maintain the video quality.
degradationPreference = DEGRADATION_PREFERENCE.MAINTAIN_QUALITY,
// Note if your remote user video surface to set to flip Horizontal, then we should flip it before sending
mirrorMode = VIDEO_MIRROR_MODE_TYPE.VIDEO_MIRROR_MODE_ENABLED,
// Sets the video orientation mode of the video
orientationMode = ORIENTATION_MODE.ORIENTATION_MODE_FIXED_PORTRAIT
});
从编辑器到设备的输出如下所示:
从设备到编辑器或其他设备的输出看起来很模糊,如下所示:
我已经在两台设备上使用 WIFI 进行了测试,确保质量良好,并且强制设置为图像质量而不是帧速率。
mRtcEngine.SetVideoQualityParameters(false);
mRtcEngine.EnableDualStreamMode(false);
mRtcEngine.SetRemoteDefaultVideoStreamType(REMOTE_VIDEO_STREAM_TYPE.REMOTE_VIDEO_STREAM_HIGH);
- 为了提高图像质量,我是否遗漏了什么?
- 如何共享屏幕的 Rect 部分,用户可以在屏幕的一部分拖动此 rect
【问题讨论】: