Author Topic: How to setup LMCE/Mythtv for multicast IPTV receive?  (Read 8667 times)

daballiemo

  • Guru
  • ****
  • Posts: 244
  • Full Blown Addict
    • View Profile
How to setup LMCE/Mythtv for multicast IPTV receive?
« on: August 27, 2011, 09:47:02 am »
Hi all,

since some time I have FTTH with unencrypted IPTV. After a lot of hassle I now have the IP streams available on my router (igmpproxy and udpx). When connected directly to my router my laptop is able to show the different tv channels through multicast and udpxy (vlc)
Now I want mythtv to be able to tune into the multicast stream but I am having a hard time to get that going. Anybody has any experience how to set up routing and firewall to pass multicast traffic as http streams (udpxy) are not supported in mythtv.

rgds

Han
« Last Edit: August 28, 2011, 01:04:40 pm by daballiemo »
HP N40L12.04 KVM with virt LCME8.10/10.04
MD: FoxConn NetBox 330I - Samsung LE 26 (1360* 768)
MD: M2NPV-VM dual core AMD 64/3800/2Gb/NV6150 - Samsung UE 55 C8700 (full hd, 3d)
MD: FoxConn NetBox 330I - LG 32ld350

daballiemo

  • Guru
  • ****
  • Posts: 244
  • Full Blown Addict
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #1 on: August 28, 2011, 09:17:29 am »
We'll,

after a lot of surfing I was able to put the pieces together:

/etc/network/interfaces
Code: [Select]
auto lo
        iface lo inet loopback

auto eth0
iface eth0 inet static
        address 192.168.x.x
        netmask 255.255.255.0
        gateway 192.168.x.x

# Static routes for IPTV

up route add -net 224.0.0.0/4 gw 192.168.x.x dev eth0
up route add -net 82.39.121.0/24 gw 192.168.x.x dev eth0
up route add -net 10.252.120.0/22 gw 192.168.x.x dev eth0

auto eth1
iface eth1 inet static
        address 192.168.80.1
        netmask 255.255.255.0


iptables:

Code: [Select]
iptables -I FORWARD -s 233.81.0.0/16 -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD -s 239.193.0.0/16 -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD -s 224.1.3.0/24 -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD -s 80.79.34.0/24 -d 224.0.0.0/4 -j ACCEPT
iptables -I INPUT -d 224.0.0.0/4 -j ACCEPT
iptables -I FORWARD -d 224.0.0.0/4 -j ACCEPT
« Last Edit: June 23, 2012, 09:51:30 am by daballiemo »
HP N40L12.04 KVM with virt LCME8.10/10.04
MD: FoxConn NetBox 330I - Samsung LE 26 (1360* 768)
MD: M2NPV-VM dual core AMD 64/3800/2Gb/NV6150 - Samsung UE 55 C8700 (full hd, 3d)
MD: FoxConn NetBox 330I - LG 32ld350

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #2 on: August 28, 2011, 10:59:14 am »
Hi,

I'm using similar setup under 7.10. Since mythtv in 7.10 can not receive mp4 udp streams, I've put vlc in the middle. Receiving IPTV streams on one side and serving rtsp streams to clients - mythtv being one of them. The most interesting possibility in such setup is that you can receive rtsp streams also on any PC with vlc client... Therefore I can watch my iptv also on laptops around the house... Nice feature...


HTH,

regards,

Bulek.
Thanks in advance,

regards,

Bulek.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3676
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #3 on: August 28, 2011, 11:09:57 am »
Please remember that the interfaces file gets overwritten from the web admins network page.

daballiemo

  • Guru
  • ****
  • Posts: 244
  • Full Blown Addict
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #4 on: August 28, 2011, 12:12:18 pm »
Please remember that the interfaces file gets overwritten from the web admins network page.

Yep, so I have to remind finding this thread when things go tits up.

Bulek,

I get the stream on the other computers within the network using udpxy on my router (WNDR 3700)
vlc with opening link http://192.168.x.x:4022/udp/233.81.233.160:xxxx

kr

Han
HP N40L12.04 KVM with virt LCME8.10/10.04
MD: FoxConn NetBox 330I - Samsung LE 26 (1360* 768)
MD: M2NPV-VM dual core AMD 64/3800/2Gb/NV6150 - Samsung UE 55 C8700 (full hd, 3d)
MD: FoxConn NetBox 330I - LG 32ld350

daballiemo

  • Guru
  • ****
  • Posts: 244
  • Full Blown Addict
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #5 on: September 07, 2011, 11:16:13 pm »
I got tired of copying the iptables part into a terminal everytime something changed on the dcerouter firewall, so as a temporary measure i added the rules to the end of /usr/pluto/bin/Network_Firewall.sh. This untill I find out how to put them in through the webinterface.

rgds

Han
HP N40L12.04 KVM with virt LCME8.10/10.04
MD: FoxConn NetBox 330I - Samsung LE 26 (1360* 768)
MD: M2NPV-VM dual core AMD 64/3800/2Gb/NV6150 - Samsung UE 55 C8700 (full hd, 3d)
MD: FoxConn NetBox 330I - LG 32ld350

toppot

  • Veteran
  • ***
  • Posts: 52
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #6 on: September 21, 2011, 03:12:09 pm »
Hi,

I'm using similar setup under 7.10. Since mythtv in 7.10 can not receive mp4 udp streams, I've put vlc in the middle. Receiving IPTV streams on one side and serving rtsp streams to clients - mythtv being one of them. The most interesting possibility in such setup is that you can receive rtsp streams also on any PC with vlc client... Therefore I can watch my iptv also on laptops around the house... Nice feature...


HTH,

regards,

Bulek.


@Bulek: I could use a bit of assistance on how you achieved this. I have tried to setup VLC to serve UDP streams to myth, but with no success. I tweaked the "dreambox how-to" to my needs, but I have not managed to get it working. My setup:

IPBOX sat-reciever that serves http-streams from h**p://ipbox-ip:4000 and channel change via h**p://ipbox-ip/cgi-bin/interfaces&ZAP&Channel-name

Getting vlc deamon to show an active instance is working, but I can not get myth to "tune" to my m3u files, and even when I put in a manual channel it is not working. I have not yet attempted channel change, although it should not be too difficult (allthough it has to be names not channel numbers being sent, or I should use IR, which would be lame since it can be controlled via http...)

Can you give any advise? thanks

-Toppot

bulek

  • Administrator
  • wants to work for LinuxMCE
  • *****
  • Posts: 909
  • Living with LMCE
    • View Profile
Re: How to setup LMCE/Mythtv for multicast IPTV receive?
« Reply #7 on: September 22, 2011, 12:34:36 pm »
@Bulek: I could use a bit of assistance on how you achieved this. I have tried to setup VLC to serve UDP streams to myth, but with no success. I tweaked the "dreambox how-to" to my needs, but I have not managed to get it working. My setup:

IPBOX sat-reciever that serves http-streams from h**p://ipbox-ip:4000 and channel change via h**p://ipbox-ip/cgi-bin/interfaces&ZAP&Channel-name

Getting vlc deamon to show an active instance is working, but I can not get myth to "tune" to my m3u files, and even when I put in a manual channel it is not working. I have not yet attempted channel change, although it should not be too difficult (allthough it has to be names not channel numbers being sent, or I should use IR, which would be lame since it can be controlled via http...)

Can you give any advise? thanks

-Toppot
Whooh, writing out of memory...

I think I switch streams with vlc to rtsp and then have a channel playlist with those entries in mythtv. Thing worked until my ISP changed to mp4 streams - mythtv doesn't know what to do with them.... Now I only watch mp4 streams on local network from vlc clients...

I can dig up config files, but will need more time...

Edit: Have found files :
in vlm.conf something like this :
Quote
# MP4 Part
#EXTINF:1,1 - Channel1
new channel1 vod input udp://@232.4.1.1:5002 mux mp2t enabled
and then in vlc's playlist
Quote
rtsp://dcerouter_ip:9001/channel1

Regards,

Bulek.
« Last Edit: September 22, 2011, 12:39:20 pm by bulek »
Thanks in advance,

regards,

Bulek.