So, i had the need to convert IPTV multicast effeciently to HTTP.
Luckily i found udpxy.
As on their home page:
“udpxy is a UDP-to-HTTP multicast traffic relay daemon: it forwards UDP traffic from a given multicast subscription to the requesting HTTP client”
Download udpxy packages for ALT Linux, Arch Linux, CentOS, Debian, Fedora, FreeBSD, Mageia, OpenMandriva, OpenWrt, Slackware. Cd /home/osmc/udpxy/udpxy. Sudo apt-get -y install build-essential. Sudo make install. Add permissions to run the start-up script; sudo apt-get -y install dvb-apps. Sudo chmod 777 run.sh. Next we have to Edit /etc/rc.local with nano to enable to run the program at startup; sudo nano /etc/rc.local. FreeBSD: 10-11, Linux: CentOS 6-7, Debian 8-9, Ubuntu 14.04-16.04 LTS. Hardware requirements: Any x86-64 hardware running Linux or FreeBSD. Minimum 4 Gb of RAM. Conact us if need to run on ARM or other architectures. Licensing: GigA+ is commercial software.
- 6) Navigate to Udpxy at SourceForge and download latest package. Configure, make and make install it. 8) start udpxy daemon with udpxy -a eth1 -p 4022 -m eth0 (where eth0 is outer adapter) 9) all work on gateway is done, return to a computer you want IPTV to be watched on 10) create new.pls file.
- Root@vidserv:# udpxy udpxy 1.0-23.7 (prod) standard Linux 3.2.0-39-generic x8664 usage: udpxy -vTS -a listenaddr -p port -m mcastifcaddr -c clients -l logfile -B sizeK -n niceincr -v: enable verbose output default = disabled -S: enable client statistics default = disabled -T: do NOT run as a daemon default = daemon.
Installation:
Options provided by this version:
To execute:
This will show proxy status in your browser:http://192.168.0.12:4022/status/
Udpxy Ubuntu Download Software
This will open a multicast stream meant for 239.1.1.39:1234 and make it available via http.
You can open this url with VLC and it should work.http://192.168.0.12:4022/udp/239.1.1.39:1234
Udpxy
I think this is also really interesting:
http://xupnpd.org/t/#About_xupnpd