UDP multicast - Printable Version
+- Networked Media Tank (http://www.networkedmediatank.com)
+-- Forum: Community Jukebox, Themes, & UserApps Section (/forumdisplay.php?fid=106)
+--- Forum: 200/300/400 Series - Development and User Apps (/forumdisplay.php?fid=121)
+---- Forum: 100 Series - Development and User Apps (/forumdisplay.php?fid=33)
+---- Thread: UDP multicast (/showthread.php?tid=6991)
UDP multicast - JJ - 08-19-2008 12:40 PM
I'm looking for a solution to have many LCD screens PCH in a large area all connected via LAN. (to long for HDMI cables)
I need to send video over the network as UDP multicast
All screens will then show the same content in sync
My idea are to modify the start uo script to launch mono to recieve the multicast eg like 18.104.22.168:1234
For testing it's easy to use VLC and ask it to stream out as UDP 22.214.171.124:1234
but here is the problem how to force mono to listen to a multicast?
This works for http but are not god for many units in sync
./mono -single http://192.168.1.105:1234 -dram 1
I tried like (no luck)
./mono -single udp://126.96.36.199:1234 -dram 1
on the EM8621 SDK I have this to work for UDP multicast
./play_hwdemux_multicast -f VESA_1280x1024x75 -task 0_m2t -afreq 44100 -multicast 188.8.131.52:1234 -c mpeg
Any hint to mono?
or can any of the sample in the EM8634 SDK do this??
RE: UDP multicast - OwL - 08-19-2008 02:56 PM
I am successfully receiving multicast IPTV with my pch... but not using mono.... I use an application called "udpxy" running on the PCH, that receives the UDP multicast stream and converts it to http streaming..... on the PCH I then connect to localhost on a specific port. and voila... multicast IPTV shows up!
udpxy source you have to download yourself from sourceforge, and compile for the PCH.
Search the forum for "udpxy"
Regards // OwL
RE: UDP multicast - JJ - 08-19-2008 08:25 PM
"udpxy" looks as a good workaround if it's not posible to have mono to recieve UDP multicast directly
I have downloaded the "udpxy" for PCH and put it on my harddrive
on a PC with ip 192.168.1.105 I do run VLC I do play a mpg file as UPD stream for 192.168.1.106
(i know this is unicast but I expect it should work as well)
on the PCH I do run ./udpxy -p 1234
then I do run
./mono -single http://192.168.1.106:1234 -dram 1 (no luck)
/bin # ./mono -single http://127.0.0.1:1234 -dram 1 (no luck)
mono.c: 1405 ...
Starting mono with command >> [./mono] [-single] [http://127.0.0.1:1234] [-dram]
mono.c: 2142 ... ===> repeat mode: 0
mono.c: 2191 ... ===> subtitle: 0
apply_tvmode >> 2
Cannot insert picture inside surface 7
mono.c: 2438 ... open_path: [http://127.0.0.1:1234]
mono.c: 2987 ... MONO cleanup done and exit...
Any sugestion for the parameter for udpxy when it runs on the PCH ip 192.168.1.106 ?
What happens when udpxy does not recieve any input will this kill the http stream which will force mono to exit?
RE: UDP multicast - OwL - 08-20-2008 10:29 AM
I run udpxy like this on the pch:
udpxy -p 81 -B 262144 -H 8
and then use this link (modified for your setup):
a href="http://localhost:81/udp/192.168.1.105:1234" vod
so.. if you invoke mono directly, you should use:
./mono -single http://localhost:81/udp/192.168.1.105:1234 -dram 1
Regards // OwL
(08-19-2008 08:25 PM)JJ Wrote: Hi
RE: UDP multicast - JJ - 08-20-2008 03:03 PM
By some reason the unicast did not work so I tried multicast (what I actually want)
./udpxy -p 81 -B 262144 -H 8
./mono -single http://localhost:81/udp/184.108.40.206:1234 -dram 1
at VLC I do select file and stream UDP at 220.127.116.11. port 1234
This works perfect :-)
Now I need to make some change in startup script so it automatic always start and I also have to try on more unit at the same time to see how the sync are
Thank you for you help