ChicagoBob123
Posts: 79
Joined: Fri Aug 30, 2013 1:48 pm

Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 4:00 pm

I am a real newbie to Linux everything seems like such a struggle.
Does anyone have a how to install and compile TVHeadEnd on the pi guide?
Will I need the MPEG codecs if I have a HDHomerun and just want to record TV?

Thanks for any guidance.
Bob

fruitoftheloom
Posts: 21972
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 6:02 pm

ChicagoBob123 wrote:I am a real newbie to Linux everything seems like such a struggle.
Does anyone have a how to install and compile TVHeadEnd on the pi guide?
Will I need the MPEG codecs if I have a HDHomerun and just want to record TV?

Thanks for any guidance.
Bob
It would help if you let us know the Linux operating system you have installed.

TVHeadEnd is usually used with RaspBMC or OpenElec http://wiki.openelec.tv/index.php/Configuring_Tvheadend


See: https://blog.kingj.net/2014/03/16/how-t ... pberry-pis

Buy a USB TV Tuner based on a Realtek RTL2832u Chipset and yes it is worth buying codes they are are only a few £££'s
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

ChicagoBob123
Posts: 79
Joined: Fri Aug 30, 2013 1:48 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 6:52 pm

I just installed Raspbian Debian Wheezy September 2014 release date 2014-09-09 thats all.
I have no issue with installing OpenELEC instead.
I am not sure why it would matter but don't mind if that's whats needed.

You do understand I do not have the TVHeadEnd BACK END software installed.
The wiki always start out with something like install TVHeadEnd then here is how to configure it.
Well I can't get step one install TVHeadEnd.
That is what I dont know how to do. From reading the TVHeadEnd site you need to
download source and compile. This is pretty much out of my meager Linux skills
without a line by line how to.

DirkS
Posts: 10195
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 7:01 pm

From the tvheadend website:
Tvheadend is a TV streaming server for Linux supporting DVB-S, DVB-S2, DVB-C, DVB-T, ATSC, IPTV, and Analog video (V4L) as input sources.
For viewing, recording, etc you will need additional software. XBMC (Raspbmc, Openelec, etc) have plugins that can do exactly that.

For what exactly do you want to use tvheadend?

Gr.
Dirk.

ChicagoBob123
Posts: 79
Joined: Fri Aug 30, 2013 1:48 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 7:18 pm

>>XBMC (Raspbmc, Openelec, etc) have plugins that can do exactly that.
XBMC has client plugins but they connect to a TVHeadEnd back end.
(unless the Raspberry Pi version has this I am using the PC/Windows version of XBMC)
Basically I want a headless PI using TVHeadEnd to record Live TV
streams that my HDHomeRun produces. A simple DVR (Digital Video recorder) .
I then want to play those recorded files to a local disk via VLC, XBMC or whatever.
So a format such as MPG2 or MP4 would be great.

fruitoftheloom
Posts: 21972
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 8:08 pm

ChicagoBob123 wrote:>>XBMC (Raspbmc, Openelec, etc) have plugins that can do exactly that.
XBMC has client plugins but they connect to a TVHeadEnd back end.
(unless the Raspberry Pi version has this I am using the PC/Windows version of XBMC)
Basically I want a headless PI using TVHeadEnd to record Live TV
streams that my HDHomeRun produces. A simple DVR (Digital Video recorder) .
I then want to play those recorded files to a local disk via VLC, XBMC or whatever.
So a format such as MPG2 or MP4 would be great.
OpenElec is a Linux/XBMC operating system, and is more suited to your requirements and did you read the previous links I posted ?

http://wiki.openelec.tv/index.php?title ... spberry_Pi
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

ChicagoBob123
Posts: 79
Joined: Fri Aug 30, 2013 1:48 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 8:35 pm

OpenELEC currently ships with Tvheadend 3.4 backend software.

Obviously not well enough. :oops:
I will install OpenELEC tonight and hopefully have this thing running
in a day or so.

fruitoftheloom
Posts: 21972
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Oct 06, 2014 9:03 pm

http://www.ebay.co.uk/itm/USB-DVB-T-DON ... 0714756465

These TV Tuners are supposed to work with the RPi, but as yet I have never tested...
Retired disgracefully.....
......to an uncomplicated life !

Rather than negativity think outside the box !

ChicagoBob123
Posts: 79
Joined: Fri Aug 30, 2013 1:48 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Tue Oct 14, 2014 4:08 pm

I have installed OpenElec from the raspberry pi site but this is an old version.
TVHeadEnd according to documentation does not work with US/ATSC data.
At least thats what I am reading and finding out. I was able to install an image of TVHeadEnd onto the OpenElec 4.1.2 version but it did not map channels.
I have truly failed at doing a simple thing, connecting my HDHomeRun Dual ATSC video and map channels and use TVHeadEnd.
I am scrapping the entire TVHeadEnd and trying MythTV if that doesnt work I will end up scrapping the PI as a PVR.
I thought this would be a simple project MAN O MAN was I wrong.

FastEddieInAustin
Posts: 5
Joined: Mon Mar 16, 2015 11:31 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Fri Mar 20, 2015 4:06 pm

Despite the wiki saying that TVHeadEnd Backend is included with OpenELEC, it is NOT. The wiki is setup as of today's date in such a way as to not allow new people to register so there is no way to correct the incorrect information. If you look high and low you will find some postings in the forum and one on the 5.0.x release where they mention this...usually pretty "matter of fact" like someone new to the software should just know that the wiki is wrong...

kphammond9
Posts: 19
Joined: Sat Apr 05, 2014 5:01 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Wed Apr 01, 2015 1:57 pm

"Despite the wiki saying that TVHeadEnd Backend is included with OpenELEC, it is NOT."

That is actually not accurate either, it is included in the Openelec unofficial repository. It's tricky to install, but if you go to addons => get more => openelec unofficial repository, you'll find the tvheadend server in there. I'm quoting the path from memory, so it might not be 100% spot on, but dig around, you'll find it. I set it up last week, so I know it's in the latest Openelec disk images and is working.

"I am scrapping the entire TVHeadEnd and trying MythTV if that doesnt work I will end up scrapping the PI as a PVR."

ChicagoBob123, it's a bummer to hear that. I know first-hand how frustrating a project it can be, but I've learned a ton doing it and it has been rewarding. If you have any questions, let me know and I can walk you through the Tvheadend setup, provided we have similar configurations. I'm using an HDHomerun Dual ATSC tuner, a RasPi B+ with TVHeadend serving as the backend, and two RasPi B frontends (one for each TV) running Openelec.

My setup is "working," in that it is doing what it is supposed to do, but the RasPi B+ I'm using as a backend is not quite able to serve two HD clients. It works, but there is a lot of pixelization and stuttering. I can do 1 1080i stream and 1 SD stream just fine, so I'm gradually ratcheting up my overclock settings to see if it will handle it. But I'm thinking that I'll just bite the bullet and swap out the B+ with a RasPi2. I was using my Win7 PC with Windows Media Center prior to this, so I know that will work as a backend, too.

JBaldric
Posts: 1
Joined: Fri Apr 03, 2015 10:53 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Fri Apr 03, 2015 10:59 pm

kphammond9 , read your post ... cannot find the TVHeadEnd Backend to which you referred .... can you be more specific as to the location?

I'm trying to do a similar thing only with a RPi 2

Also ... could each RPi 2 support both back and front end?

Any help would be appreciated .... cheers

JB

kphammond9
Posts: 19
Joined: Sat Apr 05, 2014 5:01 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Sat Apr 04, 2015 3:52 am

JBaldric wrote:kphammond9 , read your post ... cannot find the TVHeadEnd Backend to which you referred .... can you be more specific as to the location?

I'm trying to do a similar thing only with a RPi 2

Also ... could each RPi 2 support both back and front end?

Any help would be appreciated .... cheers

JB
I'm not at home, or I would load it up. But from memory, if you go to the settings menu => add ons => get more, you should see an openelec unofficial repository. Of course, it depends on how recent your install is. The tvheadend backend should be listed under services.
I'm also in the middle of setting up a pi2 to serve as a backend. I tried to do it with the b+ and, even though it worked, the b+ couldn't handle 2 hd clients at the same time. I'm hoping the pi2 can. As for Whether it can do double duty as a front and backend, I don't know. If you have the inclination to try it out, I'd be curious to know.
Any reason why you would want 2 separate backends?

beta-tester
Posts: 1334
Joined: Fri Jan 04, 2013 1:57 pm
Location: de_DE

Re: Help - How to install and compile TVHeadEnd BACK END

Sat Apr 04, 2015 3:49 pm

oooh, i can remember how stupid i was with installing TVHeadEnd server & client.
but thanks to the freenode.net IRC #openelec i could get it installed and work.

- my first problem was, i had no idea, how DVB worked on Linux.
- then, how to find the TVHeadEnd server (or better, how to enable unofficial addons on OpenELEC)
enable unoffician repository... stupid me, first, i did not understand, that i only have to scroll down to see the screenshots to follow the steps... :oops: :lol:
- after the unofficial addons was enabled, and tvheadend was installed, the second stupisity of me was how to scan for channels in OpenELEC...
not in OpenELEC UI at all !
- use the browser from an other computer and browse into your OpenELEC
http ://<your RPi's IP>:9981
(don't forget :9981 to specify the port)
- and then the huge heavy load of options on that many panels ...
- Configurations -> DVB Inputs -> Networks -> [Add] + [Save] -> [Force Scan]
- Configurations -> DVB Inputs -> Services -> [Map All]
- reboot OpenELEC

poooh, it was a looong painful way, but at the end everything wents good. i don't want to miss TVHeadEnd on OpenELEC.
and a huge ammount of stupisity of me, was reason, why it was so painful to me (blame myself)
{ I only give negative feedback }
RPi B (256MB), B (512MB), B+, ZeroW; 2B; 3B, 3B+; 4B (4GB)

kphammond9
Posts: 19
Joined: Sat Apr 05, 2014 5:01 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Tue Apr 07, 2015 2:10 pm

JBaldric wrote:kphammond9 , read your post ... cannot find the TVHeadEnd Backend to which you referred .... can you be more specific as to the location?
JB
I got the RPi2 up and running with tvheadend and it works great. It's funny, though... I went back and tried to enable it with openelec and I couldn't figure it out either. I've totally done it before, but it just wasn't working. I located the unofficial repository, but it didn't want to load. I scrapped that idea and ended up using OSMC, which is the new incarnation of Raspbmc. I had to follow the instructions here:
https://discourse.osmc.tv/t/osmc-rc-una ... nd/1608/13
The version in the OSMC app store is broken, but if you build it yourself (which is not all that hard), it works. Just start with a fresh OSMC image and follow the instructions. Be sure to include the hdhomerun parts if you are using one of their tuners (like I am).

erpulido84
Posts: 1
Joined: Tue Jan 26, 2016 10:33 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Tue Jan 26, 2016 11:35 pm

I am having problems getting TVHeadend to detect the tuners on my HDHomerun Prime.
The following includes the steps I am using with errors I get in paranthesis in the last section installing dvbhdhomerun.

Update:

1. apt-get update
2. apt-get upgrade

-------------------------------------------

install dev dependencies

1. apt-get install cvs build-essential cmake

-------------------------------------------
install Tvheadend

1. repo key: curl http://apt.tvheadend.org/repo.gpg.key | apt-key add -
2. append /etc/apt/sources.list with deb http://apt.tvheadend.org/stable wheezy main
3. apt-get update; apt-get install tvheadend
-------------------------------------------
install SiliconDust drivers

cd #
mkdir HDHomerun

Download Drivers:

1. wget http://download.silicondust.com/hdhomer ... 150826.tgz
2. wget http://download.silicondust.com/hdhomer ... 150826.tgz

Extract both libhdhomerun and hdhomerun_config_gui to the same directory, e.g.:

1. tar xvzf libhdhomerun_20150826.tgz
2. tar xvzf hdhomerun_config_gui_20150826.tgz


From the hdhomerun_config_gui directory, run:

1. cd hdhomerun_config_gui/
2. sudo apt-get install libgtk2.0-dev
3. ./configure
4. make
5. sudo make install
6. sudo ldconfig

-------------------------------------------
install dvbhdhomerun:

1. cd /usr/HDHomerun/
2. sudo apt-get install cmake libhdhomerun-dev dkms dh-systemd module-assistant
3. git clone https://github.com/h0tw1r3/dvbhdhomerun
4. cd dvbhdhomerun

# Build and install the kernel module
1. cd kernel
2. make
3. sudo make install
4. sudo modprobe dvb_hdhomerun (This fails with: modprobe: ERROR: could not insert 'dvb_hdhomerun': Invalid argument)
5. cd ..

-------------------------------------------

kphammond9
Posts: 19
Joined: Sat Apr 05, 2014 5:01 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Wed Jan 27, 2016 5:27 am

I've only ever been able to get the hdhomerun tuner working with kodi installed. I suspect that the drivers are packaged in there somewhere. I tried a clean wheezy install and could never get it going. The osmc forum link I posted above worked for me, although it was, admittedly, a while ago.

jayt80
Posts: 22
Joined: Tue Nov 08, 2016 11:53 pm

Re: Help - How to install and compile TVHeadEnd BACK END

Mon Jun 12, 2017 3:20 am

Did you ever manage to get this to work?
erpulido84 wrote:I am having problems getting TVHeadend to detect the tuners on my HDHomerun Prime.
The following includes the steps I am using with errors I get in paranthesis in the last section installing dvbhdhomerun.

Update:

1. apt-get update
2. apt-get upgrade

-------------------------------------------

install dev dependencies

1. apt-get install cvs build-essential cmake

-------------------------------------------
install Tvheadend

1. repo key: curl http://apt.tvheadend.org/repo.gpg.key | apt-key add -
2. append /etc/apt/sources.list with deb http://apt.tvheadend.org/stable wheezy main
3. apt-get update; apt-get install tvheadend
-------------------------------------------
install SiliconDust drivers

cd #
mkdir HDHomerun

Download Drivers:

1. wget http://download.silicondust.com/hdhomer ... 150826.tgz
2. wget http://download.silicondust.com/hdhomer ... 150826.tgz

Extract both libhdhomerun and hdhomerun_config_gui to the same directory, e.g.:

1. tar xvzf libhdhomerun_20150826.tgz
2. tar xvzf hdhomerun_config_gui_20150826.tgz


From the hdhomerun_config_gui directory, run:

1. cd hdhomerun_config_gui/
2. sudo apt-get install libgtk2.0-dev
3. ./configure
4. make
5. sudo make install
6. sudo ldconfig

-------------------------------------------
install dvbhdhomerun:

1. cd /usr/HDHomerun/
2. sudo apt-get install cmake libhdhomerun-dev dkms dh-systemd module-assistant
3. git clone https://github.com/h0tw1r3/dvbhdhomerun
4. cd dvbhdhomerun

# Build and install the kernel module
1. cd kernel
2. make
3. sudo make install
4. sudo modprobe dvb_hdhomerun (This fails with: modprobe: ERROR: could not insert 'dvb_hdhomerun': Invalid argument)
5. cd ..

-------------------------------------------

Return to “Beginners”