Page 1 of 1

DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 3:47 pm
by marcelp1
Hi all,

I have RPi 256 (Hynix) rev. B board working with "one" 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick and TVHeadend and I love it (It runs Samba, lighttpd, minidlna as well :)

I have now tried the PVR function vie the excellent EPG (with 2TB USB powered 174c:5106 ASMedia Technology Inc. Transcend StoreJet 25M3) and access it from my Galaxy Note 10.1 via TVHGuide and various laptops at home with no problems (over internet its very unreliable) and ......

I want to cover all 6 multiplexes we have in the UK so I can use the PVR function on more multiplexes at the same time ... or watch different multiplex channels at the same time ...

Does anyone have covered all 6 multiplexes with TVHeadend and with what hardware?

This 7 port USB hub looks that it can do the job:
http://www.amazon.co.uk/Plugable-Speed- ... 009R921SE/
but I rather if some can recommend their setup please.

Same for the DVB-T USB sticks. Since I have to use USB HUB, I would like to know if anyone can recommend their brand. Is it better to invest into dual tuner or single tuner DVB-T USB in the terms of performance?

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 3:52 pm
by richardp
I have got a DVB-S card attached to a Pi (512M) and it streams 1 channel nicely.. 2 channels it breaks up and the CPU is fully utilised.

Your mileage may vary, but if the DVB-T hardware has a hardware PID filter then it should lessen the Raspberry loading. If there is only one client, then It should be fine.

I dont know how the USB data will hold up on the high data rates from 6 usb sticks! :D

Richard

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 5:40 pm
by marcelp1
richardp wrote:
Your mileage may vary, but if the DVB-T hardware has a hardware PID filter then it should lessen the Raspberry loading. If there is only one client, then It should be fine.

I don't know how the USB data will hold up on the high data rates from 6 usb sticks! :D

Richard
Hardware PID is new for me, never heard of it :(
Have been looking at different USB DVB-T cards now for past hour and hardly any mention
if they support hardware PID....my current one http://www.linuxtv.org/wiki/index.php/ITE_IT9135
has no mention of this fancy future either.

But I have noticed that I can't watch 2 channels from the same multiplex at the same time
but I could watch one channel at 3 devices at the same time with my current setup,
is it the TVHeadend or the hardware and is it connected to hardware PID?

In the HD multiplex C30 @546.0MHz at Crystal Palace there is only 5 channels 4HD
and those one acquired USB DVB-T2 would be probably mostly used so absence
of playing/recording from all 4 would be disappointing (my 72e when connected to laptop
could play any number of channels from on multiplex :(


Watching RT I get 15-20% CPU usage and I do not think that there will be more than
3 muxes at peak times (8pm-11pm) used at the same time as there is hardly anything
worth to watch and I mostly record (my own Sky alike setup, as I connect on the go to
HTS TVHeadend and mark to be recorded and watch when I want with no
extras/subscriptions to pay ;)

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 7:02 pm
by richardp
The Hardware PID filter is not a common feature of cheaper USB DVB-T sticks... but in this mode only the channel being used is sent to the Pi... in Multiplex mode the whole Mux is send to the Pi and the raspberry has to filter the unwanted channels out.

I get 50% CPU usage just watching ITV1 on DVB-S

Richard

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 8:43 pm
by marcelp1
richardp wrote:The Hardware PID filter is not a common feature of cheaper USB DVB-T sticks... but in this mode only the channel being used is sent to the Pi... in Multiplex mode the whole Mux is send to the Pi and the raspberry has to filter the unwanted channels out.

I get 50% CPU usage just watching ITV1 on DVB-S

Richard

I have just found this thread about Hardware PID:
Hardware pid filters: are they worth it?
http://www.linuxtv.org/pipermail/linux- ... html#30448

And as you said this could make a difference ;) but to find suitable USB DVB-T card with Hardware PID support may be tricky as manufacturers do not advertise it....

How would dual tuner with hardware PID perform against single tuner with hardware PID?
Would there be benefit in getting dual instead of single tuner?


Well as I said in my previous post, I can stream same channels to 3 devices at the same time at 25% CPU
[img=http://s22.postimg.org/gtymo5x0d/TVhead ... 25_CPU.jpg] but no other channels from same multiplex would work :(

I have now tried watching 3 different channels from same multiplex on MOI DVB-S2 box and that works fine with no problem
[img=http://s17.postimg.org/nkcmybp8b/TVhead ... ts_moi.jpg]


50% is quite high ...for ITV ;)

So anyone over here with 6 muxes covered on RPi and what hardware (USB HUB / DVB-T card)?

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Thu May 09, 2013 9:17 pm
by Aurelian_15
Hi,

sorry for not being 100% on topic (I haven't used Tvheadend yet), but maybe that helps you.

I've recently been using this DVB-T USB stick (runs out of the box with raspian updated to the 3.8 kernel), that has hardware PID filtering, though I haven't used the latter.

When streaming a single single stream from a single multiplex with mumudvb (which I believe to be very lightweight as it does only very little remultiplexing) already have around 20% percent CPU utilization, each additional stream increases it by 7%. That means that you should have a maximum of 5 muxes. USB shouldn't be the bottleneck, as (in theory) USB 2.0 can deliver up to 480 MBit and a single DVB-T mux has only 12 MBit (at least the three multiplexes I have here in germany do).

My solution for watching all muxes with a single tuner was to write a small node.js proxy server that handles incoming http requests and controls the mumudvb server. This way you would only need as many tuners as you have clients that want to watch channels from multiple multiplexes. As a benefit only as many tuners as required would be powered up.

As far as I can see it, Tvheadend seems to be a far more sophisitcated application, that already does what I've been programming myself, yet I fear that it may also need more resources than my setup (I haven't verified that).

Edit: Corrected the numbers above, correct is 20% not 35%. The rpi is set to "Medium" overclocking mode. Just tried tvheadend and have 20% CPU with XBMC as HTSP client -- just the same as with mumudvb.

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Sat May 18, 2013 3:53 pm
by macey
Aurelian_15 wrote:Hi,

sorry for not being 100% on topic (I haven't used Tvheadend yet), but maybe that helps you.

I've recently been using this DVB-T USB stick (runs out of the box...............
Hello,
can I ask you what software do you use for streaming?
On my old server, I used to record t/v programs using DVB-T stick and also
stream live t/v programs over the internet. I am moving to using the RasPi
as a replacement. Is that possible with this card? I used to use VLC for streaming. I am told that VLC is not suitable for the Pi.
Thanks in anticipation (Pi newbie).

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Sat May 18, 2013 4:51 pm
by marcelp1
Hi,

well I was
http://www.raspberrypi.org/phpBB3/viewt ... 84#p238484
until I have tried TVHeadend
http://coder36.blogspot.co.uk/2012/11/t ... ry-pi.html

here is what works for me:

(make sure you have firmware for your DVB card in /lib/firmware/ check your dmesg)

get the program:

Code: Select all

git clone https://github.com/tvheadend/tvheadend.git
go to the directory with install files

Code: Select all

cd tvheadend
configure the program

Code: Select all

./configure
make the program ;)

Code: Select all

make
run the program

Code: Select all

./build.linux/tvheadend -C
open web browser on your machine:

Code: Select all

http:// IP address of your Pi:9981
Configuration - General - "choose your language" - press arrow -> and Save configuration

then DVB Inputs - TV Adapters - Select TV adapter - new menu will open

General - Add DVB Network by location - YOUR DVB TRANSMITER -
then wait for
Muxes:
6
Muxes awaiting initial scan:
0

then press Map DVB services to channels


and then open VLC -> Ctrl+N
http:// your IP address of your Pi:9981/playlist/channels

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Mon Jun 10, 2013 4:10 pm
by marcelp1
I purchased second USB tuner August DVB-T205, based on rtl2832u chipset as recommended in
http://elinux.org/RPi_VerifiedPeriphera ... VB_devices (someone noted that stick works with Irish DTT service, both HD & SD, but I can get it to tune to HD mux 546000 kHz Crystal Palace) and USB Hub Plugable USB2-HUB-AG7 to accommodate for the DVB-T cards and other devices as well as power the RPi with rest of the DVB-T cards.

Plugable 7 USB port HUB, powers the RPi without any problems, plus I have connected to it:
- ID 048d:9135 Integrated Technology Express, Inc. Zolid Mini DVB-T Stick
- ID 1f4d:a803 G-Tek Electronics Group - August DVB-T205 Stick
- ID 174c:5106 ASMedia Technology Inc. Transcend StoreJet 25M3 (HDD Docking Station with 3TB HDD)
- ID 0b7a:07d0 Zeevo, Inc. Bluetooth Dongle (NOT currently in use for anything)
- ID 12d1:1c05 Huawei Technologies Co., Ltd. E173s 3G broadband stick (modem on) (NOT currently in use for anything)
- ID 2304:0236 Pinnacle Systems, Inc. PCTV 72e [DiBcom DiB7000PC] (NOT currently in use, as I luck TV cable/splitter)

My communal ariel is connected to GUE7082W Ultimate White Moulded Euro Module Twin Module TV / FM / 2 x Satellite Quadplexer in the wall socket. From there I have plugged in TV socket, 2 way splitter (Y-type) with:
- 1 (4.9mm coax cable) going direct to my TV
- 2 (4.9mm coax cable) goes into another room where the RPi is at the end of it is 2 way splitter (Y-type) connected to:
- 2.1 (4.9mm coax cable) going to Zolid Mini DVB-T Stick
- 2.2 (4.9mm coax cable) going to August DVB-T205 Stick

Now there is interesting web covering aerials and getting good signal on your TV
http://www.aerialsandtv.com/ampsandspli ... hicOfUseOf
while using the 2 x 2 way Y-type splitters have slightly decrease signal strength going to 2.1 (Zolid Mini DVB-T Stick) and 2.2 (August DVB-T205 Stick), signal quality looks to be still 100%
in my property of 55 flats so if I to connect more DVB cards I will need good quality passive splitter.

Now I have noticed that if I record/watch 2 channels from different multiplexes, RPi CPU is round 67 - 82%
so I think that maximum that RPi can handle is 3 DVB cards at once streaming/recording TV
;(

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Tue Jun 11, 2013 8:00 am
by macey
marcelp1 wrote:I purchased second USB tuner August DVB-T205, based on rtl2832u chipset .........................(
Did this work out of the box or did you have to do any driver/kernel work?
I am running kernel 3.8 13. Can anyone tell me if this card will work with this kernel?

Re: DVB-T UK all 6 muxes with TVHeadend

Posted: Tue Jun 11, 2013 12:11 pm
by marcelp1
macey wrote:
marcelp1 wrote:I purchased second USB tuner August DVB-T205, based on rtl2832u chipset .........................(
Did this work out of the box or did you have to do any driver/kernel work?
I am running kernel 3.8 13. Can anyone tell me if this card will work with this kernel?
I am running Linux RaspberryPi-256 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l GNU/Linux
and it worked because I have copied from my previous installations while playing around with all sorts of DVB cards
/lib/firmware DIR which I back up, into my current setup.

here is dmesg
[ 311.361981] usb 1-1.3.7: new high-speed USB device number 9 using dwc_otg
[ 311.474291] usb 1-1.3.7: New USB device found, idVendor=1f4d, idProduct=a803
[ 311.474348] usb 1-1.3.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 311.474392] usb 1-1.3.7: Product: RTL2838UHIDIR
[ 311.474424] usb 1-1.3.7: Manufacturer: Realtek
[ 311.474464] usb 1-1.3.7: SerialNumber: 000000041
[ 311.602446] dvb-usb: found a 'AUGUST DVB-T205' in warm state.
[ 311.650215] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 311.653064] DVB: registering new adapter (AUGUST DVB-T205)
[ 311.687849] rtl28xxu: rtl2832u_frontend_attach: FC0013 tuner found
[ 311.742145] DVB: registering adapter 1 frontend 0 (Realtek RTL2832 (DVB-T))...
[ 311.789907] fc0013: Fitipower FC0013 successfully attached.
[ 311.789962] Registered IR keymap rc-empty
[ 311.790603] input: IR-receiver inside an USB DVB receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.7/rc/rc1/input1
[ 311.796080] rc1: IR-receiver inside an USB DVB receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3.7/rc/rc1
[ 311.796110] dvb-usb: schedule remote query interval to 400 msecs.
[ 311.807695] dvb-usb: AUGUST DVB-T205 successfully initialized and connected.
[ 311.816151] usbcore: registered new interface driver dvb_usb_rtl28xxu


so you need dvb_usb_rtl28xxu driver to operate the device.