Page 1 of 1

Multicasting from two network interfaces.

Posted: 20 Feb 2004 11:35
by frederico
Hi,

I'm using VLC to multicast two different streams. I need each stream to go out a different network interface.
Is this possible?

I have tried using --iface <ip address> but this doesn't seem to work...
The stream always uses the same card!

Could this be a problem with the card? No multicast support?

Thanks,
Fred.

Posted: 22 Apr 2004 18:07
by ede-studio
I've the same problem ??? does anybody know how to define the network interface VLC have to use ???

Posted: 22 Apr 2004 21:21
by Gibalou
The proper way to do this would be to change your routing tables.

Posted: 23 Apr 2004 11:45
by norm
The proper way to do this would be to change your routing tables.
And how to do this in win xp?[/url]

Posted: 23 Apr 2004 12:18
by markfm
If one of your Ethernet NICs has an address of 172.120.20.3, and the other one has an address of 192.168.2.3, in Windows 2000/XP I would open a DOS prompt and enter:
route -p ADD 239.239.0.0 MASK 255.255.0.0 192.168.2.3 METRIC 1 IF 192.168.2.3

(I could be wrong on the precise syntax -- may not need the last IF part of it)

What this does is tell the PC to add a persistent route (saved between reboots), where it shovels any 239.239.x.y address out the 192.168.2.3 interface of the PC.

Still not working :(

Posted: 25 Apr 2004 23:48
by norm
Thanks for advice its ok

only problem to acces this multicast stream from my computer...

Posted: 26 Apr 2004 02:07
by markfm
To access the multicast stream (the thing being sent on an address of 220.0.x.x to 239.255.x.x):

Launch VLC on the lient.

Select File -- Open Network Stream
Select the 2nd UDP option, the one that has an "Address" field -- type the multicast address into it.

vlc

Posted: 26 Apr 2004 14:32
by norm
YEs I did this (friend on lan multicasting on 239.192.1.1)
and i still get nothing

Another problem occured I remove route path
route delete ....
and now i cannot add anything to route, when i type route -p ADD... or route ADD.... the route program runs without any params...

Posted: 26 Apr 2004 14:52
by norm
Im sorry nevermind the second problem im Lol :)
but the first problem is still unsolved

Posted: 26 Apr 2004 17:23
by markfm
Any chance that your friend has two NICs (Ethernet cards)? If he does, it might be sending the multicast out the wrong NIC.

Are you able to get a point-to-point UDP stream OK? Have the Server do a UDP to your PC's IP address, then on your PC run the Open Network Stream, select the first UDP choice (the one with no Address field), see if you're able to get the directed (unicast) stream.

Posted: 26 Apr 2004 21:20
by norm
We have lan and about 100users on it
I multicast, and anybody has no problem to connect to my stream
He multicast on a different adress and other people can join to him

but i cant join neither to my or his stream :/

Posted: 27 Apr 2004 03:06
by markfm
It almost sounds like your OS has been set to disregard (ignore) receiving multicast. At least in Windows 2000 you actually can manage to do that -- you can tell it to ignore all multicast, to only permit TX of multicast, or to both TX and RX multicast.

The other thing would be to install a fresh copy of VLC. Are you getting any errors?
-Open VLC
-Select View -- Messages
-Have your friend start a multicast. In my case, on WinXP, just for test I open a second set of VLC and start a multicast of a file. I set the file for UDP on IP 239.10.20.30, the default port (1234)
-I then go to the first copy of VLC, my client, and select File -- Open Network Stream. I select the second UDP option, the one where you plug in the IP, and give it 239.10.20.30. It quickly opens the playback window, and the following is what the Message window showed:


main debug: adding playlist item `udp://@230.10.20.30' ( udp://@230.10.20.30 )
main debug: creating new input thread
main: playlist item `udp://@230.10.20.30'
main debug: waiting for thread completion
main debug: access `udp', demux `', name `@230.10.20.30'
main debug: looking for access module
main debug: probing 1 candidate
main debug: thread 2896 (input) created at priority 1 (src/input/input.c:324)
access_udp debug: opening server=:0 local=230.10.20.30:1234
main debug: net: connecting to ':0@230.10.20.30:1234'
main debug: looking for network module
main debug: probing 2 candidates
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
main debug: using access module "access_udp"
access_udp debug: detected TS over raw UDP
main debug: looking for demux module
main debug: probing 7 candidates
dshow warning: dshow plugin discarded (not a valid stream)
dshow warning: dshow plugin discarded (not a valid stream)
main debug: looking for mpeg-system module
main debug: probing 1 candidate
main debug: using mpeg-system module "mpeg_system"
main debug: using demux module "ts_dvbpsi"
ts_dvbpsi debug: processing PAT version 20
ts_dvbpsi debug: new program: 1
ts_dvbpsi debug: processing PMT for program 1 version 5
ts_dvbpsi debug: new PID 0x44 stream type 0x2
main debug: ES 42 has unknown type
main debug: selecting video ES 44
main debug: selecting ES 0x44
main debug: looking for decoder module
main debug: probing 22 candidates
main debug: using decoder module "libmpeg2"
main debug: thread 2952 (decoder) created at priority 0 (src/input/input_dec.c:161)
mpeg_system warning: first packet for PID 68 received by TS demux
libmpeg2 debug: 352x240, aspect 563200, 29.971 fps


The above is a "healthy" Message window, VLC opening the multicast connection, seeing what the video is, playing it. What do you get in your Message window, when you try to open the connection to display the multicast?

Posted: 27 Apr 2004 10:00
by norm
Im using winxp too
i do multicast locally at 239.192.10.1

this is the message from client
main debug: adding playlist item `udp://@239.192.10.1' ( udp://@239.192.10.1 )
main debug: creating new input thread
main: playlist item `udp://@239.192.10.1'
main debug: waiting for thread completion
main debug: access `udp', demux `', name `@239.192.10.1'
main debug: looking for access module
main debug: probing 8 candidates
main debug: thread 3156 (input) created at priority 1 (src/input/input.c:254)
access_udp debug: opening server=:0 local=239.192.10.1:1234
main debug: net: connecting to ':0@239.192.10.1:1234'
main debug: looking for network module
main debug: probing 2 candidates
ipv4 debug: IP_ADD_MEMBERSHIP multicast request
main debug: using network module "ipv4"
main debug: unlocking module "ipv4"
main debug: using access module "access_udp"


so what do you think is the problem?

Posted: 27 Apr 2004 10:06
by Guest
...and when i try to join to my friends stream the messages are the same, and same are too when he is not multicasting... :?

Posted: 27 Apr 2004 10:15
by Guest
Maybe..
i have installed virtual mashine (vmware) and this add two networks adapters for virt. mash. could be this the problem?

in v.m. i used bridged network...

Posted: 27 Apr 2004 10:43
by norm
LOL ...

problem solved

problem is with vmware....

VMware and VLC player on XP multicast problem ...

Posted: 24 May 2004 17:33
by John Spence
I'm having this same problem. Will you post the solution? Thanks

VMWare

Posted: 24 May 2004 22:47
by snis
I have had VMWare installed on both a Linux system and a Windows system.

VMware is breaking VLC so that you can't connect to multicast streams (haven't tried unicast streams).
I never investigated why, but removing VMWare solved the problem, I rather have VLC working than VMWare, so problem solved for me :wink:

If I remember correct a workaround is to disable the virtual NICs installed by VMWare in Windows.
Under Linux do a "/etc/init.d/vmware stop"

Posted: 25 May 2004 00:23
by The DJ
The virtual NIC's of Vmware can't handle multicast or do this incorrectly.

Posted: 18 May 2006 22:30
by suxtobeyou
not sure if this would help but you can try it if you want:

Code: Select all

vlc -miface=<your_ip> (whatever other options)
I'm not sure if the parameter is -miface or -iface so try the other if one doesn't work.

Posted: 15 Jun 2006 21:31
by suxtobeyou
Turns out the commands above apply to receiving multicast, not sending it. I have the same problem as this thread, two NICs but need to specify which NIC to send the multicast stream out on. Is there a command to specify which network interface to use? I've tried

Code: Select all

-I "x.x.x.x"
but that doesn't work. I can't set the route because I am on linux and don't have permissions.
Anyone got a solution for this?