v=0\no=- 0 0 IN IP4 127.0.0.1m=video 5000 RTP/AVP 96c=IN IP4 127.0.0.1a=sendonlya=rtpmap:96 H264/90000
pipeline = kurento.createMediaPipeline();rtpEndpoint = new RtpEndpoint.Builder(pipeline).build();
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();pipeline = kurento.createMediaPipeline();rtpEndpoint = new RtpEndpoint.Builder(pipeline).build();
String sdpAnswer = rtpEndpoint.processOffer(sdpOffer);
sdpAnswer = result['sdpAnswer']m = re.search('m=video (\d+)', sdpAnswer)videoPort = m.group(1)m = re.search('IP4 ([\d.]+)', sdpAnswer)host = m.group(1)
'gst-launch-1.0 v4l2src ! queue ! videorate ! videoconvert ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc tune=zerolatency ! rtph264pay ! udpsink host='+host+' port='+videoPort
String sdpOffer = jsonMessage.getAsJsonPrimitive("sdpOffer").getAsString();
WebRtcEndpoint nextWebRtc = new WebRtcEndpoint.Builder(pipeline).build();
rtpEndpoint.connect(nextWebRtc);String sdpAnswer = nextWebRtc.processOffer(sdpOffer);
m=audio 58704 RTP/SAVPF 111
a=rtpmap:111 opus/48000/2a=mid:audioa=sendonlyc=IN IP4 127.0.0.1
'\ alsasrc device=hw:3,0 ! audioconvert ! audioresample ! opusenc ! rtpopuspay ! udpsink host='+host+' port='+audioPort
v=0o=- 0 0 IN IP4 37.182.24.167
c=IN IP4 37.182.24.167
t=0 0m=audio 5005 RTP/AVP 0
a=rtpmap:0 PCMU/8000m=video 5000 RTP/AVP 96a=rtpmap:96 H264/90000
gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! videorate ! videoconvert ! video/x-raw,width=1280,height=720,framerate=30/1 ! x264enc tune=zerolatency ! rtph264pay ! udpsink host=46.16.189.148 port=51978 ts-offset=0 \ alsasrc device=hw:3,0 ! audioconvert ! audioresample ! mulawenc ! rtppcmupay ! udpsink host=46.16.189.148 port=55062 ts-offset=0
Hey! Thanks a lot for this post. I’m sure it will be really helpful, as many others are trying that. Maybe your python solution could help them!
Just one thing. Did you try to have the rtp in KMS process the answer? I mean, something like rtp.processOffer(<you_mangled_sdp>)
. That should have the RTP listening in that port.
--
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.
--