Monday, July 21, 2014

Adding SBS Adelaide Manually to TVHeadend

Recently I ordered a new USB Tv-tuner via Aliexpress. As expected it arrived without extra packaging and drivers, but complete with a tiny antenna. After some googing with the USB VID:PID ( Bus 001 Device 016: ID 15f4:0131 HanfTek ) I found some notes about support in Kernel 3.13.
Astrometa Tuner - Also supported by Kernel 3.13

So I upgraded an Eeepc I had sitting around to this kernel and the TV-Tuner card showed up. Next phase of the adventure was to share this new found tuner to the rest of the house via TV-Headend.

[12546.596154] usb 1-1: new high-speed USB device number 16 using ehci-pci
[12546.738398] usb 1-1: New USB device found, idVendor=15f4, idProduct=0131
[12546.738414] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[12546.738425] usb 1-1: Product: dvbt2
[12546.738435] usb 1-1: Manufacturer: astrometadvbt2
[12546.744405] usb 1-1: dvb_usb_v2: found a 'Astrometa DVB-T2' in warm state
[12546.812321] usb 1-1: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[12546.812379] DVB: registering new adapter (Astrometa DVB-T2)
[12546.816555] usb 1-1: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[12546.826784] r820t 6-003a: creating new instance
[12546.838662] r820t 6-003a: Rafael Micro r820t successfully identified
[12546.845398] Registered IR keymap rc-empty
[12546.845785] input: Astrometa DVB-T2 as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/rc/rc11/input33
[12546.846154] rc11: Astrometa DVB-T2 as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/rc/rc11
[12546.846621] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as /devices/virtual/input/input34
[12546.847310] rc rc11: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0
[12546.847334] usb 1-1: dvb_usb_v2: schedule remote query interval to 400 msecs
[12546.859647] usb 1-1: dvb_usb_v2: 'Astrometa DVB-T2' successfully initialized and connected

Getting TV-Head end installed via the debian repository was a breeze, just add it to apt-sources after importing the signature. Adding channels is fairly easy as well, go to the TV Adapters page, select the adapter and Add DVB Network by location, in my case this was au_Adelaide. All channels added successfully except SBS Adelaide, which seems to have changed frequencies recently. So I dug up the new frequency - 184.5MHz and decided to add the Mux by hand.

Basic Tv-Tuner page for TV-Headend

Just the centre frequency and bandwidth are required, everything else can be left on "Auto".
Adding SBS Adelaide MUX by hand
Adelaide DVB-T channel list (including retuned SBS)

After the MUX shows up in the list, press play and this will scan the MUX and auto-add channels. These channels however will be nameless and require "Map DVB services to channels" in the main page to be named properly. Afterwards the full channel list including SBS Adelaide looks something like below. From there it is just a matter of hooking it up to VLC or XBMC. Happy Tour-de-France watching and recording ahead.
SBS Via TV-Headend into VLC