Difference between revisions of "SureWest IPTV"

From MythTV Official Wiki
Jump to: navigation, search
(Oops, wrong netmask)
(Cable Box Setup)
Line 13: Line 13:
 
* Switch your system to use IGMP v2:
 
* Switch your system to use IGMP v2:
 
  echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
 
  echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
 +
* Make SURE the reverse packet filter (rp_filter) is off (disabled):
 +
# cat /proc/sys/net/ipv4/conf/all/rp_filter
 +
1
 +
# echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
 +
# cat /proc/sys/net/ipv4/conf/all/rp_filter
 +
0
 +
Also verify that /proc/sys/net/ipv4/conf/default/rp_filter is off for your next reboot.  Packets come from someplace that is not routed to this interface, so you get nothing unless this is disabled.
 
* Unplug the network cable from your operating set-top box and plug it into your dedicated mythtv box.  Bring up the interface.
 
* Unplug the network cable from your operating set-top box and plug it into your dedicated mythtv box.  Bring up the interface.
* Verify that you can watch video.  Use "mplayer udp://225.1.100.1:2001" and watch SureWest ads for at least 10 minutes (not a joke; this is to make sure that the IGMP timeouts are all propogating properly)
+
* Verify that you can watch video.  Use "mplayer udp://225.1.100.1:2001" and watch SureWest ads for at least 10 minutes (not a joke; this is to make sure that the IGMP timeouts are all propogating properly).  If they are not, double check your IGMP version.
 
* Create an m3u file to correspond to the surewest channels.  They use group 225.1.x.y where x=c/100 and y=c%100 (using 100 instead when the result is 0).  For example, channel 1 is 225.1.100.1 and channel 255 is 225.1.2.55.  Your m3u file should look like this:
 
* Create an m3u file to correspond to the surewest channels.  They use group 225.1.x.y where x=c/100 and y=c%100 (using 100 instead when the result is 0).  For example, channel 1 is 225.1.100.1 and channel 255 is 225.1.2.55.  Your m3u file should look like this:
 
<pre>
 
<pre>

Revision as of 17:18, 23 June 2008

SureWest uses IPTV by sending the raw MPEG2TS stream directly to a UDP multicast address. This means it's relatively easy to set up mythtv. Their DVR interface is horrible, and so mythtv is a huge step up. If you order their DVR, you should be allowed to record two channels at once by setting up two identical tuners. I've had varying success with this; it works around half the time. It seems that some of the time, mythtv gets confused and records the same channel twice. Most likely this is a bug in the IPTV interface. PIP also works sometimes.

When it does work correctly, on my box, recording two channels at once makes watching a third unusable (too choppy) but with a very fast CPU and disk subsystem you might be able to record perhaps three or four channels and still watch something.

What you need

  • SureWest Fiber IPTV
  • An Amino or DVR settop box
  • A spare network port on your mythtv box (sharing with your WAN network is a very bad idea). This card needs to support software setup of the MAC address (most do).

Cable Box Setup

  • Get your cable box MAC. This is written right on the box, usually on the bottom or the side. You need it to fool SureWest that everything is coming from your registered MAC.
  • Force the MAC address on your spare network card to match the one on your set-top box.
  • Set the mythtv box to use DHCP. Do not allow dhcp to set the default route. Instead, force a route as follows (substitute ethN for the correct network card name):
route add -net 224.0.0.0/4 ethN
  • Switch your system to use IGMP v2:
echo 2 > /proc/sys/net/ipv4/conf/all/force_igmp_version
  • Make SURE the reverse packet filter (rp_filter) is off (disabled):
# cat /proc/sys/net/ipv4/conf/all/rp_filter
1
# echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
# cat /proc/sys/net/ipv4/conf/all/rp_filter
0

Also verify that /proc/sys/net/ipv4/conf/default/rp_filter is off for your next reboot. Packets come from someplace that is not routed to this interface, so you get nothing unless this is disabled.

  • Unplug the network cable from your operating set-top box and plug it into your dedicated mythtv box. Bring up the interface.
  • Verify that you can watch video. Use "mplayer udp://225.1.100.1:2001" and watch SureWest ads for at least 10 minutes (not a joke; this is to make sure that the IGMP timeouts are all propogating properly). If they are not, double check your IGMP version.
  • Create an m3u file to correspond to the surewest channels. They use group 225.1.x.y where x=c/100 and y=c%100 (using 100 instead when the result is 0). For example, channel 1 is 225.1.100.1 and channel 255 is 225.1.2.55. Your m3u file should look like this:
#EXTM3U
#EXTINF:0,1 - LOOR001
#EXTMYTHTV:xmltvid=23309
udp://225.1.100.1:2001
#EXTINF:0,2 - WGNSAT
#EXTMYTHTV:xmltvid=17098
udp://225.1.100.2:2001
#EXTINF:0,3 - KCRA
#EXTMYTHTV:xmltvid=10388
udp://225.1.100.3:2001
#EXTINF:0,4 - KQCA
#EXTMYTHTV:xmltvid=10683
udp://225.1.100.4:2001
...
  • Set up a freebox IPTV tuner in mythtv. Use the m3u file you created.
  • Set up Schedules Direct for your listings. It sure would be nice to sniff the listings too, but Schedules Direct is cheap.