Kodi Community Forum

Full Version: pvr.mythtv add-on
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2017-01-01, 08:52)glubbish Wrote: [ -> ]Running Kodi (17.0-RC2 Git:20161230-nogitfound). Platform: Linux x86 64-bit

When watching a recorded program and hitting x I get:
- The pvr backend does not support this action. Check the log for more information about this message.

log shows:

17:34:12.098 T:139884392081152 DEBUG: DoWork - Saving file state for video item pvr://recordings/tv/active/Default/The Big Bang Theory/The%20Big%20Bang%20Theory (2016)%20The%20Einstein%20Approximation%2FThe%20Large%20Hadron%20Collision, TV%20(7%20Digital), 20161222_104000, 1070_1482403200_4d6.pvr
17:34:12.100 T:139886217595264 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
17:34:12.101 T:139886217595264 DEBUG: ------ Window Deinit (Custom_1109_TopBarOverlay.xml) ------
17:34:12.107 T:139884392081152 DEBUG: AddOnLog: MythTV PVR Client: SetRecordingLastPlayedPosition: Recording 1070_1482403200_4d6 does not exist
17:34:12.107 T:139884392081152 ERROR: PVR - SetRecordingLastPlayedPosition - addon 'MythTV (kodi):http://10.0.0.60:6544' returned an error: the command failed
Cause is calling 'set bookmark' from the backend. I have this issue for old recordings without frame map and recorded before 0.27. Is it also the case for you ?
The root is backend cannot convert the time position to its unit as frame position because the map was not filled in the database.
It is not real problem. And i can hide the error when setting last played position. Also bookmark for last played position isn t saved.
If it is important for you to save position for those recordings, you have to run mythtranscode with special args to refill the map. Or something like that. Please check release note for 0.27.
Else if recordings are recent the root cause could be mythtranscode.
(2017-01-02, 09:42)janbar Wrote: [ -> ]
(2017-01-01, 08:52)glubbish Wrote: [ -> ]Running Kodi (17.0-RC2 Git:20161230-nogitfound). Platform: Linux x86 64-bit

When watching a recorded program and hitting x I get:
- The pvr backend does not support this action. Check the log for more information about this message.

log shows:

17:34:12.098 T:139884392081152 DEBUG: DoWork - Saving file state for video item pvr://recordings/tv/active/Default/The Big Bang Theory/The%20Big%20Bang%20Theory (2016)%20The%20Einstein%20Approximation%2FThe%20Large%20Hadron%20Collision, TV%20(7%20Digital), 20161222_104000, 1070_1482403200_4d6.pvr
17:34:12.100 T:139886217595264 DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
17:34:12.101 T:139886217595264 DEBUG: ------ Window Deinit (Custom_1109_TopBarOverlay.xml) ------
17:34:12.107 T:139884392081152 DEBUG: AddOnLog: MythTV PVR Client: SetRecordingLastPlayedPosition: Recording 1070_1482403200_4d6 does not exist
17:34:12.107 T:139884392081152 ERROR: PVR - SetRecordingLastPlayedPosition - addon 'MythTV (kodi):http://10.0.0.60:6544' returned an error: the command failed
Cause is calling 'set bookmark' from the backend. I have this issue for old recordings without frame map and recorded before 0.27. Is it also the case for you ?
The root is backend cannot convert the time position to its unit as frame position because the map was not filled in the database.
It is not real problem. And i can hide the error when setting last played position. Also bookmark for last played position isn t saved.

@janbar

I am also experiencing this and have been running 0.28+fixes for a long time. I don't transcode but this is happening on recordings that occurred even a few days ago. Willing to help in anyway possible.
Hi Janbar,

I am also running 0.28 and the recordings are less than a week old.
Also, I do not use mythtranscode
Strange thing. Seems some recent recordings haven t any map. I pushed the new version 4.12.11 which hides the error.
I will investigate later with my htpc trying to let the cat out.
Hi Janbar,

One thing I noticed, don't know if its useful, but The recording for the above is called 1070_20161222104000.ts and not 1070_1482403200_4d6 as indicated in the message.
Nothing abnormal. This is the internal recording id for the addon.
Not to obfuscate things but historically backend didn t provide an unique scalar key for recordings. Since 0.28 it does but addon has to keep compatibility for older version of the backend.
1482403200 is unix time for 2016-12-22 10:40:00.
I'm running 14.04.5 LTS (with kernel 3.13.0-107-generic), using the team-xbmc/unstable PPA.

Code:
box:~> dpkg-query --show kodi kodi-pvr-mythtv
kodi               2:17.0~git20161230.1859-rc2-0trusty
kodi-pvr-mythtv    4.12.7-1~trusty

Whenever I try to enable the MythTV PVR add-on, it fails. Checking the log as instructed it shows:

Code:
18:19:00.726 T:140341977671744   DEBUG: PVR - Create - creating PVR add-on instance 'MythTV PVR Client'
18:19:00.726 T:140341977671744   DEBUG: ADDON: Dll Initializing - MythTV PVR Client
18:19:00.726 T:140341977671744   DEBUG: ADDON: Trying to load /usr/lib/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7
18:19:00.726 T:140341977671744   ERROR: ADDON: Could not locate pvr.mythtv.so.4.12.7
18:19:00.727 T:140341977671744   ERROR: UpdateAddons - failed to create add-on MythTV PVR Client, status = 6

Sure enough, /usr/lib/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7 doesn't exist, and that path is not supplied by the kodi-pvr-mythtv package:

Code:
box:~> dpkg -L kodi-pvr-mythtv | grep pvr.mythtv.so
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.17.0
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so

Any suggestions on how to resolve this discrepancy?
(2017-01-14, 01:36)eddytv Wrote: [ -> ]I'm running 14.04.5 LTS (with kernel 3.13.0-107-generic), using the team-xbmc/unstable PPA.

Code:
box:~> dpkg-query --show kodi kodi-pvr-mythtv
kodi               2:17.0~git20161230.1859-rc2-0trusty
kodi-pvr-mythtv    4.12.7-1~trusty

Whenever I try to enable the MythTV PVR add-on, it fails. Checking the log as instructed it shows:

Code:
18:19:00.726 T:140341977671744   DEBUG: PVR - Create - creating PVR add-on instance 'MythTV PVR Client'
18:19:00.726 T:140341977671744   DEBUG: ADDON: Dll Initializing - MythTV PVR Client
18:19:00.726 T:140341977671744   DEBUG: ADDON: Trying to load /usr/lib/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7
18:19:00.726 T:140341977671744   ERROR: ADDON: Could not locate pvr.mythtv.so.4.12.7
18:19:00.727 T:140341977671744   ERROR: UpdateAddons - failed to create add-on MythTV PVR Client, status = 6

Sure enough, /usr/lib/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7 doesn't exist, and that path is not supplied by the kodi-pvr-mythtv package:

Code:
box:~> dpkg -L kodi-pvr-mythtv | grep pvr.mythtv.so
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.17.0
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so

Any suggestions on how to resolve this discrepancy?
The install dir is specified during the package build. Please ask the owner of this package. In my opinion the target install dir is right. But depends of kodi install dir too.
Thanks for the reply, janbar. I asked about this and got this reply. Does wsnipex's fix suggestion make sense to you?

(Also, my Kodi and Myth clients/server all run on x86_64-based systems, so it's unclear to me why pvr.mythtv.so is being installed in an i386-linux-gnu directory...)
@eddytv
Seems the pkg you installed is not for your architecture. It should be x86_64 and the corresponding addon has to be located in /usr/lib/x86_64....
You should remove the installed package, and install the one for right architecture.
Unfortunately a purge made no difference. And as you can see, I verified I do not even have i386 listed as a foreign architecture... and that the amd_64.deb file is the package that gets installed:

Code:
box:~# apt-get --purge autoremove kodi-pvr-mythtv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  kodi-pvr-mythtv*
0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
After this operation, 2,538 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 214601 files and directories currently installed.)
Removing kodi-pvr-mythtv (4.12.7-1~trusty) ...
Purging configuration files for kodi-pvr-mythtv (4.12.7-1~trusty) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
box:~#
box:~# uname -a
Linux box 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
box:~#
box:~# dpkg --print-foreign-architectures
box:~#
box:~# apt-get -V install kodi-pvr-mythtv
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
   kodi-pvr-mythtv (4.12.7-1~trusty)
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 0 B/754 kB of archives.
After this operation, 2,538 kB of additional disk space will be used.
Selecting previously unselected package kodi-pvr-mythtv.
(Reading database ... 214433 files and directories currently installed.)
Preparing to unpack .../kodi-pvr-mythtv_4.12.7-1~trusty_amd64.deb ...
Unpacking kodi-pvr-mythtv (4.12.7-1~trusty) ...
Setting up kodi-pvr-mythtv (4.12.7-1~trusty) ...
Processing triggers for libc-bin (2.19-0ubuntu6.9) ...
box:~#

But it still gets installed in the i386-linux-gnu directory:

Code:
box:~# ls -lc /usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv
total 1052
lrwxrwxrwx 1 root root      18 Jan 18 19:59 pvr.mythtv.so -> pvr.mythtv.so.17.0
lrwxrwxrwx 1 root root      20 Jan 18 19:59 pvr.mythtv.so.17.0 -> pvr.mythtv.so.4.12.7
-rw-r--r-- 1 root root 1075048 Jan 18 19:59 pvr.mythtv.so.4.12.7

and even though it's in the i386-linux-gnu directory, it actually is the x86_64 version!

Code:
box:~# file /usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7
/usr/lib/i386-linux-gnu/kodi/addons/pvr.mythtv/pvr.mythtv.so.4.12.7: ELF 64-bit LSB  shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=15eda584445be6fd0cb75c2a5c94bad90fc1f97e, stripped

For reference, there are definitely other things installed in the x86_64-linux-gnu directory, e.g.:

Code:
box:~# ls -l /usr/lib/x86_64-linux-gnu/kodi/addons
total 32
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.kodi.adsp/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.kodi.audioengine/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.kodi.guilib/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.kodi.inputstream/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.kodi.peripheral/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.xbmc.addon/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.xbmc.codec/
drwxr-xr-x 2 root root 4096 Jan 18 19:01 library.xbmc.pvr/

Any thoughts on how to help debug this further?
Following up to my own post... I think the problem is with how the the kodi-pvr-mythtv package in the team-xbmc PPA is being built.

I was looking through buildlog and I saw this warning from CMake:

Code:
CMake Warning at /usr/share/kodi/cmake/AddonHelpers.cmake:178 (message):
  CMAKE_INSTALL_LIBDIR lib/x86_64-linux-gnu differs from Kodi libdir,
  changing to /usr/lib/i386-linux-gnu/kodi.  Please pass -DOVERRIDE_PATHS=1
  to skip this check
Confirmed that this is indeed a bug in Kodi packaging. From this post:

Quote:Launchpad builds architecture independent packages only on "the main arch", which is still i386 for trusty, but amd64 on later releases. This means that our kodi-addon-dev package — which defines install paths for addons — is built on i386. This leads to the wrong path on amd64.

Addons on ubuntu >=15.10 will probably be broken on i386 instead.