[Unofficial] Raspberry Pi / armhf builds

Added by Jonathan Thomson about 1 year ago

As a way of giving something back to the community, I have set up a bintray repository for some Raspberry Pi / armhf builds of TVHeadend. I am by no means promising to keep this bang up to date, but I'll add releases as and when I can.

Check the changelog below for details about what packages are in this repository - the aim is to maintain a stable and unstable branch.

I have implemented a BuildBot script on the Pi that is building these files. The purpose of the BuildBot is to check out the new code, compile it into a redistributable Debian (.deb) archive and automatically publish it to Bintray. This is an ALPHA-like trial at the moment as I need to wait for a change to the 4.1 branch to check that it works end-to-end. The benefit of this is that new builds will be uploaded to Bintray within 24 hours of the code being added to Github - I'll review these timings later providing the script works as expected, with the aim of doing 4 build cycles per branch (4 stable and 4 unstable) per day - that will cut the 24 hour wait down to a maximum of 8 hours delay between Github and my Bintray repository.

To set up my this repository;

$ sudo nano /etc/apt/sources.list

add the following to the sources.list file

deb https://dl.bintray.com/djbenson/deb wheezy stable (for the stable wheezy branch)
deb https://dl.bintray.com/djbenson/deb wheezy unstable (for the unstable/nightly wheezy branch)

NOTE: Remember, even if you are running Jessie, you MUST add the wheezy repository to get my builds. I will move to Jessie at some point but for now wheezy builds work fine on Jessie and cover the two most used Raspbery Pi operating systems in use at the moment.

Save and exit (CTRL+O then CTRL+X)

The following may be necessary on a clean Debian install (thanks to Mike Somerville for this tip)

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61

This adds the keys required to download software from bintray without receiving signature errors.

$ sudo apt-get update
$ sudo apt-get install tvheadend

If you get an error like this;

E: The method driver /usr/lib/apt/methods/https could not be found.
N: Is the package apt-transport-https installed?

Then run

$ sudo apt-get install apt-transport-https

Then run the above commands again.

You may get a package verification error - until I work out how to fix that, simply enter "Y" at the prompt.

Some caveats/useful information:
  1. This repository supports only armhf builds at the moment
  2. Regardless of whether you are running Wheezy or Jessie, you MUST enable only the wheezy branch to receive my builds
  3. Both stable (4.0) and unstable/git-master (4.1) branches are supported
  4. Binaries are now compiled on native Raspberry Pi hardware (Pi 1 B+) using Raspbian Wheezy, cross-compilation caused me too many headaches
  5. Due to a bug in the GCC compiler, ffmpeg_static is disabled in my builds. This shouldn't cause many issues as the Pi (even version 3) is low-powered and not really capable of reliable transcoding duties. I think (but cannot confirm) that TVHeadend will use ffmpeg if it's installed on your system despite it not being compiled into the TVHeadend binary (if somebody can confirm this I'd appreciate it)
--prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --libexecdir=${prefix}/lib/tvheadend --disable-maintainer-mode --disable-dependency-tracking --disable-ffmpeg_static --enable-hdhomerun_static --enable-dvbcsa --enable-bundle

Changelog (As of 2016-11-24, builds are added to Bintray automatically so this changelog will no longer be updated with build-specific information)

2016-11-24 Enabled automated build/deployment script which will take care of adding new builds to Bintray
2016-11-23 Switched to native Raspbery Pi hardware (Pi v1 B+) instead of cross-compiling
2016-11-22 armhf build 4.1-2331-gf2371cf added to the repository
           armhf build 4.1-2330~g3a113b6 added to the repository
2016-11-18 armhf build 4.0.9-13~g64fec81 added to the repository
           armhf build 4.1-2328~gca5f094 added to the repository (see note on page 2!)
2016-09-07 armhf build 4.0.9-12~ge5400e2 added to the repository
2016-09-06 only wheezy builds will be published going forward
2016-09-06 armhf build 4.1-2236~g817f67e added to the repository
2016-07-21 armhf build 4.1-2141~g01c26fc~jessie added to repository
2016-07-19 armhf build 4.1-2141~g01c26fc added to repository
2016-07-01 armhf build 4.1-2140~gf34fac1 added to repository
2016-06-30 armhf build 4.1-2135~g631b6b5 added to repository
           armhf build 4.0.9-5~g4749320 added to repository


Replies (95)

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Thomas Graf 5 months ago

Tvheadend 4.2.1 final out now. Any chance to bring up the automatic build process again?
Thx for you work until now :)

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Thomas Graf wrote:

Tvheadend 4.2.1 final out now. Any chance to bring up the automatic build process again?
Thx for you work until now :)

Hello,

I built a deb package on my armhf board (CubieBoard 1) running Debian Jessie. You can find it in attachement (SHA1 checksum is : 761e72965eb9a6d3ef3dd8d95a3ebe5f3c2e83fc ).

I downloaded source here : [[https://github.com/tvheadend/tvheadend/releases/tag/v4.2.1]] and used command line given above to build it :

AUTOBUILD_CONFIGURE_EXTRA=--prefix=/usr\ --includedir=${prefix}/include\ --mandir=${prefix}/share/man\ --infodir=${prefix}/share/info\ --sysconfdir=/etc\ --localstatedir=/var\ --disable-silent-rules\ --libexecdir=${prefix}/lib/tvheadend\ --disable-maintainer-mode\ --disable-dependency-tracking\ --disable-ffmpeg_static\ --enable-hdhomerun_static\ --enable-dvbcsa\ --enable-bundle ./Autobuild.sh 

Be warned that I didn't installed it on my board as 4.1 build works great (and I spent too much time to break it one more time _ ).

So if you try it successfully please be kind to report it here.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Hello,

So I finally install my build (via dpkg) upon 4.1 version. Everything went straight and I didn't loose anything.

If someone else try it, please report here. I may apply to tvheadend team for official build.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Mark Clarkstone 4 months ago

Lionel SANCHEZ wrote:

Hello,

So I finally install my build (via dpkg) upon 4.1 version. Everything went straight and I didn't loose anything.

If someone else try it, please report here. I may apply to tvheadend team for official build.

I'm currently working on stop-gap (until doozer has support) builds for Raspbian using a spare Pi of mine - I'll try to upload them to bintray once I'm happy with the way they're built.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Mark Clarkstone wrote:

I'm currently working on stop-gap (until doozer has support) builds for Raspbian using a spare Pi of mine - I'll try to upload them to bintray once I'm happy with the way they're built.

That would be great! Thanks for your support.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

Lionel SANCHEZ wrote:

Hello,

So I finally install my build (via dpkg) upon 4.1 version. Everything went straight and I didn't loose anything.

If someone else try it, please report here. I may apply to tvheadend team for official build.

Enjoy!

Trying to install on a Pi3 I get the following error:

Unpacking tvheadend (4.2.1) over (4.1-2332~g38c9e89) ...
dpkg: dependency problems prevent configuration of tvheadend:
tvheadend depends on dvb-apps; however:
Package dvb-apps is not installed.

dpkg: error processing package tvheadend (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
tvheadend

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

a a wrote:

Lionel SANCHEZ wrote:

Hello,

So I finally install my build (via dpkg) upon 4.1 version. Everything went straight and I didn't loose anything.

If someone else try it, please report here. I may apply to tvheadend team for official build.

Enjoy!

Trying to install on a Pi3 I get the following error:

Unpacking tvheadend (4.2.1) over (4.1-2332~g38c9e89) ...
dpkg: dependency problems prevent configuration of tvheadend:
tvheadend depends on dvb-apps; however:
Package dvb-apps is not installed.

dpkg: error processing package tvheadend (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (215-17+deb8u7) ...
Errors were encountered while processing:
tvheadend

I guess you have to install dvb-apps. I thought dpkg includes dependencies.
Sorry for inconvenience.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Philippe Plantegenest 4 months ago

Hello Lionel,

First, i would like to tanks you for your jod, very helpful.
Second, I'm French so excuse my English some time..:)
Third :

I'm running my pi3 with Osmc kodi 17.1
I have successfully installed tvheadend 4.1-2332
I'm using it to stream and record iptv only, I don't have any dvb card connected

I'm facing a problem with that version, some time (randomly) the stream goes to 0 and I have to switch the channel to another and back to have the stream back. If I'm recording the stream, the record goes to the end with no errors but I'm missing all from the freeze ... Look's like bug #3843.

So I've decided to install 4.2 with dpkg and the deb you give. I have installed dvb-apps so everything's goes well on the installation.

BUT after the install I have no acces to tvheadend neither by html 9981 or frontend 9982.
My browser respond me that the server refused the connection

So I'm stuck at that point..

Hopefully I've done a copy of my SD before attempting that so I can revert back. I have done to unsuccefull try this morning.

If you have any suggest, I'll be glad to hear from you about

Thanks again

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Philippe Plantegenest wrote:

Hello Lionel,

First, i would like to tanks you for your jod, very helpful.
Second, I'm French so excuse my English some time..:)
Third :

I'm running my pi3 with Osmc kodi 17.1
I have successfully installed tvheadend 4.1-2332
I'm using it to stream and record iptv only, I don't have any dvb card connected

I'm facing a problem with that version, some time (randomly) the stream goes to 0 and I have to switch the channel to another and back to have the stream back. If I'm recording the stream, the record goes to the end with no errors but I'm missing all from the freeze ... Look's like bug #3843.

So I've decided to install 4.2 with dpkg and the deb you give. I have installed dvb-apps so everything's goes well on the installation.

BUT after the install I have no acces to tvheadend neither by html 9981 or frontend 9982.
My browser respond me that the server refused the connection

So I'm stuck at that point..

Hopefully I've done a copy of my SD before attempting that so I can revert back. I have done to unsuccefull try this morning.

If you have any suggest, I'll be glad to hear from you about

Thanks again

Hello Philippe,

I'm French too so I guess we should understand our english mistakes. :D

I think you're streaming Free IPTV streams right ? I tried before switching to another ISP but really shortly and on tvheadend-4.1 version so I can't help you here.

About your tvheadend issue : is your tvheadend service running ("service tvheadend status" on command line)? Can you stop it and launch tvheadend on command line to see if you have warnings or errors? Had you created some users to access tvheadend?

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Philippe Plantegenest 4 months ago

Hello Philippe,

I'm French too so I guess we should understand our english mistakes. :D

I think you're streaming Free IPTV streams right ? I tried before switching to another ISP but really shortly and on tvheadend-4.1 version so I can't help you here.

About your tvheadend issue : is your tvheadend service running ("service tvheadend status" on command line)? Can you stop it and launch tvheadend on command line to see if you have warnings or errors? Had you created some users to access tvheadend?

Enjoy!

No it's not free iptv,

And about tvheadend 4.2 installation, I have done like you, I've installed it over 4.1

Yes tvheadend is up, I can stop and start without error..

And do I have to recreate users since I installed over 4.1 ?

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Philippe Plantegenest wrote:

Hello Philippe,

I'm French too so I guess we should understand our english mistakes. :D

I think you're streaming Free IPTV streams right ? I tried before switching to another ISP but really shortly and on tvheadend-4.1 version so I can't help you here.

About your tvheadend issue : is your tvheadend service running ("service tvheadend status" on command line)? Can you stop it and launch tvheadend on command line to see if you have warnings or errors? Had you created some users to access tvheadend?

Enjoy!

No it's not free iptv,

And about tvheadend 4.2 installation, I have done like you, I've installed it over 4.1

Yes tvheadend is up, I can stop and start without error..

And do I have to recreate users since I installed over 4.1 ?

No you don't have to recreate users.

Can you stop the tvheadend service and change "TVH_DEBUG" argument to "1" on "/etc/default/tvheadend" and share restart log?

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

I have the same issue, the service does not start even when executing sudo /etc/init.d/tvheadend start

[email protected]:~ $ sudo /etc/init.d/tvheadend start
[ ok ] Starting tvheadend (via systemctl): tvheadend.service.

I confirmed not running with top command.
So localhost:9981 will not load

dpkg -l | grep ii | less
Shows installed package
ii tvheadend 4.2.1 armhf Tvheadend

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

Lionel SANCHEZ wrote:

Can you stop the tvheadend service and change "TVH_DEBUG" argument to "1" on "/etc/default/tvheadend" and share restart log?

Nothing appears in the log when restart the pi or when executing sudo /etc/init.d/tvheadend start

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

a a wrote:

I have the same issue, the service does not start even when executing sudo /etc/init.d/tvheadend start

[email protected]:~ $ sudo /etc/init.d/tvheadend start
[ ok ] Starting tvheadend (via systemctl): tvheadend.service.

I confirmed not running with top command.
So localhost:9981 will not load

dpkg -l | grep ii | less
Shows installed package
ii tvheadend 4.2.1 armhf Tvheadend

Can you try to launch it with command line I gave before? Is there an error (missing library or something)?

I suspect that my .deb didn't ask for dependecies as pakages are installed on my board. I'm new in building package so maybe I missed an argument.

If someone could check my building command line a tell me if something is wrong.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

a a wrote:

What command line is that Lionel?

I forgot that I deleted it before posting in a previous message (once I saw the DEBUG in /etc/default file), sorry.

Here it is : stop tvheadend service (if it's runing then launch as root "tvheadend -u hts -d"

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

tvheadend -u hts -d
tvheadend: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

So I successfully install libiconv by:
sudo apt-get install libiconv

But still error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

I do find libiconv.so.2 in /usr/local/lib however.

Perhaps this helps?
http://forum.kodi.tv/showthread.php?tid=204499

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

a a wrote:

tvheadend -u hts -d
tvheadend: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

So I successfully install libiconv by:
sudo apt-get install libiconv

But still error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

I do find libiconv.so.2 in /usr/local/lib however.

Perhaps this helps?
http://forum.kodi.tv/showthread.php?tid=204499

Maybe you also need the "libav" package to be installed.

Here are package I had to install to build from sources :
For building : build-essential git pkg-config libssl-dev bzip2 wget debhelper gettext libavahi-client-dev git-core liburiparser-dev cmake
For dependecies : libdvbcsa-dev libav-tools libiconv libavcodec-dev

Maybe you need one of them to be installed t ohave tvheadend working properly.

Enjoy!

EDIT : here are dependencies I have for my tvheadend install

 apt-cache depends tvheadend
tvheadend
  Dépend: libavahi-client3
  Dépend: libavahi-common3
  Dépend: libc6
  Dépend: libdbus-1-3
  Dépend: libdvbcsa1
  Dépend: libssl1.0.0
  Dépend: liburiparser1
  Dépend: zlib1g
  Dépend: dvb-apps
  Dépend: bzip2
  Recommande: xmltv-util
  Remplace: <hts-tvheadend>
  Améliore: <showtime>

But I guess all of the are listed from deb package.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

I got v4.2.1 working on the Pi3!

Here is the steps I used. Some may or may not be necessary but it now works.

sudo apt-get update
sudo apt-get install dvb-tools
dpkg -i /location of saved deb file in the post above/tvheadend_4.2.1_armhf.deb
sudo apt-get update
sudo apt-get install libiconv
sudo apt-get install build-essential git pkg-config libssl-dev bzip2 wget
sudo apt-get install libavahi-client-dev zlib1g-dev libavcodec-dev libavutil-dev libavformat-dev libswscale-dev
sudo apt-get install build-essential git pkg-config libssl-dev bzip2 wget debhelper gettext libavahi-client-dev git-core liburiparser-dev cmake
the following steps resets TVHeadend to default if it was installed over a previous version. I found this was necessary.
sudo /etc/init.d/tvheadend stop
sudo rm -rf /home/hts/.hts/tvheadend/
sudo dpkg-reconfigure tvheadend
sudo /etc/init.d/tvheadend start

Thanks Lionel! Great work!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

I've complied 4.3-150~g54e63e3 (25/5/17) for the Raspberry pi, installed and successfully tested it.
If anyone's interested in trying it let me know and I'll upload it.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Hector Zeped 4 months ago

Please upload it. I tried 4.2.1 and is not working in my RPI2, if possible with some instructions :-)

thanks

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

Attached is 4.3-150~g54e63e3_armhf.deb for Raspberry Pi that I compiled this evening and tested. It is the development master branch release for today (25/5/17)

To install-
sudo dpkg -i /location folder of saved deb file/tvheadend_4.3-150~g54e63e3_armhf.deb

To start TvHeadend for the first time-
sudo /etc/init.d/tvheadend start

If asks to dvb-tools before installation-
sudo apt-get update
sudo apt-get install dvb-tools

If Tvheadend doesn't start to see what dependencies are missing-
tvheadend -u hts -d

And follow the instructions in my post above to install the missing files.

If all the dependencies are installed and still doesn't start, reset the config files to default-
sudo /etc/init.d/tvheadend stop
sudo rm -rf /home/hts/.hts/tvheadend/
sudo dpkg-reconfigure tvheadend
sudo /etc/init.d/tvheadend start

Let me know how it goes!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Hector Zeped 4 months ago

Hi.

I had to reinstall it in a fresh raspbian-lite image, I followed all steps since begining, then your steps in previous post and it worked...thanks a lot.
:)

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

Hector Zeped wrote:

Hi.

I had to reinstall it in a fresh raspbian-lite image, I followed all steps since begining, then your steps in previous post and it worked...thanks a lot.
:)

Glad to hear it worked.

RE: [Unofficial] Raspberry Pi / armhf builds - Added by Lionel SANCHEZ 4 months ago

Hello World!

If someone wants the 4.2.2 build, just ask. I have it running on my CubieBoard.

Enjoy!

RE: [Unofficial] Raspberry Pi / armhf builds - Added by a a 4 months ago

Attached is v4.3-184 the development build from the master branch dated 31/5/17. Tested working okay on my Pi3.

1 2 3 4 (51-75/95)