tvheadend
-
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
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
Thanks in advance
- 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
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
http://forum.odroid.com/viewtopic.php?f ... 00#p160301
-
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
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?
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
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)
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.
- 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
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'
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
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
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
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.
Thank you for your help and the clear step by step explanation.
- 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
Oh okay, sorry about that I do use Debian.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
-
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
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.
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
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?==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ===
Authentication is required to start 'tvheadend.service'.
Authenticating as: ,,, (odroid)
Password:
==== AUTHENTICATION COMPLETE ===
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
- 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
Use the build script:
It will build a package in the top level directory, then install it with dpkg.
Code: Select all
./Autobuild.sh -j4-
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
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
-
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
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
(4) Get the code from tvheadend
(5) change directory to tvheadend
(6) Build tvheadend
(7) change directory to one level before
(8) Install debian package (substitute the filename of the package below)
(9) Start tvheadend as a service
(10) Enter the service into the boot process so that it starts automatically on boot; use nano or your preferred text editor
(11) In /etc/rc.local, add a trigger to tvheadend
(12) Exit ssh and go to the tvheadend webgui (where x is the IP of your C2)
(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-devCode: Select all
git clone https://github.com/tvheadend/tvheadendCode: Select all
cd tvheadendCode: Select all
AUTOBUILD_CONFIGURE_EXTRA=--disable-ffmpeg_static ./Autobuild.sh -j4Code: Select all
cd ..Code: Select all
dpkg -i tvheadend_4.3-1082~gd9f9efa_arm64.debCode: Select all
service tvheadend startCode: Select all
nano /etc/rc.localCode: Select all
sh /etc/init.d/tvheadend startCode: 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.
- 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
Nice work, it's great that you came back and documented the process for others to learn.
Who is online
Users browsing this forum: No registered users and 2 guests