Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
vlc + udp multicast stream problems.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Sergis
n00b
n00b


Joined: 08 Sep 2004
Posts: 14
Location: Latvia

PostPosted: Fri Dec 28, 2007 7:40 am    Post subject: vlc + udp multicast stream problems. Reply with quote

Hello all!

I have strange problems with vlc and multicast stream, it sometimes works,sometimes not. on eth0 is two multicast streams with adress 224.1.1.1:11111 and 224.1.1.2:11111, eth1 outgoing interface:

There is one gentoo box with 2 net cards:
/etc/conf.d/net:
Code:

config_eth1=( "85.*.*.123/27" )
routes_eth1=( "default via 85.*.*.97" )
config_eth0=( "null" )


/etc/conf.d/local.start:
Code:

echo "0" > /proc/sys/net/ipv4/conf/eth1/rp_filter
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0


I have compiled multicast support in kernel
/usr/src/linux/.config:
Code:

CONFIG_IP_MULTICAST=y


I run vlc from console with parametrs:
Code:

vlc -vvv udp://@224.1.1.1:11111


vlc console log:
Code:

VLC media player 0.8.6c Janus
starting VLC root wrapper... using UID 1000 (vlc)
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /home/vlc/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 202 modules
[00000001] main private debug: opening config file /home/vlc/.vlc/vlcrc
[00000001] main private warning: config file /home/vlc/.vlc/vlcrc does not exist yet
[00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main private debug: looking for memcpy module: 3 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000269] main playlist debug: waiting for thread completion
[00000269] main playlist debug: thread 3082554256 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000270] main private debug: waiting for thread completion
[00000270] main private debug: thread 3074161552 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000271] main interface debug: looking for interface module: 1 candidate
[00000271] main interface debug: using interface module "hotkeys"
[00000271] main interface debug: thread 3065740176 (interface) created at priority 0 (interface/interface.c:231)
[00000269] main playlist debug: adding playlist item `udp://@224.1.1.1:11111' ( udp://@224.1.1.1:11111 )
[00000273] main interface debug: looking for interface module: 3 candidates
Remote control interface initialized. Type `help' for help.
[00000273] main interface debug: using interface module "rc"
[00000273] main interface debug: thread 3057290128 (manager) created at priority 0 (interface/interface.c:216)
[00000269] main playlist debug: creating new input thread
[00000275] main input debug: waiting for thread completion
[00000275] main input debug: thread 3048897424 (input) created at priority 0 (input/input.c:265)
[00000275] main input debug: creating statistics handler
[00000275] main input debug: `udp://@224.1.1.1:11111' gives access `udp' demux `' path `@224.1.1.1:11111'
[00000275] main input debug: creating demux: access='udp' demux='' path='@224.1.1.1:11111'
[00000277] main demuxer debug: looking for access_demux module: 0 candidates
[00000277] main demuxer warning: no access_demux module matched "udp"
[00000275] main input debug: creating access 'udp' path='@224.1.1.1:11111'
[00000278] main access debug: looking for access2 module: 8 candidates
[00000278] access_udp access debug: opening server=:0 local=224.1.1.1:11111
[00000278] main access debug: net: connecting to '[]:0@[224.1.1.1]:11111'
[00000278] main access debug: looking for network module: 1 candidate
[00000278] ipv6 access debug: 224.1.1.1: Address family for hostname not supported
[00000278] main access debug: using network module "ipv6"
[00000278] main access debug: removing module "ipv6"
[00000278] main access debug: looking for network module: 1 candidate
[00000278] ipv4 access debug: resolving 224.1.1.1:11111...
[00000278] ipv4 access debug: resolving :0...
[00000278] ipv4 access debug: IP_ADD_MEMBERSHIP multicast request
[00000278] main access debug: using network module "ipv4"
[00000278] main access debug: removing module "ipv4"
[00000278] main access debug: using access2 module "access_udp"
[00000282] main private debug: pre buffering
status change: ( new input: udp://@224.1.1.1:11111 )
status change: ( audio volume: 256 )
status change: ( play state: 1 )


Sometimes i got asci picture from stream,sometimes it says pre buffering, i try stable vlc and alpha vlc from portage,but without suscess, i use wireshark to see trafic on switch who connected to eth0, there is multicast group join request and udp streams, i can open streams using vlc on windows Xp connected to this network.

if vlc is launched and says prebufering iftop shows, 5,78Mbp traffic from: 80.*.*.66 to 224.1.1.1

Need help!
Back to top
View user's profile Send private message
Sergis
n00b
n00b


Joined: 08 Sep 2004
Posts: 14
Location: Latvia

PostPosted: Fri Dec 28, 2007 8:17 am    Post subject: Reply with quote

Found my mistake...

Code:

echo "0" > /proc/sys/net/ipv4/conf/eth1/rp_filter


Should bee:

Code:

echo "0" > /proc/sys/net/ipv4/conf/eth0/rp_filter


Hope this post helps some to get multicast running on gentoo..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum