How to use the TURN server to capture the video stream

1,381 views
Skip to first unread message

常凯

unread,
Jan 26, 2015, 7:43:21 AM1/26/15
to turn-server-project...@googlegroups.com
Now I am doing a project of TURN server. I want to add a function to the TURN server. The function can capture the video data stream which is relayed by TURN server. Do anyone have ever created this function? I think the TURN server's source code is complex, so I don't know how to add this amazing function. Wishing for your kindly response. Thank you! 

Eric Davies

unread,
Jan 26, 2015, 1:43:43 PM1/26/15
to turn-server-project...@googlegroups.com
Webrtc uses end-to-end encryption. 
What you captured at the turn server would be encrypted.
What you want is something like licode which behaves as an endpoint while relaying packets.

常凯

unread,
Jan 27, 2015, 8:20:24 AM1/27/15
to turn-server-project...@googlegroups.com
Thank you for your kind reply.

I have checked the "ns_turn_server.c" in the TURN server's source code and find out a parameter called "ioa_network_buffer_data". Does this "ioa_network_buffer_data" represent the traffic data for which I am looking? 

Can I copy these kind of data and make a flat file to store them then  transform them to the video format?

By the way ,does TURN server have its own API which can be used to get and record the traffic data stream?
 
在 2015年1月27日星期二 UTC+9上午3:43:43,Eric Davies写道:

Oleg Moskalenko

unread,
Jan 27, 2015, 9:12:15 AM1/27/15
to 常凯, turn-server-project...@googlegroups.com

Unfortunately, that is much more complex than that.

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/d/optout.

常凯

unread,
Jan 28, 2015, 9:35:37 AM1/28/15
to turn-server-project...@googlegroups.com, oftenw...@gmail.com
Thank you for your kind reply.  Now I just want to implement this function in only one  situation. The situation is that assume the video data stream is relayed only in ChannelData mode. Is there any parameter or interface that I can use to get the video stream out ?

在 2015年1月27日星期二 UTC+9下午11:12:15,Oleg Moskalenko写道:

Unfortunately, that is much more complex than that.

On Jan 27, 2015 5:20 AM, "常凯" <oftenw...@gmail.com> wrote:
Thank you for your kind reply.

I have checked the "ns_turn_server.c" in the TURN server's source code and find out a parameter called "ioa_network_buffer_data". Does this "ioa_network_buffer_data" represent the traffic data for which I am looking? 

Can I copy these kind of data and make a flat file to store them then  transform them to the video format?

By the way ,does TURN server have its own API which can be used to get and record the traffic data stream?
 
在 2015年1月27日星期二 UTC+9上午3:43:43,Eric Davies写道:
Webrtc uses end-to-end encryption. 
What you captured at the turn server would be encrypted.
What you want is something like licode which behaves as an endpoint while relaying packets.

On Monday, January 26, 2015 at 4:43:21 AM UTC-8, 常凯 wrote:
Now I am doing a project of TURN server. I want to add a function to the TURN server. The function can capture the video data stream which is relayed by TURN server. Do anyone have ever created this function? I think the TURN server's source code is complex, so I don't know how to add this amazing function. Wishing for your kindly response. Thank you! 

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc5766-turn-server+unsubscribe@googlegroups.com.
To post to this group, send email to turn-server-project-rfc5766-turn-...@googlegroups.com.

Oleg Moskalenko

unread,
Jan 28, 2015, 10:01:19 AM1/28/15
to 常凯, turn-server-project...@googlegroups.com

There is no immediate simple answer for that. Capturing video in a multi-user server is not a trivial thing.

On Jan 28, 2015 6:35 AM, "常凯" <oftenw...@gmail.com> wrote:
Thank you for your kind reply.  Now I just want to implement this function in only one  situation. The situation is that assume the video data stream is relayed only in ChannelData mode. Is there any parameter or interface that I can use to get the video stream out ?
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.

常凯

unread,
Jan 31, 2015, 10:34:19 AM1/31/15
to turn-server-project...@googlegroups.com, oftenw...@gmail.com
Thank you for your kind replay, will the TURN-server' excellent developers add the data-capture function to the TURN-server in a new vision ?  I think the data-capture function will be widely used with the development of WebRTC.

在 2015年1月29日星期四 UTC+9上午12:01:19,Oleg Moskalenko写道:

There is no immediate simple answer for that. Capturing video in a multi-user server is not a trivial thing.

On Jan 28, 2015 6:35 AM, "常凯" <oftenw...@gmail.com> wrote:
Thank you for your kind reply.  Now I just want to implement this function in only one  situation. The situation is that assume the video data stream is relayed only in ChannelData mode. Is there any parameter or interface that I can use to get the video stream out ?

在 2015年1月27日星期二 UTC+9下午11:12:15,Oleg Moskalenko写道:

Unfortunately, that is much more complex than that.

On Jan 27, 2015 5:20 AM, "常凯" <oftenw...@gmail.com> wrote:
Thank you for your kind reply.

I have checked the "ns_turn_server.c" in the TURN server's source code and find out a parameter called "ioa_network_buffer_data". Does this "ioa_network_buffer_data" represent the traffic data for which I am looking? 

Can I copy these kind of data and make a flat file to store them then  transform them to the video format?

By the way ,does TURN server have its own API which can be used to get and record the traffic data stream?
 
在 2015年1月27日星期二 UTC+9上午3:43:43,Eric Davies写道:
Webrtc uses end-to-end encryption. 
What you captured at the turn server would be encrypted.
What you want is something like licode which behaves as an endpoint while relaying packets.

On Monday, January 26, 2015 at 4:43:21 AM UTC-8, 常凯 wrote:
Now I am doing a project of TURN server. I want to add a function to the TURN server. The function can capture the video data stream which is relayed by TURN server. Do anyone have ever created this function? I think the TURN server's source code is complex, so I don't know how to add this amazing function. Wishing for your kindly response. Thank you! 

--
You received this message because you are subscribed to the Google Groups "TURN Server (Open-Source project)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc5766-turn-server+unsubscribe@googlegroups.com.
To post to this group, send email to turn-server-project-rfc5766-turn-s...@googlegroups.com.

Oleg Moskalenko

unread,
Jan 31, 2015, 10:58:41 AM1/31/15
to 常凯, turn-server-project...@googlegroups.com
As Eric explained, the media traffic is end-to-end encrypted in WebRTC. With proper encryption, the captured traffic will be as good as random stream of bytes. How would you use that captured data ?

Oleg


To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.

lingyun hu

unread,
Feb 5, 2015, 8:22:05 PM2/5/15
to turn-server-project...@googlegroups.com
Oleg. 
can i use coturn to do simulcast(https://webrtcglossary.com/simulcast/). relay packet to many different client. thx.

Oleg Moskalenko

unread,
Feb 5, 2015, 8:37:40 PM2/5/15
to lingyun hu, turn-server-project...@googlegroups.com
TURN server supports whatever the TURN specifications are defining.
Any standard-confirming WebRTC implementation will work with this TURN
server.

TURN server is not an application-level server, it is a network
infrastructure-level server. It is not making decision where to send
the packet, it is not doing any multiplexing, etc. That is all in the
WebRTC layer.

Oleg
Reply all
Reply to author
Forward
0 new messages