DVB-T Streamer - EyeTV Netstream - Network Dual Tuner


5 posts
by marcelp1 » Tue Dec 11, 2012 1:25 pm
Hi there,

I have been trying to make PRi to work as EyeTV Netstream DTT - Network Dual Tuner for DTT / Simple.TV
or similar device, but without much luck.

First of all I wanted to ask, EyeTV Netstream DTT - Network Dual Tuner for DTT can stream
2 different channel at same time to 2 users or
1 channel and another can be recorded, but it only got one RF Input for Ariel, how does it work?

I want to be able to stream from RPi into my LAN live TV for between 4-6 users
(if RPi is capable of it, or get single RPi for each multiplex), I know there are
6 multiplexes here in the UK so I presume that I need 6 x DVB-T Digital USB TV CARD TUNERS
so any of the 6 people can watch at the same time different channel?

If so, is there a USB hub capable of running 6 DVB-T Digital USB TV CARDs and how to go about getting 6 RF feeds into those cards?
Is there a splitter or something similar to get TV signal to each DVB-T Digital USB TV CARD?

Or one DVB-T tuner can lock onto 1 multiplex and can stream/record any number of the channels from
that multiplex?

I have so far got my DVB-T Digital USB TV CARD TUNER (ITE 9135 Generic) working, according
to instructions over here to support the ITE 9135 on RPi and Rasbian distro.:

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=207519#p207519
1 download 2012-10-28-wheezy-raspbian.zip
2 unzip 2012-10-28-wheezy-raspbian.zip
3 dd bs=1M if=2012-10-28-wheezy-raspbian.img of=/dev/sdb
Watch it! Mine was /dev/sdb might be some other device in your case.
4 startup rpi
5 do the voodoo at startup (like expanding to 8Gb, setting locales etc)
6 install git:
sudo apt-get install git
7 git clone git://gist.github.com/3893319.git
8 cd 3893319
9 sudo sh get-kernel-source.sh
10 cd .. (to home/pi)
11 git clone git://linuxtv.org/media_build.git
12 wget https://raw.github.com/gist/3961778/038 ... port.patch
13 cd media_build
14 patch -p1 < ../backport.patch
15 sudo apt-get install patchutils libproc-processtable-perl
16 ./build (this is a long process :)
17 sudo make install
18 reboot

http://www.raspberrypi.org/phpBB3/viewtopic.php?p=210654#p210654
19 Download the firmware for it9135 and extract if you have TV cards with this chipset
wget http://www.ite.com.tw/uploads/firmware/ ... it9135.zip
extract the firmware
sudo dd if=dvb-usb-it9135.fw ibs=1 skip=12866 count=5817 of=dvb-usb-it9135-02.fw

20 copy this (dvb-usb-it9135-02.fw) to your default firmware location /lib/firmware
mv dvb-usb-it9135-02.fw /lib/firmware/

21 then install the w_scan
http://wirbel.htpc-forum.de/w_scan/index_en.html
sudo apt-get install w_scan

22 and get the channels.conf
mkdir ~/.tzap
w_scan -ft -c GB -X > ~/.tzap/channels.conf

23 to watch a channel you need to zap it
http://www.linuxtv.org/wiki/index.php/Zap
tzap -r Dave
or
tzap -r Dave >& /dev/null &

24 to play the channel (I am unable to verify as I have no TV :(
omxplayer -o hdmi /dev/dvb/adapter0/dvr0

but here is output with stats and it looks that it works
pi@RaspberryPi256 ~ $ omxplayer -s -o hdmi /dev/dvb/adapter0/dvr0
file : /dev/dvb/adapter0/dvr0 result 0 format mpegts audio streams 1 video streams 1 chapters 0 subtitles 0
Aspect : num 32 den 17 aspect 1.777778 display aspect 1.500000
Video codec omx-mpeg2 width 544 height 576 profile 4 fps 25.000000
Audio codec mp2 channels 2 samplerate 48000 bitspersample 16
Subtitle count : 0 state off : index 0
strg-c catched 4915200 4915200 A : 678967.64 1.98 Cv : 531707 Ca : 29568

have a nice day ;)

25 now the part I really want to get working on the Rpi
sudo apt-get install vlc

pi@RaspberryPi256 ~ $ cvlc -I ncurses .azap/channels.conf --sout "#standard{access=http,mux=ts,dst=:8081}"
VLC media player 2.0.3 Twoflower (revision 2.0.2-93-g77aa89e)
[0x18b3e28] inhibit interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[0x18b3e28] main interface error: no suitable interface module
[0x18b4570] main interface error: no suitable interface module
[0x18938f0] main libvlc error: interface "globalhotkeys,none" initialization failed


And if it could have a Live Pause like the Sky Box has so the adverts can be skipped
that would be brilliant :)
Posts: 111
Joined: Mon Jun 11, 2012 8:41 pm
by marcelp1 » Thu Dec 20, 2012 10:19 am
So I have found a 6 Way Splitter TV Freeview Cable Eurovox DBox
http://www.ebay.co.uk/itm/6-Way-Splitter-TV-Freeview-Cable-Eurovox-DBox-Virgin-/310148771358
so TV signal can be split from the main TV feed into 6 USB DVB-T
dongles.

There is quite few USB hubs with 7 ports to power all 6 USB DVB-T
dongles .......
http://elinux.org/RPi_VerifiedPeripherals#Powered_USB_Hubs

So now the technical bit, anyone? ......
Posts: 111
Joined: Mon Jun 11, 2012 8:41 pm
by marcelp1 » Thu Dec 20, 2012 8:28 pm
marcelp1 wrote:So I have found a 6 Way Splitter TV Freeview Cable Eurovox DBox
http://www.ebay.co.uk/itm/6-Way-Splitter-TV-Freeview-Cable-Eurovox-DBox-Virgin-/310148771358
so TV signal can be split from the main TV feed into 6 USB DVB-T
dongles.

There is quite few USB hubs with 7 ports to power all 6 USB DVB-T
dongles .......
http://elinux.org/RPi_VerifiedPeripherals#Powered_USB_Hubs

So now the technical bit, anyone? ......


Found it all in the 3 articles over here, that bloke is absolute genius:
http://angrytechnician.wordpress.com/2010/07/23/how-to-stream-every-channel-from-freeview-onto-your-network/
http://angrytechnician.wordpress.com/2011/10/25/how-to-stream-freeview-hd-dvb-t2-over-multicast-using-dvblast-you-idiots/
https://angrytechnician.wordpress.com/2012/07/31/converting-your-multicast-iptv-freeview-to-http-unicast-using-udpxy/

I got home Old Netgear FS 608 and was thinking of replacing it with something newer with IGMP filtering or IGMP snooping and Gigabit, anyone any ideas?
Posts: 111
Joined: Mon Jun 11, 2012 8:41 pm
by marcelp1 » Sun Mar 17, 2013 1:53 pm
So I had finally time to play around with streaming the TV more,
here is what I did:

nano /home/pi/m490000.cfg
;Multiplex 490000000 TV

;BBC One
239.255.255.1:5004 1 4164
;BBC Two
239.255.255.2:5004 1 4287
;BBC Three
239.255.255.3:5004 1 4288
;BBC Four
239.255.255.4:5004 1 4544
;BBC Red Button
239.255.255.5:5004 1 4416
;CBBC Channel
239.255.255.6:5004 1 4608
;CBeebies
239.255.255.7:5004 1 4672
;BBC News
239.255.255.8:5004 1 4352
;BBC Parliament
239.255.255.9:5004 1 4736



dvblast -a 0 -c /home/pi/m490000.cfg -f 490000000 -m qam_64 -b 8 -e

I can tune into the channels:
rtp://@239.255.255.9:5004

but picture / sounds stutter a loot with dvblast, CPU is at nearly 100%,
but when playing straight from RPi to TV

tzap -r "BBC Parliament"
omxplayer -o hdmi /dev/dvb/adapter0/dvr0

picture / sound work great and CPU is round 22.7%


So I have tried MuMuDVB,

sudo apt-get install mumudvb dvbtune dvb-utils

check out the examples in :
/usr/share/doc/mumudvb/configuration_examples
autoconf_full.conf
autoconf_partial.conf
dvb-s2.conf
example.conf
ipv6.conf

and manual page:
http://mumudvb.braice.net/mumudvb/doc/m ... _CONF.html

so below should do:

sudo mkdir /etc/mumudvb
sudo nano /etc/mumudvb/490000.conf
autoconfiguration=2
freq=490000


mumudvb -vvv -t -s -d -c /etc/mumudvb/490000.conf

so I get:
Info: DVB: ts_discontinuities 0
Deb2: DVB: Timing: ioctls took 5537 micro seconds
Info: Main: Traffic : 2831.00 kb/s for channel "BBC ONE"
Info: Main: Traffic : 2609.51 kb/s for channel "BBC TWO"
Info: Main: Traffic : 738.66 kb/s for channel "BBC THREE"
Info: Main: Traffic : 1369.80 kb/s for channel "BBC NEWS"
Info: Main: Traffic : 723.61 kb/s for channel "BBC Red Button"
Info: Main: Traffic : 737.59 kb/s for channel "BBC FOUR"
Info: Main: Traffic : 3539.56 kb/s for channel "CBBC Channel"
Info: Main: Traffic : 4012.65 kb/s for channel "CBeebies"
Info: Main: Traffic : 1307.44 kb/s for channel "BBC Parliament"
Info: Main: Traffic : 3509.45 kb/s for channel "301"
Info: Main: Traffic : 726.84 kb/s for channel "302"
Info: DVB: Bit error rate: 0 Signal strength: 61602 SNR: 65535 Uncorrected blocks: 60022
Info: DVB: ts_discontinuities 0
Deb2: DVB: Timing: ioctls took 6076 micro seconds

and CPU is at 100% but it's the same thing, when trying to watch any of the channels
I get loots of stutter :( not quality that can be watched.

udp://@239.100.0.8:1234



Anyone had any luck with streaming DVB in home LAN?

My RPi is the 256 model with licence for MPG2 nad WVC1,
arm_freq=950 and gpu_mem=128
Posts: 111
Joined: Mon Jun 11, 2012 8:41 pm
by marcelp1 » Mon Apr 01, 2013 6:55 pm
Ok,

finally it works no stutter.
I have noticed that HTS Tvheadend is the same as provided in TBS Technologies
Sat TV Streamer Box - MOI
http://www.tbsdtv.com/launch/moi-dvb-s2 ... g-box.html

here is hot to set it up:
$ wget https://github.com/downloads/tvheadend/ ... .18.tar.gz
$ tar -xzvf tvheadend-3.2.18.tar.gz
$ cd tvheadend-3.2.18
$ ./configure
$ make

$ cd /home/pip/tvheadend-3.2.18
$ ./build.linux/tvheadend -C


http://hostname:9981/

Will then play flawlessly BBC One :)
http://hostname:9981/stream/service/_de ... 00000_1044


I have as well updated the firmware of Raspberry Pi:
sudo apt-get install ntpdate
sudo apt-get install git-core
sudo ntpdate -u ntp.ubuntu.com
sudo apt-get install ca-certificates
sudo wget http://goo.gl/1BOfJ -O /usr/bin/rpi-update && sudo chmod +x /usr/bin/rpi-update
sudo rpi-update
sudo reboot
Posts: 111
Joined: Mon Jun 11, 2012 8:41 pm