Tvheadend and Centos 7

Added by Bob Lightfoot over 2 years ago

I am attempting to make tvheadend run on my Centos 7 system. The system runs just fine for mythtv but I would like to move/experiment with tvheadend and kodi. I am also somewhat of a purist and will not build tvheadend on the actual hardware, but prefer to install via rpm. So I have cobbled together a spec file and built successfully. The webui comes up and looks to be working, but the cards don't seem to scan correctly. I had used 3.6 on Centos 6 and it worked for this box, but I have not gotten 3.5 or 3.9 to work for Centos 7. I am also pussled that the webui reports this a version 0.0.0~unknown and not 3.5 or 3.9 as I would expect. Input is welcome and appreciated.

System is an HP PAvillion Elite M9040n Media Center with Hauppage HVR 1600 and HVR 1850 tuner cards.
uname -r ==> 3.10.0-123.13.2.el7.x86_64

I am attaching the spec files I used for 3.5 and 3.9 tagged branches as well as screenshots of the webui and systemctl output.


Replies (16)

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

Well I have it all working. I am using Kodi {xbmc-14.0} from rpmfusion rebuilt for centos. xbmc-addons rebuilt from git to match kodi and tvheadened master from git called 4.0 and packaged and it all works. I still need to get the broadcast EPG to work but viewing live tv is working. recording and epg will come.

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

Thought I'd let folks know that EPG is now working thanks to mc2xml and tv_grab_file I am using an xml service.

RE: Tvheadend and Centos 7 - Added by Morbid Angel over 2 years ago

it is possible to get the src.rpm from you?
the spec file/src.rpm for kodi on centos7 were nice to :)

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

I've attached the spec and the src.rpm. The build system had mythtv already installed so there may be a missing dep or two in the spec/src. No warranty but the resulting rpms worked for me.

RE: Tvheadend and Centos 7 - Added by Morbid Angel over 2 years ago

big thx! can I have the tvheadend src rpm to?

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

I've attached the 3.5 src.rpm that built on Centos 6 and was adapted to Centos 7.
The 3.9.src.rpm and 4.0.src.rpm were only built on Centos 7 and the 4.0 is what I am running with Kodi 14.0.

IF you find room to improve please return at least the updated spec file and any patches.

tvheadend-3.5.31052013-6.el7.centos.lfoot.src.rpm - tvheadend-3.5 src.rpm for el6/el7 (2.11 MB)

tvheadend-3.9.31122014-3.src.rpm - tvheadend-3.9 src.rpm for el7 (13.5 MB)

tvheadend-4.0.01012015-1.src.rpm - tvheandend-4.0? src.rpm for el7 (15 MB)

RE: Tvheadend and Centos 7 - Added by Morbid Angel over 2 years ago

look here: http://li.nux.ro/download/nux/tmp/kodi7/

im using these rpm's here successfully...

have an oscam rpm here to...

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

THanks Morbid those rpm work good for kodi, but I don't find any hts/tvheadend ones.

I have built my own rpm thus far and shared the procedure here in the Redhat / Centos / Fedora section:

https://tvheadend.org/projects/tvheadend/wiki/Building

RE: Tvheadend and Centos 7 - Added by Robert Brown over 2 years ago

Bob Lightfoot wrote:

THanks Morbid those rpm work good for kodi, but I don't find any hts/tvheadend ones.

I have built my own rpm thus far and shared the procedure here in the Redhat / Centos / Fedora section:

https://tvheadend.org/projects/tvheadend/wiki/Building

Thanks for this procedure Bob.
On an armv7hl platform I get an error "HEAD is now at 96898a6 transcoding: fix compile error when using libav, fixes #2708"
when I run : git reset --hard origin/master.
And also find no .spec files to copy.
Seems like I have to wait for rpmfusion for FC22 to get libav?

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

I haven't built for the armv7hl arch/hdwe as I don't have test hardware.
The instructions will work for i386 / i686 and x8664.

Can you try building using the attached source rpm file and let me know how or if it works?

This is a source rpm from the master/head as of 20150319.

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

It took a couple of additional "tweaks" which I need to work back into the spec file, but I did get an arm build to succeed.

Robert Brown - I lack bare metal hdwe to test it. would you care to guinea pig it?

Please note the version string on these is non-standard and I intend to change that in the next run.

I am learning as I do this so appreciate your patience.

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

OK with some updates merged today by Jaroslav -- I was able to produce a run of redhat rpm which use the standard versioning that the debian / git files also do.

These rpm are not signed, but the centos one is in use on my hp pavillion elite media center / media server.

If you installed one of the earlier rpm versions this will be a downgrade to yum because of how it is numbered, but in actuality it is an upgrade improvement.

tvheadend-3.9.2618-git.e5dc86b.1.el7.centos.x86_64.rpm - CentOS 7 x86_64 RPM (9.36 MB)

tvheadend-3.9.2618-git.e5dc86b.1.el7.centos.src.rpm - CentOS 7 x86_64 Source RPM (15 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc20.i686.rpm - Fedora 20 i686 RPM (7.21 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc20.src.rpm - Fedora 20 Source RPM (15 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc21.armv7hl.rpm - Fedora 21 arm RPM (7.13 MB)

tvheadend-3.9.2618-git.e5dc86b.1.spec - RHEL-CentOS-Fedora Spec File (2.76 KB)

tvheadend-3.9.2618-git.e5dc86b.1.fc21.src.rpm - Fedora 21 Source RPM (15 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc20.x86_64.rpm - Fedora 20 x86_64 RPM (9.37 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc21.i686.rpm - Fedora 21 i686 RPM (7.22 MB)

tvheadend-3.9.2618-git.e5dc86b.1.fc21.x86_64.rpm (9.51 MB)

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

turns out 3.9.2618 has a significant bug and will not scan for unconfigured services. works fine for an existing configuration, but for a new install not so much. Thankfully jaroslav and company caught this and had a quick fix out. I'm slower getting new redhat builds out. but here is enough for those who know rh to run with.

RE: Tvheadend and Centos 7 - Added by Robert Brown over 2 years ago

Hi Bob
Tried to install tvheadend-3.9.2618-git.e5dc86b.1.fc21.armv7hl.rpm with rpm -Uvh and it failed because of missing dependencies:
libavcodec.so.56
libavformat.so.56
libresample.so.2
libavutil.so.54
libswscale.so.3

So as I suspect I will not get further with this until libav becomes available in rpmfusion for Rawhide (I am using FC22 on armv7hl). I.e. my problem not the rpm's.

Next tried rpm -ivv tvheadend-3.9.20150319-5.fc21.src.rpm
but one of the things I saw was :
install: tvheadend-3.9.20150319-5.fc21.x86_64 has 2 files
tvheadend-3.9.20150319-5.fc21.x86_64 so maybe wrong arch components? but tar xvfz ran without error.

Used ./configure --disable-dvbscan and it grizzled about No package 'libavcodec' found but ok.
Make and make install ran ok without error. But on firing up tvheadend & it came back with
error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory
but it's present at /usr/local/lib/libiconv.so.2
so I then added /usr/local/lib to my PATH without success.
Copied this to /usr/lib and then tvh fired up. It ran without an access login so crashed the browser when I clicked on "Configuration".

I think I can copy some profile files to overcome this.

Thanks for the help with this.

RE: Tvheadend and Centos 7 - Added by Bob Lightfoot over 2 years ago

IF memory serves rpmfusion-rawhide should be F22. You might try the rpmfusion-rawhide for libav.

RE: Tvheadend and Centos 7 - Added by J H over 2 years ago

My brother made a guide how to get Oscam and Tvheadend working with CentOS 7. We use Ziggo.

http://tijshuisman.net

Enjoy!

(1-16/16)