Elecard
September 23, 2014, 04:23:05 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: RTP/UDP Unicast Stream through WAN  (Read 5229 times)
sandicz
Newbie
*
Posts: 13


View Profile
« on: January 08, 2013, 07:10:49 am »

Hello,

we use the Elecard Codec Packs to create a kind of video conference system. After successfull test in our local network, we want to try the bidirectional streaming via WAN and Internet. Although we have a fixed IP and made the setting for port forwarding, we have still problems by connecting to the stream. Is there any guide how to setup an internet stream with the Codec Pack?

Configuration: H.264 + AAC + Mux + NwRenderer --> NwSource + PushDemuxx

There is also a problem with the audio and video ports. As you can see on the screen and the xml config file, the port I set and the port NwRenderer uses are different:



XML config for NwRenderer (other PC):

Code:
<param name="[Net] Port" id="{31543CB0-C01C-4B58-B494-E32D0D52CBED}" type="INT" value="21010"/>
<param name="[Net] Video port" id="{760FCB7A-4F82-4546-935C-D9EB738057CF}" type="INT" value="21011"/>
<param name="[Net] Audio port" id="{89453140-A3C0-47BD-9038-481E05EFFB39}" type="INT" value="21012"/>

Is this a bug or is it my fault? Whats the matter with this? It seems like NwRenderer is using the port settings (for audio and video, NOT for the first port) from the NwRenderer of the other PC.

Thanks
Stefan
« Last Edit: January 08, 2013, 07:30:52 am by sandicz » Logged
IvanR
Moderator
*****
Posts: 132


View Profile
« Reply #1 on: January 13, 2013, 11:00:44 pm »

Hello Stefan

See the answers below:

1. If you use multiplexing, Video and Audio port values do not work. They are for elementary streaming in RTP only.

2. Please describe the problem you have with connecting with more details and I'll try to help you.
You can also send an email to tsup@elecard.ru

Ivan
Logged
sandicz
Newbie
*
Posts: 13


View Profile
« Reply #2 on: January 14, 2013, 10:43:41 am »

Hello Ivan,

thanks for your answer. I understood that there is just one UDP port used to receive and one to send data and that they are both listed in Ressource Monitor.
Let me explain our main problem:

I have two Computers (PC1 /PC2). PC1 listens on Port 21010 to receive an RTP Stream sent by PC2. PC2 listens on Port 22010 to receive the Stream sent by PC1. So I have two streams to create a bidirectional video conference.

Now I want to setup the system to work not only in the local network (via local IPs) but the internet via our external IP. So we set up the routers and the firewall to forward UDP port 21010 to PC1 and port 22010 to PC2. The SDP data is transferred from PC1 to PC2 over a TCP connection. Until this point everything works. PC2 (for example) receives the SDP data from PC1, sets the data to NWSourcePlus and tries to connect to the stream sent by PC1. The connection try times out and the stream couldn't be received.

This is what the SDP data looks like:

Local connection (Working!):
PC1: 192.168.0.26/ 21010
PC2: 192.168.0.65 / 22010

SDP Data:
Code:
v=0
o=- 1570419133 15 IN IP4 192.168.0.65
s=Test
c=IN IP4 192.168.0.26/32
t=0 0
m=video 21010 RTP/AVP 33
a=rtpmap:33 MP2T/90000
a=control:trackID=0

External connection (Doesn't work):
PC1: 192.168.0.26/ 21010
PC2: 192.168.10.126 / 22010
External IP: 217.000.000.000 (Just Example for external IP)

SDP Data:
Code:
v=0
o=- 1570419133 15 IN IP4 192.168.10.126
s=Test
c=IN IP4 217.000.000.000/32
t=0 0
m=video 21010 RTP/AVP 33
a=rtpmap:33 MP2T/90000
a=control:trackID=0

If there are any questions, I will try to answer them.
Thank you!

Stefan
Logged
IvanR
Moderator
*****
Posts: 132


View Profile
« Reply #3 on: January 15, 2013, 11:13:36 pm »

It is hard to say what's wrong. Could you try to use not SDP, but URL (or manual configuration of the filter)
like this:
elecard://<multicast_group>:<port>/rtp

And please check with Wireshark that stream is available on the client PC
Logged
sandicz
Newbie
*
Posts: 13


View Profile
« Reply #4 on: January 16, 2013, 06:01:53 am »

The Wireshark output looks pretty good on both PCs:



I don't know how to set the URL configuration, can you please explain it? I tried to connect to the stream of my application with NwPlayer sample application by setting the URL parameters. That doesn't even work in local network.
« Last Edit: January 16, 2013, 06:26:03 am by sandicz » Logged
IvanR
Moderator
*****
Posts: 132


View Profile
« Reply #5 on: January 17, 2013, 02:08:28 am »

Please do the following:

1. Turn on the parameter "Disable server signature" in the NWSource

2. If it doesn't help, please enter the following URL in Graphedit (menu Render URL...):
elecard://<client_IP_address>:<port>?i=<client_network_interface_address>/rtp

You should specify client network interface in case you have several network interfaces on the PC.
Logged
sandicz
Newbie
*
Posts: 13


View Profile
« Reply #6 on: January 17, 2013, 02:11:45 am »

Thank you! I will give it a try! Smiley
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!