Replies: 1 comment
-
FFmpeg bitrate setting is available by PR sipsorcery-org/SIPSorceryMedia.FFmpeg#62. However, no WebRTC Application workaround is maybe to subscribe on offer-answer signaling (after |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
is it possible to set bandwidth limit in WebRTC? I've tried to modify SDP file by adding "b=TIAS:..." parameter:
b=TIAS:100000
in ffmpeg.sdp fileofferInit.sdp = offerInit.sdp.Replace("c=IN IP4 0.0.0.0", "c=IN IP4 0.0.0.0\nb=TIAS:300000");
and set parameter "MaximumBandwidth" to an instance of MediaStreamTrack:
MediaStreamTrack videoTrack = new MediaStreamTrack(SDPMediaTypesEnum.video, false, new List<SDPAudioVideoMediaFormat> { videoFormat }, MediaStreamStatusEnum.SendRecv) {Ssrc = SSRC_REMOTE_VIDEO, MaximumBandwidth = 75000}
, but it did not change anything. I'm streaming video in 1080p, framerate is stable (~30 fps) and calculated bitrate is about 1 MB/s, so i expected that WebRTC change video resolution when i set bandwidth limitation.
I'm currently working on a "FfmpegToWebRTC" example.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions