----------------------------ENGLISH Version-----------------------------
What can you play with this plugin?
- The rtp/udp/http IPTV must be DVB-IP conform
- Only Non-DRM/ Non-CA (unscrambled) SD/HD Streams work with this approach
- SD/HD Streams in h.264 or MPEG2 work with this approach
- Stream starts to play < 1 Sec., zapping less then 1 Sec.
Introduction:
For a long time I try to find a proper solution on the e2, to get SD and HD IPTV streams running. With GStreamer IPTV streams work too, but unfortunatly not reliable and stable.
I´ve tested really a lot. With the presented solution you can enjoy DVB-IP conform IPTV streams in a clean, stable and fast way on your e2 dreambox. Nothing crashes or stucks the streams while playing them.
Multicast or Unicast streams and the used trick:
Before I try to explain how it works, you should inform yourself about multicast and unicast. I´m sure google will help you.
The used trick is a small linux binary called "udpxy". This is a small proxy converting the udp/rtp multicast packets into http unicast one, wihtout creating heavy load on your machine.
The dream can also handle real multicast streams, but completly instable, my opinion. Http unicast works absolut perfect, therefore this small workaround makes fully sense.
Another important advantage is that udpxy handles the IGMP v2 koin/leave protocol reliable. Further, if you would use multicast in your home network, this would flood your LAN clients with useless traffic.
To avoid this I start udpxy on my router (WAN Gateway). Having converted the IPTV multicast streams to unicast, the "Remote TV" lib of Dr.Best will process the DVB-IP conform streams as you know it from usal DVB-S-T-C receiption.
Prerequisites to run this plugin:
- Uptodate OE 1.6 Image
- Uptodate "Partnerbox/RemoteTV Plugin" MUST BE installed, because a lib of this plugin is used. (webtots.so)
Handling of already existing http unicast streams:
If you have already http:// unicast streams (e.g. origin dreambox streams), you don´t need to start udpxy! Just proceed with point A5, and create your *.m3u as described below, and copy it into etc/videostreams folder.
Handling of udp/rtp multicast streams: e.g. udp://239.12.14.133:4000 oder rtp://239.15.66.133:8888
With Udpxy [http://sourceforge.net/projects/udpxy/].
Start udpxy on your dreambox or your router, to be able for converting multicast into unicast. Find below how to start.
Udpxy is started in this way via telnet:
./udpxy -p 4050
-p 4050 -> this means on Port 4050 you will catch the converted unicast packets from udpxy.
Simple instruction how to proceed:
A1. Download udpxy.mipsel here attached and upload it to usr/bin
A2. Rename it to udpxy"
A3. Give the right rights chmod 755
A4. Start via telnet udpxy in this way "udpxy -p 4050 &"
A5. Create your *.m3u with links as shown below, and upload the m3u to etc/videostreams (these links are expamples, no streams available on this URLs)
------------------------------------------------
#EXTINF:0,TVK-1
http://127.0.0.1:4050/udp/239.122.12.187:10000
#EXTINF:0,TVK-2
http://127.0.0.1:4050/udp/239.122.12.188:10000
#EXTINF:0,TVK-3
http://127.0.0.1:4050/udp/239.122.12.189:10000
#EXTINF:0,TVK-3
http://127.0.0.1:4050/udp/239.122.12.181:10000
------------------------------------------------
IPTV Player Plugin installation and handling:
Download the attached zip file and decompress it. The Streamer folder upload to /usr/lib/enigma2/python/Plugins/Extensions. Give the files inside the right rights 755.
Restart your dreambox (don´t forget to start udpxy if did a reboot...). You should find the "IPTV Player" in extensions, open it. Each *.m3u file in etc/videostreams you should see as a kind of bouquet.
Select one and press ok, then you will find the links of your m3u. Select a TV service and the stream should be displayed on your TV screen.
The navigation is simple, with exit you leave the folder or the and the end the plugin. With OK you open the folder, With Up/Down you can zap within a folder from stream to stream and back.
The IPTV Player plugin is based upon the DMvidsDirect Plugin of PCD. He has modded the come to the IPTV Player plugin.
BIG thanks to Dr.Best for his great Remote TV plugin, and to PCD who made the final version of IPTV Player.
P.S. There will be some updates in near future, Audio Selection, Teletext Selection...
(...) 3 nouveaux bouquets "orangeiptv" sont crées en dessous de ceux existants (sat et/ou tnt ) .., un complet , un drm , et un hd ..
exemple de syntaxe : #SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.143%3a8200:M6 HD (DRM)
bien sur , il faut relancer enigma2 pour prise en compte. (...)
D'autre part, un post qui m'a été suggéré sur un autre excellllllllllent forum, semble sous-entendre que la lecture directe des flux multicasts est possible depuis Enigma2
#NAME IPTV
#SERVICE 1:64:AA:0:0:0:0:0:0:0::IPTV
#DESCRIPTION IPTV
#SERVICE 4097:0:0:0:0:0:0:0:0:0:rtsp%3a//37.59.47.86%3a8000/tvcom_live2.sdp:TV Com
#DESCRIPTION TV Com
#SERVICE 4097:0:0:0:0:0:0:0:0:0:mms%3a//vipmms.yacast.net/bfm_bfmbiz:BFM Business
#DESCRIPTION BFM Business
#SERVICE 4097:0:0:0:0:0:0:0:0:0:mms%3a//stream2.canal.qc.ca/enOndes_haut_debit:Euronews France
#DESCRIPTION Euronews France
#SERVICE 4097:0:0:0:0:0:0:0:0:0:rtsp%3a//stream2.france24.yacast.net/france24_live/fr/f24_livefr:France 24
#DESCRIPTION France 24
#NAME ORANGEIPTV ALL
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.120%3a8200:MOSA 2 Page 1 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.121%3a8200:MOSA 2 Page 2 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.122%3a8200:MOSA 2 Page 3 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.123%3a8200:MOSA 2 Page 4 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.124%3a8200:MOSA 2 Page 5 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.9.5%3a8200:TF1
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.187%3a8200:TF1 (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.140%3a8200:TF1 HD (DRM)
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.180%3a8200:France 2
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.141%3a8200:FRANCE2 HD
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.1.181%3a8200:France 3
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.142%3a8200:FRANCE 3 HD
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.5.55%3a8200:Canal +
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.6.13%3a8200:Canal+ HD
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.182%3a8200:France 5
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.2.109%3a8200:FRANCE 5 HD
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.7.33%3a8200:M6
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtp%3a//@232.0.7.35%3a8200:M6
"1:0:1:1:0:0:0:0:0:0:http%3a//xxx.xxx.xxx.xxx%3aXXXX/udp/239.1.1.115%3a5000"
Par contre, en remplaçant 4097 par 1, ça fonctionne. Qu'est-ce que ça donne chez toi ?
NAME
dumprtp - get an RTP unicast/multicast/broadcast stream and output it
SYNOPSIS
ts_filter [ip_addr port]
DESCRIPTION
dumprtp fetches a unicast,broadcast or multicast stream from an IP
address and outputs it to stdout. It may be used with dvbstream to
broadcast, for example, DVB video and audio over a LAN.
With no arguments, dumprtp outputs from multicast address 224.0.1.2,
port 5004 by default (this is the default used by dvbstream. To change
this, give the address and the port number on the command line.
mpegtools(1) and dvbstream(1).
AUTHORS
dumprtp was written by David Podeur (<david@convergence.de>) for Con‐
vergence integrated media GmbH and is made available under the GNU Pub‐
lic License.
"257:0:1:1:0:0:0:0:0:0:http%3a//xxx.xxx.xxx.xxx%3aXXXX/udp/239.1.1.115%3a5000"
#SERVICE 4097:0:1:0:0:0:0:0:0:0:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=489&flavour=sd:Powertürk TV
=> A/V OK MAIS REC KO
#SERVICE1:0:1:1:1:1:0:0:0:0:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=489&flavour=sd:Powertürk TV
=> A/V KO
#SERVICE 1:0:1:1E9:1:1:0:0:0:0:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=489&flavour=sd:Powertürk TV
=> A/V KO
#SERVICE1:0:1:0:0:0:0:0:0:0:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=489&flavour=sd:Powertürk TV
=> A/V KO
#SERVICE1:0:1:0:0:0:0:0:0:2:rtsp%3a//mafreebox.freebox.fr/fbxtv_pub/stream?namespace=1&service=489&flavour=sd:Powertürk TV
=> A/V KO
A propos du "2" : buffering Disk : http://forums.openpli.org/topic/21705-dmm-320-iptv-in-bouquets-openpli-added-this-already/page-15#entry388338#SERVICE 257:0:0:0:0:0:0:0:0:0:http%3A//127.0.0.1%3A1234/udp/233.49.82.72%3A7500/:nrj12hd
#DESCRIPTION nrj12hd
Hello,
Désolé de déterrer ce post, mais je suis en train de bosser sur les flux multicasts et je me demande pourquoi il semble absolument nécessaire de passer par un proxy (le logiciel russe udpxy, en l'occurence) qui transforme les flux multicasts de la TVIP en flux unicasts. Nos STB Linux sont pourtant configurés pour recevoir les flux multicasts, si j'en juge ma configuration réseau :
root@dm8000:/etc/enigma2# ifconfig
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
inet addr:192.168.1.102 Bcast:0.0.0.0 Mask:255.255.255.0
inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4919 errors:0 dropped:0 overruns:0 frame:0
TX packets:7222 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:770627 (752.5 KiB) TX bytes:7921394 (7.5 MiB)
Interrupt:16
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:336 (336.0 B) TX bytes:336 (336.0 B)
D'autre part, un post qui m'a été suggéré sur un autre excellllllllllent forum, semble sous-entendre que la lecture directe des flux multicasts est possible depuis Enigma2, si j'en juge la teneur de cet extrait :
Ayant modifié la configuration de mon routeur et de mon firewall pour laisser passer les flux multicasts de la TV ADSL d'Orange dans mon réseau data, je n'ai pas de soucis pour lire les flux sans DRM dans VLC. J'ai intégré les services que j'ai trouvés par écoute de mon réseau dans un bouquet TV d'Enigma2, mais rien n'y fait ! Ecran noir quand on zappe sur les chaines IPTV, même sans DRM ! :'(
Si quelqu'un peut me confirmer que la lecture DVB-IP est possible en multicast, je suis preneur ! ::)
Merci d'avance !
root@dm8000:~# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
224.0.0.0 0.0.0.0 240.0.0.0 U 0 0 0 eth0
salut apparament il existe aussi un convertisseur rtsp en http://
voir le lien => http://sourceforge.net/p/iptv2rtsp-proxy/wiki/Home/
#SERVICE 1:0:0:0:0:0:0:0:0:0:udp%3a/192.168.0.XX%3a1234/:TEST
#DESCRIPTION TEST
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a1234/udp/192.168.0.XX%3a1234/:TEST
#DESCRIPTION TEST
#SERVICE 1:0:0:0:0:0:0:0:0:0:http%3a//192.168.0.XX%3a1234/udp/192.168.0.XX%3a1234/:TEST
#DESCRIPTION TEST
#SERVICE 4097:0:0:0:0:0:0:0:0:0:udp%3a//@192.168.0.X%3a1234
root@dm920:~$ -v udpxy
-bash: -v: command not found
root@dm920:~$ udpxy -v
udpxy 1.0-23.12 (prod) lean [Linux 3.14-1.17-dm920 armv7l]
usage: udpxy [-vTS] [-a listenaddr] -p port [-m mcast_ifc_addr] [-c clients] [-l logfile] [-B sizeK] [-n nice_incr]
-v : enable verbose output [default = disabled]
-S : enable client statistics [default = disabled]
-T : do NOT run as a daemon [default = daemon if root]
-a : (IPv4) address/interface to listen on [default = 0.0.0.0]
-p : port to listen on
-m : (IPv4) address/interface of (multicast) source [default = 0.0.0.0]
-c : max clients to serve [default = 3, max = 5000]
-l : log output to file [default = stderr]
-B : buffer size (65536, 32Kb, 1Mb) for inbound (multicast) data [defaul t = 2048 bytes]
-R : maximum messages to store in buffer (-1 = all) [default = 1]
-H : maximum time (sec) to hold data in buffer (-1 = unlimited) [default = 1]
-n : nice value increment [default = 0]
-M : periodically renew multicast subscription (skip if 0 sec) [default = 0 sec]
Examples:
udpxy -p 4022
listen for HTTP requests on port 4022, all network interfaces
udpxy -a lan0 -p 4022 -m lan1
listen for HTTP requests on interface lan0, port 4022;
subscribe to multicast groups on interface lan1
udpxy and udpxrec are Copyright (C) 2008-2018 Pavel V. Cherenkov and licensed under GNU GPLv3
Email: support@udpxy.com; Telegram: GigaX-discussions; Google+: udpxy communit y
root@dm920:~$ udpxy -p 1234 -l log
root@dm920:~$ udpxy -p 1234 -v
Logfile must be specified to run in verbose mode in background
root@dm920:~$ udpxy -p 1234 -l log.txt
root@dm920:~$ udpxy -p 1234 -v
Logfile must be specified to run in verbose mode in background
root@dm920:~$ udpxy -p 1234 -v -l /tmp/log.txt
root@dm920:~$ udpxy -p 1234 -v
Logfile must be specified to run in verbose mode in background
root@dm920:~$
udpxy [-vTS] [-a listenaddr] -p port [-m mcast_ifc_addr] [-c clients] [-l logfile] [-B sizeK] [-n nice_incr]
-v : enable verbose output [default = disabled]
root@dm920:~$ udpxy -v -p 1234
Logfile must be specified to run in verbose mode in background