stream webrtc to rtmp server using ffmpeg

2,226 views
Skip to first unread message

sameer...@dynaptsolutions.com

unread,
Sep 30, 2016, 9:30:49 AM9/30/16
to kurento
Hi,

I have implemented implemented onetomany tutorial. It's working fine but now i want to stream .sdp file to rtmp server. I don't know the flow how to find sdp file and rtpendpoint. I am quite new to this. Can you please help me out.

Ivan Gracia

unread,
Oct 3, 2016, 3:30:13 AM10/3/16
to Kurento Public
There is a lot of information on the list about this. Please have a look at the different threads. We can guide you if you are lost somewhere, but it wouldn't make much sense to repeat all the information that is already here in the list ;-)

Ivan Gracia



On Fri, Sep 30, 2016 at 3:22 PM, <sameer...@dynaptsolutions.com> wrote:
Hi,

I have implemented implemented onetomany tutorial. It's working fine but now i want to stream .sdp file to rtmp server. I don't know the flow how to find sdp file and rtpendpoint. I am quite new to this. Can you please help me out.

--
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+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
For more options, visit https://groups.google.com/d/optout.

Sameer Saxena

unread,
Oct 18, 2016, 5:08:06 AM10/18/16
to kurento
I have created the sdp using rtp end point but when i process this sdp using ffmpeg i got the following error. I am using the below code for creating sdp file.I get error from ffmpeg:
bind failed: Address already in use
rtp.sdp: Invalid data found when processing input

webRtcEndpoint.processOffer(sdpOffer, function(error, sdpAnswer) {
if (error) {
stop(sessionId);
return callback(error);
}

if (presenter === null) {
stop(sessionId);
return callback(noPresenterMessage);
}

callback(null, sdpAnswer);
});
presenter.pipeline.create('RtpEndpoint',function(error, rtpEndpoint){
    var sdp = 'v=0';
sdp += '\no=- 3641290734 3641290734 IN IP4 127.0.0.1';
sdp += '\ns=media server';
sdp += '\nc=IN IP4 127.0.0.1';
sdp += '\nt=0 0';
sdp += '\nm=audio -audio port- RTP/AVP 0';
sdp += '\na=rtpmap:0 PCMU/8000';
sdp += '\nm=video -video port- RTP/AVP 101';
sdp += '\na=rtpmap:101 H264/90000';

            // rtpEndpoint.setMaxVideoRecvBandwidth(12000);
            // rtpEndpoint.setMaxVideoSendBandwidth(12000);
           rtpEndpoint.processOffer(sdp, function(error, sdpAnswer){
                console.log('Offer:\n', sdp);
                console.log('Answer:\n', sdpAnswer);
            });
            presenter.webRtcEndpoint.connect(rtpEndpoint);


Ivan Gracia

unread,
Oct 20, 2016, 1:23:25 PM10/20/16
to Kurento Public
You need to add, in the SDP that the RTP endpoint processes, the port where it should be sending media. Probably this post could help you.

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+unsubscribe@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
Reply all
Reply to author
Forward
0 new messages