Kurentos Application/SDP unable to play RTP stream with ffplay

1,103 views
Skip to first unread message

ALTANAI BISHT

unread,
Jan 31, 2015, 4:18:43 AM1/31/15
to kur...@googlegroups.com

Hello Kurento team , 

My goal is to build a WebRTC to RTP player . 

I have done the following  created a WebRTC endpoint and connected it to RTP endpoint via media pipelines .

I am also making the RTP SDP offer and answering the same . 
 

String requestRTPsdp = rtpEndpoint.generateOffer();
   
rtpEndpoint.processAnswer(requestRTPsdp);


I write the requestRTPsdp to a file and obtain a RTP connector endpoint with Application/SDP . Its constituents are like this :

v=0
o=- 3631681524 3631681524 IN IP4 192.168.0.119
s=Kurento Media Server
c=IN IP4 192.168.0.119
t=0 0
m=audio 52524 RTP/AVP 98 99 0
a=rtpmap:98 OPUS/48000/2
a=rtpmap:99 AMR/8000/1
a=rtpmap:0 PCMU/8000
a=ssrc:300865787 cname:user3163014525@host-e92e492
m=video 40908 RTP/AVP 96 97 100 101
a=rtpmap:96 H263-1998/90000
a=rtpmap:97 VP8/90000
a=rtpmap:100 MP4V-ES/90000
a=rtpmap:101 H264/90000
a=ssrc:3876720371 cname:user3163014525@host-e92e492

However as I try to play form this SDP file , it plays okay with gst playbin ( 10 secs without audio ) but refuses to be played by VLC , ffplay and even wowza . 

The error generated with  

ffmpeg -i test.sdp -vcodec copy -acodec copy -f mpegts output-file.ts

or 

ffmpeg -re -i test.sdp -vcodec h264  -acodec mp3 -f  mpegts  "udp://192.168.4.26:5000
are  

Could not find codec parameter for stream1 ( video:h263, none ) 

Other errors types are , Could not write header for output file <incorrect codec parameter >

output file is empty nothing was encoded 



Please share how should I stream the inputs from webrtc endpoint to RTP players . 


Ivan Gracia

unread,
Jan 31, 2015, 6:17:31 AM1/31/15
to Kurento Public
Do you get any error on the media server? Which version are you using? 

You could also create your own SDP, have the RTP endpoint process the offer, and open the generated SDP file with VLC. I was doing some tests yesterday with this SDP

v=0
o=- 0 0 IN IP4 192.168.50.1
s=
c=IN IP4 192.168.50.1
t=0 0
m=video 11191 RTP/AVP 100
a=rtpmap:100 H264/90000
a=recvonly

and it worked fine (note there is no audio)

Ivan Gracia



--
You received this message because you are subscribed to the Google Groups "kurento" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kurento+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

ALTANAI BISHT

unread,
Feb 2, 2015, 6:13:43 AM2/2/15
to kur...@googlegroups.com
hello Ivan Gracia

Thanks for a prompt reply . 
I am using the git master version . I have build it form source code using cmake and then make -j4 . Could not find a pattern.sdp in master and making changes to sdp_pattern.txt didnt change anything . Moreover building version 4.3 leads to a lot of errors in my case.  Requesting you to direct me the appropriate file to modify in master version for altering the SDP . 

Many thanks 

Ivan Gracia

unread,
Feb 4, 2015, 4:02:18 AM2/4/15
to Kurento Public
What I meant is that you can pass that SDP to the KMS, and have the RTPEndpoint there process that offer. That tell the endpoint that it has to send the video to that port and address.

Ivan Gracia


Reply all
Reply to author
Forward
0 new messages