Multicasting from two network interfaces.

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
frederico

Multicasting from two network interfaces.

Postby frederico » 20 Feb 2004 11:35

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.

ede-studio

Postby ede-studio » 22 Apr 2004 18:07

I've the same problem ??? does anybody know how to define the network interface VLC have to use ???

Gibalou
Big Cone-huna
Big Cone-huna
Posts: 608
Joined: 26 Nov 2003 10:59

Postby Gibalou » 22 Apr 2004 21:21

The proper way to do this would be to change your routing tables.

norm

Postby norm » 23 Apr 2004 11:45

The proper way to do this would be to change your routing tables.
And how to do this in win xp?[/url]

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 23 Apr 2004 12:18

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.

norm

Still not working :(

Postby norm » 25 Apr 2004 23:48

Thanks for advice its ok

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

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 26 Apr 2004 02:07

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.

norm

vlc

Postby norm » 26 Apr 2004 14:32

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...

norm

Postby norm » 26 Apr 2004 14:52

Im sorry nevermind the second problem im Lol :)
but the first problem is still unsolved

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 26 Apr 2004 17:23

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.

norm

Postby norm » 26 Apr 2004 21:20

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 :/

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 27 Apr 2004 03:06

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?

norm

Postby norm » 27 Apr 2004 10:00

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?

Guest

Postby Guest » 27 Apr 2004 10:06

...and when i try to join to my friends stream the messages are the same, and same are too when he is not multicasting... :?

Guest

Postby Guest » 27 Apr 2004 10:15

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...

norm

Postby norm » 27 Apr 2004 10:43

LOL ...

problem solved

problem is with vmware....

John Spence

VMware and VLC player on XP multicast problem ...

Postby John Spence » 24 May 2004 17:33

I'm having this same problem. Will you post the solution? Thanks

snis
New Cone
New Cone
Posts: 7
Joined: 15 Mar 2004 22:08
VLC version: Latest
Operating System: GNU/Linux
Location: Stockholm, Sweden
Contact:

VMWare

Postby snis » 24 May 2004 22:47

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"

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Postby The DJ » 25 May 2004 00:23

The virtual NIC's of Vmware can't handle multicast or do this incorrectly.
Don't use PMs for support questions.

suxtobeyou
New Cone
New Cone
Posts: 6
Joined: 16 May 2006 18:56

Postby suxtobeyou » 18 May 2006 22:30

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.

suxtobeyou
New Cone
New Cone
Posts: 6
Joined: 16 May 2006 18:56

Postby suxtobeyou » 15 Jun 2006 21:31

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?


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 23 guests