Linux MythTV PVR for Frodo
#1
Am I crazy? Does Frodo BETA support MythTV on a Linux setup?

I've installed the Mythc-PVR addon, but it fails to connect to the database.

Any advice would be appreciated.

Hans

Reply
#2
I'm no expert, but i think a log of your problem would be a first good step.
Reply
#3
I didn't provide a log because I am confused if the cmyth-PVR addon by Christian Fetzer is even supported by Frodo BETA1. The Frodo wiki gives a link to where to download the PVR's and mythtv addons are only available for Windows builds. So any basic information on the status of a myth tv pvr for linux would be appreciated.

I will include the error message I'm getting in xbmc.log:
Code:
11:06:44 T:2850097984   DEBUG: RegisterClient - registering add-on 'MythTV cmyth PVR Client'                                                        
11:06:44 T:2850097984   DEBUG: PVR - Create - creating PVR add-on instance 'MythTV cmyth PVR Client'                                                
11:06:44 T:2850097984   DEBUG: ADDON: Dll Initializing - MythTV cmyth PVR Client                                                                    
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Creating MythTV cmyth PVR-Client                                                  
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_addon...done                                            
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Checking props...                                                                  
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Checking props...done                                                              
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_pvr...                                                  
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_addon...done                                            
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_gui...                                                  
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Register handle @ libXBMC_gui...done                                              
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'host'                    
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'port'                    
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'extradebug'              
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_user'                
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_password'              
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'db_name'                  
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - GetAddonSetting - add-on 'MythTV cmyth PVR Client' requests setting 'livetv'                  
11:06:44 T:2850097984   DEBUG: AddOnLog: MythTV cmyth PVR Client: Creating PVRClientMythTV...                                                        
11:06:44 T:2850097984   DEBUG: CAddonCallbacksAddon - QueueNotification - MythTV cmyth PVR Client - Error Message : 'Connect: Failed to connect to MythTV backend 192.168.0.2: 6543'                                                                                                                      11:06:44 T:2850097984   ERROR: AddOnLog: MythTV cmyth PVR Client: Failed to connect to backend                                                      
11:06:44 T:2850097984   DEBUG: Calling TransferSettings for: MythTV cmyth PVR Client                                                                
11:06:44 T:2850097984   ERROR: PVR - Add-on 'unknown' is using an incompatible API version. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen

No errors are reported on the backend.

Hans
Reply
#4
The plugin you need is pvr.mythtv.cmyth located at https://github.com/fetzerch/xbmc-pvr-addons
Here's the discussion topic: http://forum.xbmc.org/showthread.php?tid=110694

You will have to compile it on your own, but the process is really easy and thoroughly explained here: http://wiki.xbmc.org/index.php?title=PVR...FromSource

Note that depending on your system architecture (32-bit or 64-bit), you'll end up with either pvr.mythtv.cmyth-linux-x86_64.zip or with pvr.mythtv.cmyth-linux-i486.zip

Good luck

EDIT:
If you have already compiled and installed this plugin and it doesn't connect to the backend, make sure you fill in all information about your backend as explained here: http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV
Your log shows that the plugin has no information about the backend host address, port number, database name, username and password.
Also, if you're still on mythtv v0.24, it would be a good idea to update to v0.26 - but note you will have to update your db first.
Read here: http://www.mythtv.org/wiki/Release_Notes_-_0.26 and here: http://www.mythtv.org/wiki/MySQL_Time_Zone_Tables
Reply
#5
Thanks for the information, that is the setup I had before. I decided to purge what I had and reinstall XBMC 12 BETA1 and recompile the mythtv pvr. The error that I get now is as follows:

Code:
14:54:42 T:2877279040   DEBUG: Calling TransferSettings for: MythTV cmyth PVR Client                                                                
14:54:42 T:2877279040   ERROR: PVR - couldn't get the capabilities for add-on 'unknown'. Please contact the developer of this add-on: Christian Fetzer, Jean-Luc Barrière, Tonny Petersen


EDIT:

I just saw your edit. I did configure the backend settings, and am running MythTV .25.

Hans
Reply
#6
On a second thought, does this addon require that I use the nightly build in the nathan renniewaldock repo?

If I remember correctly that would be an 11.9 Eden build.


Hans
Reply
#7
(2012-11-16, 23:15)hans109h Wrote: On a second thought, does this addon require that I use the nightly build in the nathan renniewaldock repo?

If I remember correctly that would be an 11.9 Eden build.


Hans

I think you're right. The build wiki page starts with that repo setup.

I have been using it for the past few days with nightlies and everything works nice. Much better than Eden+mythbox.
Reply
#8
Ok....Stand down. I feel a bit silly, but somewhere in the mix of all this tinkering I had shutdown the mythtv master backend.....that would result in a unable to connect error. Everything is running smoothly now.

Basically you can use the mythtv-pvr-addon on with Frodo (12.0BETA1) as long as you update the addon from version .4. to .5.

Thanks for the help, I pretty much just needed to recompile the addon and I would have been in good shape.

Hans
Reply
#9
Cool, thanks for the info. I have just installed the new beta and it just works.
Reply
#10
(2012-11-16, 20:58)zarac Wrote: The plugin you need is pvr.mythtv.cmyth located at https://github.com/fetzerch/xbmc-pvr-addons
Here's the discussion topic: http://forum.xbmc.org/showthread.php?tid=110694

You will have to compile it on your own, but the process is really easy and thoroughly explained here: http://wiki.xbmc.org/index.php?title=PVR...FromSource


I've tried building the addon from source following these instructions. I've hit some sort of snag at every step but managed to google my way out of most of them - usually needed to install something else to make it work. I'm up to the "make zip" step and getting this error:

make -C lib all
make[1]: Entering directory `/home/htpc/source/xbmc-pvr-addons/lib'
Making all in libhts
make[2]: Entering directory `/home/htpc/source/xbmc-pvr-addons/lib/libhts'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"xbmc-pvr-addons\" -DPACKAGE_TARNAME=\"xbmc-pvr-addons\" -DPACKAGE_VERSION=\"1:0:0\" -DPACKAGE_STRING=\"xbmc-pvr-addons\ 1:0:0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -std=c99 -D_GNU_SOURCE -g -O2 -MT libhts_la-htsmsg.lo -MD -MP -MF .deps/libhts_la-htsmsg.Tpo -c -o libhts_la-htsmsg.lo `test -f 'htsmsg.c' || echo './'`htsmsg.c
libtool: compile: Failed to create `.libs'
make[2]: *** [libhts_la-htsmsg.lo] Error 1
make[2]: Leaving directory `/home/htpc/source/xbmc-pvr-addons/lib/libhts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/htpc/source/xbmc-pvr-addons/lib'
make: *** [zip] Error 2

Would appreciate any help Smile
Reply
#11
(2012-11-17, 12:42)kcsc Wrote:
(2012-11-16, 20:58)zarac Wrote: The plugin you need is pvr.mythtv.cmyth located at https://github.com/fetzerch/xbmc-pvr-addons
Here's the discussion topic: http://forum.xbmc.org/showthread.php?tid=110694

You will have to compile it on your own, but the process is really easy and thoroughly explained here: http://wiki.xbmc.org/index.php?title=PVR...FromSource


I've tried building the addon from source following these instructions. I've hit some sort of snag at every step but managed to google my way out of most of them - usually needed to install something else to make it work. I'm up to the "make zip" step and getting this error:

make -C lib all
make[1]: Entering directory `/home/htpc/source/xbmc-pvr-addons/lib'
Making all in libhts
make[2]: Entering directory `/home/htpc/source/xbmc-pvr-addons/lib/libhts'
/bin/bash ../../libtool --tag=CC --mode=compile gcc -DPACKAGE_NAME=\"xbmc-pvr-addons\" -DPACKAGE_TARNAME=\"xbmc-pvr-addons\" -DPACKAGE_VERSION=\"1:0:0\" -DPACKAGE_STRING=\"xbmc-pvr-addons\ 1:0:0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DLT_OBJDIR=\".libs/\" -I. -std=c99 -D_GNU_SOURCE -g -O2 -MT libhts_la-htsmsg.lo -MD -MP -MF .deps/libhts_la-htsmsg.Tpo -c -o libhts_la-htsmsg.lo `test -f 'htsmsg.c' || echo './'`htsmsg.c
libtool: compile: Failed to create `.libs'
make[2]: *** [libhts_la-htsmsg.lo] Error 1
make[2]: Leaving directory `/home/htpc/source/xbmc-pvr-addons/lib/libhts'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/htpc/source/xbmc-pvr-addons/lib'
make: *** [zip] Error 2

Would appreciate any help Smile

Just from a quick glance at the error, do you as the user have permission to write to the directory? Good luck
Reply
#12
Quote:Just from a quick glance at the error, do you as the user have permission to write to the directory? Good luck

Hi tpleztier

I ran every command with sudo

Thanks
Reply
#13
ok so I didn't follow the instructions *fully* Smile

Works now
Reply
#14
Never mind
Reply
#15
I'm receiving the following error when attempting to run LiveTV with libcmyth. Obviously, I finally managed to populate the channels via libcmyth into XBMC 12.0b1, but the following error prevents further progress.

Code:
21:58:50 T:140551303280384  NOTICE: AddOnLog: MythTV cmyth PVR Client: Process - Event chain update: No recorder
21:58:50 T:140550947178240   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 8, got version 75
21:58:50 T:140550947178240   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_conn_connect: asked for version 75, got version 75
21:58:51 T:140550947178240   ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_file_is_open: file transfer socket is closed
21:58:52 T:140551303280384   ERROR: Previous line repeats 1 times.
21:58:52 T:140551303280384   ERROR: AddOnLog: MythTV cmyth PVR Client: LiveTVChainUpdate failed on chainID: live-believers-2012-11-17T21:58:50
21:58:52 T:140551303280384  NOTICE: AddOnLog: MythTV cmyth PVR Client: Process - Event chain update: false
21:59:22 T:140550947178240   ERROR: AddOnLog: MythTV cmyth PVR Client: SpawnLiveTV - Chain update failed.
21:59:22 T:140550947178240   ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/5.pvr]
21:59:22 T:140550947178240  NOTICE: CDVDPlayer::OnExit()
21:59:22 T:140550947178240  NOTICE: CDVDPlayer::OnExit() deleting input stream
21:59:22 T:140551303280384  NOTICE: AddOnLog: MythTV cmyth PVR Client: Process - Event chain update: No recorder
21:59:22 T:140552272320448  NOTICE: CDVDPlayer::CloseFile()
21:59:22 T:140552272320448 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
Reply

Logout Mark Read Team Forum Stats Members Help
MythTV PVR for Frodo0