Project

General

Profile

IPTV on Ubuntu!

Added by ruud - almost 10 years ago

Hi, I have a working tvheadend setup (3.4) on a centos server
I am migrating this setup to a new Ubuntu server.
Installed the latest and greatest tvheadend server (HTS Tvheadend 3.9.2303~gcde79eb~trusty), enabled my sencond network card to get an ip from my provider and just now starting to type in all the mux information from the ld to the new server.

I run into the following problem: it does't work :(

e.g. on my old server I get the following info for a mux:

Dec 29 18:29:00 xceed tvheadend[29933]: subscription: 'initscan' subscribing to mux, weight: 2, adapter: 'IPTV', network: 'IPTV Network', mux: 'udp://233.81.233.19:11036'


where on my new server it tells me the following (debug enabled):
Dec 29 19:28:16 office tvheadend[18765]: mpegts: udp://233.81.233.19(null) in IPTV Network - tuning on IPTV
Dec 29 19:28:16 office tvheadend[18765]: subscription: 013D: "scan" subscribing to mux, weight: 1, adapter: "IPTV", network: "IPTV Network", mux: "udp://233.81.233.19(null)", hostname: "<N/A>", username: "<N/A>", client: "<N/A>" 
Dec 29 19:28:56 office tvheadend[18765]: mpegts: udp://233.81.233.19(null) in IPTV Network - scan no data, failed
Dec 29 19:28:56 office tvheadend[18765]: subscription: 016E: "scan" unsubscribing

The mux info I entered has the following info:
URL > udp://233.81.233.19:11036
Interface > P4P1

I have tried googling on (null) and the <N/A> info in the log, but no info found.
Hope somebody here can help me out with what is probably a stupid mistake on my side ;)

regards,
Ruud


Replies (3)

HELP: IPTV on Ubuntu? - Added by ruud - almost 10 years ago

Hi,

could REALLY use some help here.
I have a working clearos tvheadend setup but I am moving my old hardware to new hardware with Ubuntu 14.04 (LTS)

On my new machine I have changed /etc/dhcp/dhcp.conf to hold:

interface "p4p1" {
        request subnet-mask, time-offset, routers, domain-name-servers, host-name, domain-name,
                root-path, default-ip-ttl, broadcast-address, perform-mask-discovery, router-discovery,
                static-routes, nis-domain, nis-servers, ntp-servers, vendor-encapsulated-options;

        send dhcp-max-message-size 548;
        send vendor-encapsulated-options 03:09:61:6d:69:6e:65:74:31:34:30:04:05:66:69:73:79:73;
        send vendor-class-identifier "Aminoaminet140fisys";
        send dhcp-client-identifier 01:00:02:02:xx:xx:xx;
}

I have changed /etc/network/interface to hold:

auto p4p1
iface p4p1 inet dhcp
   hwaddress ether 00:02:02:xx:xx:xx
   vendor "Aminoaminet140fisys" 
   pre-up echo 2 > /proc/sys/net/ipv4/conf/p4p1/force_igmp_version
   pre-up echo 0 > /proc/sys/net/ipv4/conf/p4p1/rp_filter

And I created a script /etc/network/if-up.d/iptv
#!/bin/sh
# Check for specific interface if desired
# Adding additional routes on connection
route add -net 224.0.0.0 netmask 240.0.0.0 dev p4p1
route add -net 82.139.121.0 netmask 255.255.255.0 gw 10.30.252.1 dev p4p1

this results into: ifconfig >
p4p1      Link encap:Ethernet  HWaddr 00:02:02:xx:xx:xx  
          inet addr:10.30.255.130  Bcast:10.30.255.255  Mask:255.255.252.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1693980 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1153 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2286006471 (2.2 GB)  TX bytes:79398 (79.3 KB)

and 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 p1p1
10.30.252.0     0.0.0.0         255.255.252.0   U     0      0        0 p4p1
82.139.121.0    10.30.252.1     255.255.255.0   UG    0      0        0 p4p1
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 p1p1
224.0.0.0       0.0.0.0         240.0.0.0       U     0      0        0 p4p1

I have the following iptables -L -v:
Chain INPUT (policy ACCEPT 65312 packets, 45M bytes)
 pkts bytes target     prot opt in     out     source               destination         
 282K  378M ACCEPT     all  --  any    any     anywhere             base-address.mcast.net/4 

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 ACCEPT     all  --  any    any     anywhere             base-address.mcast.net/4 

Chain OUTPUT (policy ACCEPT 84010 packets, 43M bytes)
 pkts bytes target     prot opt in     out     source               destination

so far so good,
problem is that in TVHeadend I keep getting
2015-01-02 12:25:37.000 mpegts: udp://239.192.4.101(null) in IPTV - tuning on IPTV
2015-01-02 12:25:37.000 subscription: 0037: "scan" subscribing to mux, weight: 1, adapter: "IPTV", network: "IPTV", mux: "udp://239.192.4.101(null)", hostname: "", username: "", client: "" 
2015-01-02 12:25:52.000 mpegts: udp://239.192.4.101(null) in IPTV - scan no data, failed
2015-01-02 12:25:52.000 subscription: 0037: "scan" unsubscribing

where in my clearos (centos) setup this works (only difference is IP address that is assigned to my networkcard)
Could realy use some assistance as I am not able to get this right and it keeps me from turning of the old hardware :(

Thanks in advance,
Ruud.

RE: IPTV on Ubuntu! - Added by ruud - almost 10 years ago

Just for future reference in case somebody else is strungling to get it working. Just solved it.
the cullprit was in the rp_filter of the all interface.
changed my /etc/network/if-up.d/iptv with the following information:

#!/bin/sh
# Adding additional routes on connection
route add -net 224.0.0.0 netmask 240.0.0.0 dev p4p1
route add -net 82.139.121.0 netmask 255.255.255.0 gw 10.30.252.1 dev p4p1
echo 2 > /proc/sys/net/ipv4/conf/p4p1/force_igmp_version
echo 0 > /proc/sys/net/ipv4/conf/p4p1/rp_filter
echo 1 > /proc/sys/net/ipv4/conf/p4p1/forwarding

echo 2 > /proc/sys/net/ipv4/conf/p1p1/force_igmp_version
echo 0 > /proc/sys/net/ipv4/conf/p1p1/rp_filter
echo 1 > /proc/sys/net/ipv4/conf/p1p1/forwarding

echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
echo 1 > /proc/sys/net/ipv4/conf/all/forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

and also put echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter in rc.local because it wouldn't stick.
everything working great now!

RE: IPTV on Ubuntu! - Added by Remi Os almost 10 years ago

ruud - wrote:

Just for future reference in case somebody else is strungling to get it working. Just solved it.
[...]
everything working great now!

Great to read you got it working

My Setup is Ubuntu 14.04 and have IPTV on fibre from Concepts (Telford now)

I would like to migrate from DVB-C to IPTV
Can you help me with some basics ?
(my email address is iptv<at>concepts.nl)

    (1-3/3)