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.
delete
Hi,

kodi 14.2 ubuntu 14.04 pvr client 1.2.18

I noticed in my kodi.log file a plethora of errors like:
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/1072_1389870000_000
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/1072_1390476600_000

http://paste.ubuntu.com/11104034/


Does anyone know why I am getting these errors, or even better how to fix this?

Thanks
(2015-05-13, 01:53)glubbish Wrote: [ -> ]Hi,

kodi 14.2 ubuntu 14.04 pvr client 1.2.18

I noticed in my kodi.log file a plethora of errors like:
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/1072_1389870000_000
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
09:47:59 T:139837401933568 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/1072_1390476600_000

http://paste.ubuntu.com/11104034/


Does anyone know why I am getting these errors, or even better how to fix this?

Thanks

From a quick look at the log, you have a more serious problem earlier in the log file.
Code:
09:55:29 T:140635566216960   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (111)
09:55:29 T:140635566216960   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)InitWSAPI: invalid response
09:55:29 T:140635566216960   ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (111)
09:55:29 T:140635566216960   ERROR: Previous line repeats 1 times.
09:55:29 T:140635566216960   ERROR: AddOnLog: MythTV PVR Client: Failed to connect to MythTV backend on 10.0.0.60:6543
09:55:29 T:140635566216960   ERROR: AddOnLog: MythTV PVR Client:
09:55:29 T:140635566216960   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

Can you please provide a full debug log:
In pvr.mythtv addon Advanced tab make sure "Include more debug information in the log file" is selected.


Mike
Hi Mike,

Thanks for looking at this.
Funny thing is, it appears to be working fine.

http://paste.ubuntu.com/11119586/

Edit: included extra debug
I am installing kodi 15, to test another issue I have.
http://forum.kodi.tv/showthread.php?tid=225067 shows someone running 2.0.10 of the mythtv plugin.
How do you install this?
I can only find helix versions

Thanks
You may need to compile from source. The current version in github is 2.2.0

https://github.com/janbar/pvr.mythtv/blo.../addon.xml
Hi Nick,

Thanks for the reply.
You have helped my on previous occasions.
If you remember, I have very little linux ability.
Would it be too much effort to give step by step instruction on how to do this for ubuntu 14.04?

Thanks
No because AFAIK the build system has changed in kodi to use cmake (or something) and I am not up with the play.

Why do you want to use anything more up to date than what janbar supplies here: http://janbar.github.io/pvr.mythtv/download/index.html

If there is something specific you want or need, you might be better to wait for janbar to return from vacation.
Thanks Nick,
I reproduced the issue on 15, so have reverted to 14 again.

I will stay on 14 and wait for Janbar to come back to review http://paste.ubuntu.com/11119586/

Oddly, this debug does not have the
09:55:29 T:140635566216960 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (111)
09:55:29 T:140635566216960 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)InitWSAPI: invalid response
09:55:29 T:140635566216960 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)__connectAddr: failed to connect (111)
errors
but still has the
07:20:51 T:140712725182208 DEBUG: AddOnLog: MythTV PVR Client: GetPreviewIconPath: determined localFilename: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2585_1427677200_000
07:20:51 T:140712725182208 DEBUG: AddOnLog: MythTV PVR Client: GetPreviewIconPath: preview: 2585_1427763600_000
and
07:20:51 T:140713362700032 ERROR: AddOnLog: MythTV PVR Client: (CPPMyth)GetPreviewImage1_32: invalid response
07:20:51 T:140712725182208 DEBUG: AddOnLog: MythTV PVR Client: GetPreviewIconPath: preview: 2589_1411044000_000
07:20:51 T:140712725182208 DEBUG: AddOnLog: MythTV PVR Client: GetPreviewIconPath: determined localFilename: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/2589_1411044000_000
07:20:51 T:140713362700032 ERROR: AddOnLog: MythTV PVR Client: Process: Failed to read file: type: 1, local: /home/derek/.kodi/userdata/addon_data/pvr.mythtv/cache/thumbnail/1072_1389870000_000

type errors.
Hi all I am having some stuttering issues and frame drops with my MythTV and Kodi 15 Beta 1 Frontends:

The three frontends are:

Windows 7 x64 on custom PC
Openelec 5.95.1 on a Zotac ZBOX-CA320NANO-U: (http://www.newegg.com/Product/Product.as...6883218039)
Amazon FireTV

I am getting little to no stutter on the Windows 7 box but I'm getting a lot of stuttering using Openelec and Amazon Fire TV. When it stutters it pauses the show completely and sometimes I will have to stop and restart the channel to get it working again. This is a dealbreaker for the wife as the Verizon Fios cable box doesn’t pause or freeze the shows. Everything is hardwired through ethernet.

My Mythbuntu backend is running off of my ESXi server with 2 GBs of allocated RAM and is pointing towards my NFS export on my NAS (Ubuntu 14.04.2 LTS server running ZFS Raid Z2. They are separate boxes.

Every time it pauses or stutters I see this in the logs:

Code:
16:40:12 T:140043822012288   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
16:40:13 T:140042274060032   DEBUG: set caching from pvr to done. audio (1) = 14. video (1) = 13
16:40:13 T:140042274060032   DEBUG: CDVDPlayer::SetCaching - caching state 0
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo - CDVDMsg::GENERAL_RESYNC(43607524600.000000, 0)
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
16:40:13 T:140041468753664   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(43606863500.000000, 1)
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo::CalcDropRequirement - dropped in decoder, Sleeptime: 0.011644, Bufferlevel: 0, Gain: 0.827534
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 0
16:40:13 T:140042257274624   DEBUG: CDVDPlayerVideo::CalcDropRequirement - hurry: 1
16:40:13 T:140042257274624   DEBUG: Previous line repeats 1 times.
16:40:13 T:140042257274624   DEBUG: CPullupCorrection: pattern lost on diff 433767.000000, number of losses 2
16:40:13 T:140043822012288   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
16:40:13 T:140041468753664  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 32
16:40:13 T:140041468753664  NOTICE: Previous line repeats 1 times.
16:40:13 T:140041468753664   DEBUG: CDVDPlayerAudio::HandleSyncError - average error -10112.099192 below threshold of 50000.000000
16:40:13 T:140041468753664   DEBUG: CDVDClock::Discontinuity - CDVDPlayerAudio::HandleSyncError2 - was:43606818698.050667, should be:43606808589.829475, error:-10108.221191
16:40:15 T:140042274060032   DEBUG: CDVDPlayer::HandlePlaySpeed set clock adjust: -0.010000
16:40:15 T:140042274060032   DEBUG: CDVDPlayer::HandlePlaySpeed set clock adjust: 0.000000
16:40:16 T:140042257274624   DEBUG: CPullupCorrection: detected pattern of length 1: 16683.33, frameduration: 16683.333333
16:40:16 T:140041334535936    INFO: AddOnLog: MythTV PVR Client: GetDeletedRecordingsAmount: No deleted recording
16:40:20 T:140042274060032   DEBUG: CDVDPlayer::HandlePlaySpeed set clock adjust: -0.010000
16:40:20 T:140042274060032   DEBUG: CDVDPlayer::HandlePlaySpeed set clock adjust: 0.000000
16:40:26 T:140041334535936    INFO: AddOnLog: MythTV PVR Client: GetDeletedRecordingsAmount: No deleted recording
Full pastebin here: http://pastebin.com/jMQ0rtR8

Screenshot of codec info from the Openelec box:

Image

Any help is appreciated. Thanks!
@VonSwoopington , you should remove unnecessary tune like "<cachemembuffersize>0</cachemembuffersize>" from your advanced setting file.
Using a network storage (nfs) for the backend increase overhead: watching liveTV means your backend request to write into remote storage, then also request read from remote storage and finally write packet to Kodi host. That's means you consume 3 x the throughput of stream on your network: So you have to be sure your network can allow this load without discontinuity.
(2015-05-21, 18:28)janbar Wrote: [ -> ]@VonSwoopington , you should remove unnecessary tune like "<cachemembuffersize>0</cachemembuffersize>" from your advanced setting file.
Using a network storage (nfs) for the backend increase overhead: watching liveTV means your backend request to write into remote storage, then also request read from remote storage and finally write packet to Kodi host. That's means you consume 3 x the throughput of stream on your network: So you have to be sure your network can allow this load without discontinuity.


Janbar, thank you for your quick response. What you said makes perfect sense in regards to the bandwidth usage. I just ordered a 1TB HDD to use locally on the same machine as the Mythbuntu box which I hope will alleviate the network load. I will update this thread once it arrives and I get some time to test.

Thank you!
(2015-04-30, 19:30)mattlach Wrote: [ -> ]
(2015-04-14, 10:20)janbar Wrote: [ -> ]I pushed the git branch helix_read_timeout including the fixes. You can try it.

Has this been merged into the version in the PPA? Been running on this version I compiled from git, would be nice to switch back to the PPA version.

Thanks,
Matt

Any word on this?

Thank you,
Matt
I have good news for users of mythtv <0.28 who want to see recording watched status from the back-end.

While slavishly following Janbar's releases a few months ago, I was sure watched status worked for a short time and then stopped working again. Today I confirmed that using pvr.mythtv-RPi-arm-1.12.10-helix.zip, I get 'watched' ticks from my backend. With 1.12.11 to 1.12.18 I don't.

I confirmed by installing 1.12.10 from zip, restarting my RPi (this was necessary), navigating to the recordings screen and whoopee, all episodes previously watched using the old cmyth addon on Gotham had ticks against them!

My mythtv server is the latest ~x86 version available in portage on gentoo (mythtv-0.27.4_p20141018)
This announces itself to the pvr.mythtv addin as: {"ConnectionInfo": {"Version": {"Version": "e4f65c8", "Branch": "tag: v0.27.4", "Protocol": "77", "Binary": "0.27.20141016-1", "Schema": "1317"}...

To keep all the other fixes/improvements since 1.12.10, I then compiled from source (Build Into Openelec Instructions) and changed line 693 of client.cpp from:
Code:
pCapabilities->bSupportsRecordingPlayCount    = (version < 80 ? false : true);
to
Code:
pCapabilities->bSupportsRecordingPlayCount    = (version < 77 ? false : true);
before typing 'make'

It is possible that not all mythbackend servers reporting protocol 77 (or later) will support this, and there don't seem to be 1.12.10 zip files floating around on the net, but if you are running something later in the 0.27 series as a mythtbackend it is probably worth 'rolling your own' to see if your server is equally blessed.

Another little niggle fixed :-)