Regarding offer request.

74 views
Skip to first unread message

Garry Jassal

unread,
Sep 13, 2023, 3:27:41 AM9/13/23
to discuss-webrtc
Hii,
I have created an sdp offer using Gstreamer webrtc plugin the offer it generated is :
v=0
o=- 2917878046646180248 0 IN IP4 0.0.0.0
s=-
t=0 0
a=ice-options:trickle
m=video 9 UDP/TLS/RTP/SAVPF 96 97 98 99 100
c=IN IP4 0.0.0.0
a=setup:actpass
a=ice-ufrag:UT+kwzbjecjDtMxC+qfb0B/70hHWlCTW
a=ice-pwd:oPVYZxBCnzrr83ZOpzpNhHwVrCuF20PT
a=rtcp-mux
a=rtcp-rsize
a=sendonly
a=rtpmap:96 H265/90000
a=rtcp-fb:96 nack
a=rtcp-fb:96 nack pli
a=framerate:15
a=fmtp:96 sprop-vps=QAEMAf//AWAAAAMAkAAAAwAAAwA/ugJA;sprop-sps=QgEBAWAAAAMAkAAAAwAAAwA/oAUCAXHy5bpKTC//AAEAAQEAAAMAAQAAAwAPCA==;sprop-pps=RAHAcYMS
a=rtpmap:97 red/90000
a=rtpmap:98 ulpfec/90000
a=rtpmap:99 rtx/90000
a=fmtp:99 apt=97
a=rtpmap:100 rtx/90000
a=fmtp:100 apt=96
a=ssrc-group:FID 1675984538 4045201201
a=ssrc:1675984538 msid:user4219656885@host-5e4296d6 webrtctransceiver0
a=ssrc:1675984538 cname:user4219656885@host-5e4296d6
a=ssrc:4045201201 msid:user4219656885@host-5e4296d6 webrtctransceiver0
a=ssrc:4045201201 cname:user4219656885@host-5e4296d6
a=mid:video0


The server response from this offer request is Error 400 , we wont be able to find an issue that where in the offer we are missing and what details are we missing here.
Can anyone please help me as we are unable to find the solution for this.


Muhammad Usman Bashir

unread,
Sep 23, 2023, 8:22:34 AM9/23/23
to discuss-webrtc
@Garry Jassal, the SDP is missing some required attributes as per standards like SDP and SIP. Adding the "a=rtcp:" line, using a valid IP, and defining the media formats would help resolve the 400 error and make this a valid SDP offer. You have to re-evaluate SDPs such as;

Invalid IP address: Using 0.0.0.0 for the connection address in the "c=" and "a=rtcp:" lines is invalid. This needs to be set to the actual IP address of the machine generating the SDP offer.

> c=IN IP4 192.168.1.5
> a=rtcp:9 IN IP4 192.168.1.5

Missing media formats: The "m=video" line includes RTP payload types like 96, 97, 98, but does not have any corresponding "a=rtpmap" lines to define what media format these represent. Adding the actual formats is required.

> a=rtpmap:96 H264/90000
> a=rtpmap:97 rtx/90000

Let me know if this helps

Harald Alvestrand

unread,
Sep 23, 2023, 12:51:45 PM9/23/23
to discuss...@googlegroups.com
When asking this kind of question, it is always a good idea to say what server you are trying to get a response from. They are not all the same.

--
This list falls under the WebRTC Code of Conduct - https://webrtc.org/support/code-of-conduct.
---
You received this message because you are subscribed to the Google Groups "discuss-webrtc" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss-webrt...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/discuss-webrtc/89da05ee-5b77-4e8b-9d2e-d0f19210a95cn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages