Linux Upgraded to 14.04 > Tvheadend Won't Start - libavcodec.so.53: cannot open shared
#1
Sad 
Evening All

I've just upgraded to Ubuntu 14.04 x64 and for some reason Tvheadend won't start. This was all working fine last night using Ubuntu 13.10 and the same install of Tvheadend, all I've done is upgrade Ubuntu to 14.04 this evening.

When I try to start it manually I'm getting the following:-

Quote:Starting tvheadend
/usr/local/bin/tvheadend: error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory

And looking at the xbmc.log file I can see this:-

Quote:21:09:39 T:139995113314048 ERROR: AddOnLog: Tvheadend HTSP Client: OpenSocket - failed to connect to the backend (Connection refused)
21:09:39 T:139995113314048 ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable
21:09:39 T:139995113314048 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1
21:09:39 T:139996887328512 NOTICE: Thread AddonStatus pvr.hts start, auto delete: true
21:09:34 T:139995113314048 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1
21:09:34 T:139996887328512 NOTICE: Thread AddonStatus pvr.hts start, auto delete: true
21:09:39 T:139995113314048 ERROR: AddOnLog: Tvheadend HTSP Client: OpenSocket - failed to connect to the backend (Connection refused)
21:09:39 T:139995113314048 ERROR: ADDON: Dll Tvheadend HTSP Client - Client returned bad status (1) from Create and is not usable
21:09:39 T:139995113314048 WARNING: UpdateAndInitialiseClients - failed to create add-on Tvheadend HTSP Client, status = 1

XBMC can't access Tvheadend because Tvheadend fails to start and to rectify this I've installed the Restricted Extras package and also libavcodec-extra which I spotted in another thread:-

Quote:sudo apt-get install libavcodec-extra

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpostproc52 nvidia-settings-304
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libavcodec-extra-54
The following packages will be REMOVED
libavcodec54
The following NEW packages will be installed
libavcodec-extra libavcodec-extra-54
0 to upgrade, 2 to newly install, 1 to remove and 4 not to upgrade.
Need to get 2,360 kB of archives.
After this operation, 88.1 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://gb.archive.ubuntu.com/ubuntu/ trusty/universe libavcodec-extra-54 amd64 6:9.11-2ubuntu2 [2,350 kB]
Get:2 http://gb.archive.ubuntu.com/ubuntu/ trusty/universe libavcodec-extra all 6:9.11-2ubuntu2 [9,802 B]
Fetched 2,360 kB in 0s (5,250 kB/s)
dpkg: libavcodec54:amd64: dependency problems, but removing anyway as you requested:
libavformat54:amd64 depends on libavcodec54 (>= 6:9.1-1) | libavcodec-extra-54 (>= 6:9.11); however:
Package libavcodec54:amd64 is to be removed.
Package libavcodec-extra-54 is not installed.
gstreamer1.0-libav:amd64 depends on libavcodec54 (>= 6:9.1-1) | libavcodec-extra-54 (>= 6:9.10); however:
Package libavcodec54:amd64 is to be removed.
Package libavcodec-extra-54 is not installed.
libchromaprint0:amd64 depends on libavcodec54 (>= 6:9.1-1) | libavcodec-extra-54 (>= 6:9.10); however:
Package libavcodec54:amd64 is to be removed.
Package libavcodec-extra-54 is not installed.
libopencv-highgui2.4:amd64 depends on libavcodec54 (>= 6:9.1-1) | libavcodec-extra-54 (>= 6:9.10); however:
Package libavcodec54:amd64 is to be removed.
Package libavcodec-extra-54 is not installed.
libavcodec-dev depends on libavcodec54 (<= 6:9.11-99) | libavcodec-extra-54 (<= 6:9.11-99); however:
Package libavcodec54:amd64 is to be re
(Reading database ... 190360 files and directories currently installed.)
Removing libavcodec54:amd64 (6:9.11-2ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...
Selecting previously unselected package libavcodec-extra-54:amd64.
(Reading database ... 190354 files and directories currently installed.)
Preparing to unpack .../libavcodec-extra-54_6%3a9.11-2ubuntu2_amd64.deb ...
Unpacking libavcodec-extra-54:amd64 (6:9.11-2ubuntu2) ...
Selecting previously unselected package libavcodec-extra.
Preparing to unpack .../libavcodec-extra_6%3a9.11-2ubuntu2_all.deb ...
Unpacking libavcodec-extra (6:9.11-2ubuntu2) ...
Setting up libavcodec-extra-54:amd64 (6:9.11-2ubuntu2) ...
Setting up libavcodec-extra (6:9.11-2ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6) ...

After doing this the issue persists. However, I'm still new to Ubuntu and I'm not so sure what the ramifications of trying to install libavcodec-extra vs what was installed with 14.04. I don't want to be running old codecs as I've been trying to get the best out of my system by going to latest of everything [except the nVidia drivers], plus an SSD and a new GPU.

I'm a little stuck and would appreciate some sound advice if anyone can shed any light on this please?

[Edit]

I saw 'apt-cache search tvheadend' mentioned in another thread and this is the output:-

Quote:xbmc-pvr-tvheadend-hts - XBMC PVR Addon TvHeadend Hts - PVR API:1.9.0

My install of Tvheadend should be the latest unstable version from the source as of a couple of weeks ago. I checked the README file that came down with the soure and it says v3.5.

I've since come across this - https://tvheadend.org/issues/1732

Does that mean I can recompile Tvheadend with a newer version of libavcodec? If so then can anyone give me a few pointers on how to include the newer version when I do ./configure or make please? Does it automatically use the version that I'm running in my version of Ubuntu? Apologies if its a stupid question, I've been running Ubuntu for about 6 years but I'm still very new to it.

[/Edit]
Reply
#2
Use the unstable aptrepository, it has support for ubuntu 14.04:
https://tvheadend.org/projects/tvheadend...Repository
Reply
#3
The problem is that the transcoding support in tvheadend is broken and doesn't work with any currently shipping versions of libav. Either get the new builds that zeebee linked (they should work but have transcoding disabled) or compile yourself.
Reply
#4
Any chance to fix transcoding in near future?
Reply
#5
Surely the new stuff will be merged soon, currently everything is a bit frozen since adamsutton is figuring out some licensing change issues.
Reply
#6
Got the same problem using tvheadend built for saucy then upgrading to trusty. I resolved it by rebuilding tvheadend with trusty libs.
Reply
#7
I resolved this by updating the disabled apt sources from Saucy to Trusty. Then did a Check for Updates and TvHeadend and a few other apps updated. I think it updated me yo the latest stable version which believe is 3.4. It has the old GUI and works fine but I had to set it up again. Its working fine but I need to have a sift through the changelog to see if I am ok running 3.4 or if I should be running the latest unstable version.
Reply
#8
I don't get it. TVHeadend died on me with the same message as ApolloUK and I think I tried about everything suggested here and elsewhere, but it won't budge...
I'm not a complete n00b and I never had so many problems getting something to work as with this bugger. This is the last time in my entire life that I select 'upgrade'. Next time, I'll just take a deep breath and re-install the entire system. It's way quicker.

With the 'stable' repos active, I get this:
Code:
Setting up tvheadend (3.4.28~geb79aee~trusty) ...
Installing new version of config file /etc/default/tvheadend ...
Installing new version of config file /etc/init/tvheadend.conf ...
Installing new version of config file /etc/init.d/tvheadend ...
And this won't start, showing this in the logfile:
Code:
tvheadend: error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory

When I switch to unstable, I get this:
Code:
Selecting previously unselected package tvheadend.
(Reading database ... 136197 files and directories currently installed.)
Preparing to unpack .../tvheadend_3.9.929~gd702125~trusty_amd64.deb ...
Unpacking tvheadend (3.9.929~gd702125~trusty) ...
Processing triggers for man-db (2.6.7.1-1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up tvheadend (3.9.929~gd702125~trusty) ...
Installing new version of config file /etc/default/tvheadend ...
Installing new version of config file /etc/init/tvheadend.conf ...
Installing new version of config file /etc/init.d/tvheadend ...
Newer version, but the result is the same...
Code:
tvheadend: error while loading shared libraries: libavcodec.so.53: cannot open shared object file: No such file or directory

When I activate another repos, I do a 'apt-get update' and 'apt-get upgrade' in between (the latter just to maken sure).
Am I missing something here? What am I doing wrong and how can I get TVHeadend back? I'm getting pretty desperate here... Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Upgraded to 14.04 > Tvheadend Won't Start - libavcodec.so.53: cannot open shared0