Sdp parse error

240 views
Skip to first unread message

vigneshwaran s

unread,
Oct 20, 2015, 1:02:54 AM10/20/15
to discuss-webrtc
I have my native c++ application.

While creating session description to call setRemoteDescription(...) , I m noting this error.




webrtc::SessionDescriptionInterface* session_description(webrtc::CreateSessionDescription(type, sdp,sdpError));
if (!session_description)
 {
WriteLogFile(sdpError->description.c_str());
return;
}

It says below error while executing the above code 

"Failed to parse audio codecs correctly"


The sdp for which the error is being thrown is mentioned below. I face this issue  in my native app when I create the session_description  obtained from the chrome browser.

 "v=0\r\no=- 2715220682928096016 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE audio video\r\na=msid-semantic: WMS QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 126\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:sN/LC9cxX2zVWiV9\r\na=ice-pwd:Xd8PRmUV6abA2HeqDzv3+b+o\r\na=fingerprint:sha-256 66:62:D8:EB:91:F7:E1:AD:AA:33:EE:0A:9E:A3:83:3E:47:74:06:E9:40:97:27:9A:B5:B5:82:DC:48:21:B4:FD\r\na=setup:actpass\r\na=mid:audio\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=fmtp:111 minptime=10; useinbandfec=1\r\na=rtpmap:103 ISAC/16000\r\na=rtpmap:104 ISAC/32000\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:106 CN/32000\r\na=rtpmap:105 CN/16000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:126 telephone-event/8000\r\na=maxptime:60\r\na=ssrc:3137280430 cname:lRS5n2wWgQm26Kpk\r\na=ssrc:3137280430 msid:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n fa84ede2-f37d-4272-a080-7d7cb9b32205\r\na=ssrc:3137280430 mslabel:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n\r\na=ssrc:3137280430 label:fa84ede2-f37d-4272-a080-7d7cb9b32205\r\nm=video 9 UDP/TLS/RTP/SAVPF 100 116 117 96\r\nc=IN IP4 0.0.0.0\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=ice-ufrag:sN/LC9cxX2zVWiV9\r\na=ice-pwd:Xd8PRmUV6abA2HeqDzv3+b+o\r\na=fingerprint:sha-256 66:62:D8:EB:91:F7:E1:AD:AA:33:EE:0A:9E:A3:83:3E:47:74:06:E9:40:97:27:9A:B5:B5:82:DC:48:21:B4:FD\r\na=setup:actpass\r\na=mid:video\r\na=extmap:2 urn:ietf:params:rtp-hdrext:toffset\r\na=extmap:3 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:4 urn:3gpp:video-orientation\r\na=sendrecv\r\na=rtcp-mux\r\na=rtpmap:100 VP8/90000\r\na=rtcp-fb:100 ccm fir\r\na=rtcp-fb:100 nack\r\na=rtcp-fb:100 nack pli\r\na=rtcp-fb:100 goog-remb\r\na=rtpmap:116 red/90000\r\na=rtpmap:117 ulpfec/90000\r\na=rtpmap:96 rtx/90000\r\na=fmtp:96 apt=100\r\na=ssrc-group:FID 2776838184 171626071\r\na=ssrc:2776838184 cname:lRS5n2wWgQm26Kpk\r\na=ssrc:2776838184 msid:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n a4b6c5b4-b657-4cd0-a67a-ba222c06dc66\r\na=ssrc:2776838184 mslabel:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n\r\na=ssrc:2776838184 label:a4b6c5b4-b657-4cd0-a67a-ba222c06dc66\r\na=ssrc:171626071 cname:lRS5n2wWgQm26Kpk\r\na=ssrc:171626071 msid:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n a4b6c5b4-b657-4cd0-a67a-ba222c06dc66\r\na=ssrc:171626071 mslabel:QXWYc8MpvOOsb1juyn297UlAasPkZEmaG64n\r\na=ssrc:171626071 label:a4b6c5b4-b657-4cd0-a67a-ba222c06dc66\r\n"

( The application was working good few days back , I m wondering if the chrome browser had undergone some changes recently )
Do I want want to update my webrtc code to get new libraries to get rid of this issue ??
Can anyone help

Philipp Hancke

unread,
Oct 20, 2015, 1:34:03 AM10/20/15
to discuss...@googlegroups.com
Chrome 46 started sending UDP/TLS/RTP/SAVPF in the profile field of the m-line as has been announced a while back in https://groups.google.com/forum/#!topic/discuss-webrtc/ZOjSMolpP40
Your library version has to be pretty old to be affected by this (parsing this should have been supported since mid-2014).
The lazy workaround is to replace this with the old RTP/SAVPF profile.

--

---
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/366dd4f4-5268-43a1-879e-311e7158a8d9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages