tvheadend

Post Reply
Ton Rijnbeek
Posts: 9
Joined: Tue Dec 02, 2014 5:48 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

tvheadend

Post by Ton Rijnbeek »

Hallo, I replaced mine odroid U2 to an odroid C2. I loaded UBUNTU mate from the odroid image. I want to install TVheadend on this machine. Can anybody help me with finding a TVheadend package 64 bit for this machine?
Thanks in advance

User avatar
odroid
Site Admin
Posts: 42118
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 3578 times
Been thanked: 1982 times
Contact:

Re: tvheadend

Post by odroid »

meveric built and released it. But I am not sure if his deb packages can work on Ubuntu or not.
http://forum.odroid.com/viewtopic.php?f ... 00#p160301

Pepes
Posts: 99
Joined: Mon Feb 15, 2016 5:28 am
languages_spoken: Czech | English
ODROIDs: C2 and U2
Location: Prague
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by Pepes »

Why don't you compile it by yourself? :-)
It's very easy

Ton Rijnbeek
Posts: 9
Joined: Tue Dec 02, 2014 5:48 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by Ton Rijnbeek »

First of all thanks for the 2 answers. I really appreciate your help. The first answer I am not sure how to do this. Do I first have to add to my repository deb http://oph.mdrjr.net/meveric jessie main and then apt-get install tvheadend:arm64. I will try it.

The second answer "Why don't you compile it by yourself" maybe it is easy but I never did it. Is there some where a step by step instructions how to do it?

Pepes
Posts: 99
Joined: Mon Feb 15, 2016 5:28 am
languages_spoken: Czech | English
ODROIDs: C2 and U2
Location: Prague
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by Pepes »

Hello,
Step by step:

1) We need to install dependencies
sudo apt-get install cmake git libssl-dev libdvbcsa-dev ffmpeg liburiparser-dev openssl libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev dvb-apps libiconv-hook-dev

2) Now we need to download source code from tvheadend
wget https://github.com/tvheadend/tvheadend/ ... master.zip

3) We must extract it
unzip master.zip -d tvheadend

4) We're entering their folders
cd tvheadend and cd tvheadend-master

5) ./configure

6) make

Wait here for error and you need replace these two files (config.guess && config.sub) to /tvheadend-master/build.linux/ffmpeg/libtheora
Now we can again do our next step:

7) make

8) sudo make install

And that's all.

For first time you need to run it with command -C like this: tvheadend -C
You will setup first configuration through UI (IP:9981) and you will terminate it by ctrl + c and then you can run it with many options like:
a) screen -m -s tvheadend
b) tvheadend (but you need to have Putty connected all the time otherwise it will terminate)
Last edited by Pepes on Sat Nov 05, 2016 8:30 am, edited 1 time in total.

User avatar
rooted
Posts: 10545
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 818 times
Been thanked: 713 times
Contact:

Re: tvheadend

Post by rooted »

If you use the Autobuild.sh it will build a tvheadend apt package which can be installed with dpkg. This is a much better option IMO.

Instead of 6) 'make' run './Autobuild.sh'

Pepes
Posts: 99
Joined: Mon Feb 15, 2016 5:28 am
languages_spoken: Czech | English
ODROIDs: C2 and U2
Location: Prague
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by Pepes »

It doesn't support 16.04 yet. It supports Debian and earliers build of Ubuntu
As you can see here: https://github.com/tvheadend/tvheadend/ ... /Autobuild

Ton Rijnbeek
Posts: 9
Joined: Tue Dec 02, 2014 5:48 pm
languages_spoken: english
ODROIDs: Odroid U3
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by Ton Rijnbeek »

I installed it already from the repo from Meveric. It installed without problems. Now I wil try to configure the Sundtek TV stick.

Thank you for your help and the clear step by step explanation.

User avatar
rooted
Posts: 10545
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 818 times
Been thanked: 713 times
Contact:

Re: tvheadend

Post by rooted »

Pepes wrote:It doesn't support 16.04 yet. It supports Debian and earliers build of Ubuntu
As you can see here: https://github.com/tvheadend/tvheadend/ ... /Autobuild
Oh okay, sorry about that I do use Debian.

RedLineTrain
Posts: 16
Joined: Thu Dec 18, 2014 1:53 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by RedLineTrain »

I have Ubuntu 16.04.3 on Odroid C2 and was able to use Pepes's install method, slightly modified, below. However, I am unable to set it up with a tvheadend init.d script so that it runs when an ssh session is not active. When I enter "service tvheadend start," it authenticates.
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'tvheadend.service'.
Authenticating as: ,,, (odroid)
Password:
==== AUTHENTICATION COMPLETE ===
But when I try to access the tvheadend server on the web at 192.168.1.x:9981, my browser says "This site can't be reached." Any ideas for this?

In any event, here are the modified steps to install on Ubuntu 16.04.3.

1) We need to install dependencies
sudo apt-get install cmake git libssl-dev libdvbcsa-dev ffmpeg liburiparser-dev openssl libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev dvb-apps libiconv-hook-dev

2) Now we need to download source code from tvheadend
wget https://github.com/tvheadend/tvheadend/ ... master.zip

3) We must extract it
unzip master.zip -d tvheadend

4) We're entering their folders
cd tvheadend and cd tvheadend-master

5) ./configure --disable-ffmpeg_static (since currently, encoding is not supported)

6) make

7) sudo make install

User avatar
rooted
Posts: 10545
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 818 times
Been thanked: 713 times
Contact:

Re: tvheadend

Post by rooted »

Use the build script:

Code: Select all

./Autobuild.sh -j4
It will build a package in the top level directory, then install it with dpkg.

RedLineTrain
Posts: 16
Joined: Thu Dec 18, 2014 1:53 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by RedLineTrain »

Thanks, rooted. After doing the first 3 steps, then "./Autobuild.sh -j4" it is throwing the error.
fatal: Not a git repository (or any of the parent directories): .git

User avatar
rooted
Posts: 10545
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 818 times
Been thanked: 713 times
Contact:

Re: tvheadend

Post by rooted »

I guess you need to get the source with git instead of wget.

RedLineTrain
Posts: 16
Joined: Thu Dec 18, 2014 1:53 am
languages_spoken: english
ODROIDs: C1
Has thanked: 0
Been thanked: 0
Contact:

Re: tvheadend

Post by RedLineTrain »

Thanks to rooted, I was able to install. Here is documentation of the steps that I took.

(1) Install fresh image of Ubuntu 16.04.3 minimal for C2 from the Odroid web site

(2) ssh into the C2 as root

(3) Install a few needed libraries; tailor to your needs

Code: Select all

apt-get install cmake git libssl-dev libdvbcsa-dev ffmpeg liburiparser-dev openssl libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev libavresample-dev dvb-apps libiconv-hook-dev debhelper gettext python libpcre2-dev
(4) Get the code from tvheadend

Code: Select all

git clone https://github.com/tvheadend/tvheadend
(5) change directory to tvheadend

Code: Select all

cd tvheadend
(6) Build tvheadend

Code: Select all

AUTOBUILD_CONFIGURE_EXTRA=--disable-ffmpeg_static ./Autobuild.sh -j4
(7) change directory to one level before

Code: Select all

cd ..
(8) Install debian package (substitute the filename of the package below)

Code: Select all

dpkg -i tvheadend_4.3-1082~gd9f9efa_arm64.deb
(9) Start tvheadend as a service

Code: Select all

service tvheadend start
(10) Enter the service into the boot process so that it starts automatically on boot; use nano or your preferred text editor

Code: Select all

nano /etc/rc.local
(11) In /etc/rc.local, add a trigger to tvheadend

Code: Select all

sh /etc/init.d/tvheadend start
(12) Exit ssh and go to the tvheadend webgui (where x is the IP of your C2)

Code: Select all

https://192.168.1.x:9981/
Last edited by RedLineTrain on Mon Feb 19, 2018 8:07 am, edited 1 time in total.

User avatar
rooted
Posts: 10545
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 818 times
Been thanked: 713 times
Contact:

Re: tvheadend

Post by rooted »

Nice work, it's great that you came back and documented the process for others to learn.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests