-
Notifications
You must be signed in to change notification settings - Fork 283
More options for SDP and video settings #51
Comments
There are two concepts here, and I need to dig more into how they interact:
SDP packet filtering and adding more options work on the second one. As I understand these constraints are maximum values to optimize network transport. But for a scenario where you want to reduce the CPU load and/or bandwidth by limiting the video resolution you'd rather constrain directly the video capture module than the SDP offer, so that frames are directly captured in the format you want, and no transformation is needed. Otherwise capturing at 4K to transport at 640 x 480 will waste local CPU cycles to downscale the video stream before sending. In short you need I think 2 things:
Does that sound correct? |
That is correct, and a much better summary of the feature than I managed to write. As an example of an use case for resolution and framerate: Of course, the CPU utilization savings are a big part of why I would like control of the resolution, but there could also be other reasons, such as the one I mentioned above |
Dumping some info from today's investigation:
It seems a priori from those info that it would be possible to support some SDP filtering for OPUS, possibly even a more generic format for other codecs. |
Not sure about if it has any effect on performance, it could also be interesting to be able to modify lines 275-276 and 291-291 in peer_connection.cpp
Now this is a special case for my implementation, but I only either send OR receive video/audio on each peer connection, so previously to this plugin, I modified offer_to_receive_audio/video to false depending on the connection. I also changed sendrecv in the sdp to sendonly or recvonly depending on the use-case. |
Re-opening after GitHub's auto-close. |
Hi,
I'm currently initiating calls with the SDP i receive from the LocalSdpReadytoSend, but as I understand, it has already been set as local description at that time.
It would be beneficial if I could e.g. modify specific OPUS parameters as Max Average Bitrate, Max Capture Rate, Max Playback Rate and so forth. Same goes for video parameters such as resolution and framerate, but as I understand, that's already in the works. 👍
Maybe CreateOffer() could have an optional input variable for specific SDP options?
The text was updated successfully, but these errors were encountered: