Hope this helps,
Tom van der Geer
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/lJ5i1OzrOv0/unsubscribe.
To unsubscribe from this group and all its topics, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/a74a021e-bca8-44e2-969a-7715213ee99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Still not sure why you would want to get the media flowing from FFMPEG to KMS as well.
Can you post the full FFMpeg command line?
Are you trying to record the video stream (without audio)?
An other thing that comes to mind is that you can set a VIDEO_ONLY parameter when you connect the WebRTCEndpoint sink to the RTPEndpoint source.
Best regards,
Tom van der Geer
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/CAN6U2DUoAaLCvqxNL9EYCkbVNZM29rTLFEskPxtqm3UehtgN-Q%40mail.gmail.com.
Hope this helps.Here is the link:Hi, Idan.As a proof of concept for something similar as you are trying to do, i developed a simple application based on kurento-hello-world example (NodeJS version).
In this example i use VLC to play the RTP flow, but ffmpeg should work as well.
https://github.com/mariogasparoni/kurento-tutorial-node/tree/master/kurento-rtp-relay
2017-07-28 10:16 GMT-03:00 Idan Yael <idan...@gmail.com>:
I would like to run ffmpeg after I get a webrtc broadcast and not before. Thats why i would like ffmpeg to initiate the connection.
On Jul 28, 2017 3:30 PM, <t.vand...@sping.nl> wrote:
I'm not sure why you would feed the answer SDP from KMS to FFMpeg. That's only useful when you want to send media from FFMpeg to KMS. And from your post I understand you want to send media from KMS to FFMpeg. I have no experience with that use case, but I'd expect you have to tell FFMpeg to listen on certain ports on a network interface. The SDP you created manually and send to KMS should then contain the connection parameters for receiving media by FFMpeg.
Hope this helps,
Tom van der Geer
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/lJ5i1OzrOv0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to kurento+u...@googlegroups.com.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/a74a021e-bca8-44e2-969a-7715213ee99c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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.
To post to this group, send email to kur...@googlegroups.com.
Visit this group at https://groups.google.com/group/kurento.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/CAN6U2DUoAaLCvqxNL9EYCkbVNZM29rTLFEskPxtqm3UehtgN-Q%40mail.gmail.com.
var ffmpegOffer = "v=0\
o=- 0 0 IN IP4 127.0.0.1\
s=\
c=IN IP4 127.0.0.1\
t=0 0\
m=video 11191 RTP/AVP 100\
a=rtpmap:100 H264/90000\
a=recvonly"
This sdp string goes into RtpEndpoint.processOffer() and the sdpAnswer I get from the offer processing is going to a file ffmpeg can read (ffmpeg -i answer.sdp) .
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/eab0d193-19de-4f48-947b-8af2bbb4123e%40googlegroups.com.
In your case you need to tell KMS where the RTPEndpoint should start sending its media packets to. That's in the offer SDP. And you need to tell FFMPEG on what ports it should listen; also in the offer SDP.
The answer SDP from the RTPEndpoint is not relevant in your use case.
Best regards,
Tom
... so I should run ffmpeg BEFORE I run processOffer() ? is that correct?
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/52789748-2888-4257-8dcb-a3996c240589%40googlegroups.com.
Yes, you need to send the offer with the FFMpeg connection parameters to KMS. But that's what you did already. I have no experience with starting FFMpeg with an SDP. I assume that is intended for RTSP streaming use cases. So I'm not sure if it works for your use case. I'm interested in your results. Make sure to run KMS and FFMpeg on the same system though, since you're using the local interface (127.0.0.1).
One other thing, since you seem to be relying on timing of FFMpeg; do you expect KMS to buffer the media? And that it will start from the "beginning" of the media once FFMpeg is connected? Because KMS won't do that for you. As a matter of fact KMS doesn't even know if FFMpeg is listening or not.
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/lJ5i1OzrOv0/unsubscribe.
To unsubscribe from this group and all its topics, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/7bcdd2cb-471a-4e3e-b2bd-444e87f9baa0%40googlegroups.com.
Good to hear you got the media flowing to FFMpeg. Is there any particular reason why you are using H.264 video between KMS and FFMpeg ? Usually between the WebRTC client (browser) and KMS there's VP8 video, so KMS will need to transcode the video.
If you do want to use H.264 video between KMS and FFMpeg you might need to play around with the fmtp attributes in the SDP to instruct the video encoder in KMS to use a certain H.264 profile. For instance, this is part of a SDP from a Cisco Jabber Video client:
a=rtpmap:126 H264/90000
a=fmtp:126 profile-level-id=428028;max-mbps=245760;max-fs=8192;max-smbps=323500;packetization-mode=1
--
You received this message because you are subscribed to a topic in the Google Groups "kurento" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/kurento/lJ5i1OzrOv0/unsubscribe.
To unsubscribe from this group and all its topics, 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/kurento/bc45f432-cdc0-40f0-a2bf-3b713c1f8984%40googlegroups.com.