PDA

View Full Version : Video Streaming via UDP


rAXv2
2011-09-14, 21:11
hi there,
i cant watch video stream which is @ udp protocol thou i have been trying to make it work for which i used KMplayer, VLC and SMplayer all three failed to start the stream that i can watch on my laptop.
Its IPTV service provided by my ISP, streaming link is like udp://@123.456.7.8:1234

I dont know whats is wrong can someone help me?

ammyt
2011-09-14, 21:21
What's the res?

rAXv2
2011-09-15, 05:22
http://img10.imageshack.us/img10/7930/streamo.jpg (http://imageshack.us/photo/my-images/10/streamo.jpg/)

koos
2011-09-15, 19:22
hi there,
i cant watch video stream which is @ udp protocol thou i have been trying to make it work for which i used KMplayer, VLC and SMplayer all three failed to start the stream that i can watch on my laptop.
Its IPTV service provided by my ISP, streaming link is like udp://@123.456.7.8:1234

I dont know whats is wrong can someone help me?
Cannot test it here, but did you try with removing the @ sign?
With googling I found http://wiki.multimedia.cx/index.php?title=MPlayer_FAQ and http://www.advenage.com/topics/change-IGMP-version-on-debian-linux.php)? So it suggests mplayer can play udp:// links and you may want to try switching to igmp version 2.
Hope that helps

rAXv2
2011-09-15, 19:36
thx for reply
i have checked it already link without @ not work...
and as for Mplayer and IGMP i will see and let u know...

rAXv2
2011-09-18, 04:09
mplayer dont play keep saying no stream found on ip...

rAXv2
2011-09-18, 06:05
is there any command for setting timeout?

rAXv2
2011-09-28, 20:38
bump can someone help or i just sell my n900 and buy hd2?

rfeese
2011-09-28, 21:12
I doubt that timeout is the problem, and it is likely either a network problem or problem calling mplayer.

Maybe try the -msglevel option to get more information:

mplayer -msglevel all=6 udp://239.194.0.53:6053

See if there is anything in the output that will give more clues as to the problem.

rAXv2
2011-09-29, 07:04
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ mplayer -msglevel all=6 udp://@239.194.0.16:6016
MPlayer SVN-r30099-4.2.1 (C) 2000-2009 MPlayer Team
CPU: ARM
get_path('codecs.conf') -> '/home/user/.mplayer/codecs.conf'
Reading /home/user/.mplayer/codecs.conf: Can't open '/home/user/.mplayer/codecs.conf': No such file or directory
Reading /usr/etc/mplayer/codecs.conf: Can't open '/usr/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration: --prefix=/usr --extra-cflags=-mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp --disable-speex --disable-dvdnav --disable-dvdread --disable-dvdread-internal --disable-real --disable-xanim
CommandLine: '-msglevel' 'all=6' 'udp://@239.194.0.16:6016'
init_freetype
Using Unoptimized OnScreenDisplay
get_path('fonts') -> '/home/user/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/user/.mplayer/input.conf'
Can't open input config file /home/user/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('@239.194.0.16:6016.conf') -> '/home/user/.mplayer/@239.194.0.16:6016.conf'

Playing udp://@239.194.0.16:6016.
get_path('sub/') -> '/home/user/.mplayer/sub/'
STREAM_UDP, URL: udp://@239.194.0.16:6016
Filename for url is now udp://@239.194.0.16:6016
Filename for url is now udp://@239.194.0.16:6016
Listening for traffic on 239.194.0.16:6016 ...
Timeout! No data from host 239.194.0.16
udp_streaming_start failed
No stream found to handle url udp://@239.194.0.16:6016

vo: x11 uninit called but X11 not initialized..

Exiting... (End of file)
~ $

rfeese
2011-09-29, 14:02
My first thought is that something is blocking UDP traffic from the server to your phone. Are you behind a firewall? Typically you would be behind a NAT firewall with the typical wifi router set-up. NAT will block UDP unless you have taken extra steps to make it work somehow.

What is the IP address of your laptop that you use to watch video?
What is the IP address of your n900 when you are trying to watch video?

The other possibilities are that you aren't using the correct URL or that mplayer does not support the stream. You could rule those out by trying to run mplayer on your laptop just like you did on your n900.

rAXv2
2011-09-29, 19:08
i am using tano and vlc on my laptop and pc, typing the same Ip address @ N900, thou the video start after sometime on laptop and pc. if its working fine then whats the problem with n900?

laptop ip 192.168.0.101
n900 ip 192.168.0.102

i will try opening all ports but its senseless...

rAXv2
2011-09-30, 04:58
given static ip to n900 and opened all ports tcp/udp 1 to 65535 from router, still the same...

handaxe
2011-09-30, 06:40
try disabling power control on the wifi interface. never know.......

rfeese
2011-09-30, 15:23
192.168.*.* is a private network IP so your router is doing NAT. UDP does not work through NAT without other tricks like port forwarding, STUN, or ICE. The software you're using on your laptop or PC might be using STUN or ICE or setting rules on your router via UPnP/Bonjour. I don't think that mplayer supports these options.

Your best bet might be to set up port forwarding on the router for the UDP packets to your n900.

handaxe
2011-09-30, 17:39
@rfeese: but it works for the lap- and desktop. Something else surely. Are both are cabled and.....

rfeese
2011-10-02, 20:56
I would look at your router settings. See if there are ports forwarded when playing UDP streams from your laptop or PC. Something is happening to allow the UDP packets to transverse the NAT. The n900 and mplayer are not set up to do the automagic port-forwarding stuff that PCs and Macs are set up to do.