Kodi Community Forum
New MythTV add-on using libcmyth - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



RE: New MythTV add-on using libcmyth - richardambridge - 2012-12-14

Just tried lastest GIT version, and live tv doesn't seem to work anymore.

http://paste.ubuntu.com/1434458/

I can play a recording:-

08:56:52 T:3022919488 NOTICE: DVDPlayer: Opening: pvr://recordings/Default/Strictly Come Dancing - It Takes Two/Strictly Come Dancing - It Takes Two - 49 55, TV (2 BBC TWO), 20121213_183000.pvr
08:56:52 T:3022919488 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
08:56:52 T:2641333056 NOTICE: Thread CDVDPlayer start, auto delete: false
08:56:52 T:2641333056 NOTICE: Creating InputStream
08:56:52 T:2641333056 NOTICE: Creating Demuxer
08:56:52 T:2641333056 NOTICE: Opening video stream: 0 source: 256
08:56:52 T:2641333056 NOTICE: Creating video codec with codec id: 2
08:56:52 T:2641333056 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(720x576, 2)


But, trying switch from EPG:
08:57:01 T:2595777344 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_recorder_get_recorder_id: no recorder connection
08:57:01 T:2595777344 ERROR: AddOnLog: MythTV cmyth PVR Client: OpenLiveStream - Failed to open live stream
08:57:01 T:2595777344 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/28.pvr]




RE: New MythTV add-on using libcmyth - janbar - 2012-12-15

(2012-12-14, 11:03)richardambridge Wrote: Just tried lastest GIT version, and live tv doesn't seem to work anymore.

http://paste.ubuntu.com/1434458/

I can play a recording:-

08:56:52 T:3022919488 NOTICE: DVDPlayer: Opening: pvr://recordings/Default/Strictly Come Dancing - It Takes Two/Strictly Come Dancing - It Takes Two - 49 55, TV (2 BBC TWO), 20121213_183000.pvr
08:56:52 T:3022919488 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
08:56:52 T:2641333056 NOTICE: Thread CDVDPlayer start, auto delete: false
08:56:52 T:2641333056 NOTICE: Creating InputStream
08:56:52 T:2641333056 NOTICE: Creating Demuxer
08:56:52 T:2641333056 NOTICE: Opening video stream: 0 source: 256
08:56:52 T:2641333056 NOTICE: Creating video codec with codec id: 2
08:56:52 T:2641333056 NOTICE: CDVDVideoCodecFFmpeg::Open() Creating VDPAU(720x576, 2)


But, trying switch from EPG:
08:57:01 T:2595777344 ERROR: AddOnLog: MythTV cmyth PVR Client: LibCMyth: (cmyth)cmyth_recorder_get_recorder_id: no recorder connection
08:57:01 T:2595777344 ERROR: AddOnLog: MythTV cmyth PVR Client: OpenLiveStream - Failed to open live stream
08:57:01 T:2595777344 ERROR: CDVDPlayer::OpenInputStream - error opening [pvr://channels/tv/All TV channels/28.pvr]

@richardambridge

Weird, it did'nt find an available recorder for your channel. Have you running schedules ?



RE: New MythTV add-on using libcmyth - janbar - 2012-12-15

(2012-12-11, 21:53)Busenheimer Wrote: What is the difference b/t cmyth and libmyth?

libmyth is a library of MythTV. It contains needfull binaries for lot of MythTV components like mythfrontend.

cmyth is the core library embedded with the addon to communicate through the network with the MythTV backend.
(2012-12-09, 16:44)speed32219 Wrote:
(2012-12-07, 03:00)janbar Wrote: @all,

There is a bug in the packaging. The "make zip" not update correctly the zip file. It keep the previous compiled binary file of the addon. To resolve it: before refresh your copy with git pull, type "make clean" then "git pull". Or after "./configure --enable-addons-with-dependencies" type "make clean" to cleanup all old files from a previous compilation.

br

Thank you, Thank you, Thank you. I thought it might be issues with the version of xbmc I was running so installed the latest version and still no Joy. Now it is working correctly.

I updated the XBMC wiki page to include "make clean zip" and avoid any disappointment.



RE: New MythTV add-on using libcmyth - Ayla - 2012-12-16

(2012-12-14, 00:29)cfetzer Wrote:
(2012-12-13, 10:29)Ayla Wrote:
(2012-12-11, 23:46)janbar Wrote: @all,
Hi, we have pushed a fix to resolve some lock in the liveTV. If you have sometimes to test it and check there is no regression. If you find issue about program break , please, post a feedback. Thanks at all.
I still see "lock ups" in live TV.
Both the lock up ~ every 2 hours and recently also when the stream changes between commercials and other programming.

Please try again. Another set of fixes came in Smile

(2012-12-14, 01:54)janbar Wrote: @Ayla

The regression is now fixed. thanks for your feedback. The git fetzerch/master is uptodate with the fix.
Also, the S3 suspend and disconnected backend are resolved.

EDIT: about S3 suspend, prefer to use it when your backend is in the same host of XBMC.

Thanks for the effort guys! Smile

But, I still see lock ups every ~ 1-2 hours (and also after suspend, though my backend is not the same host as my client).

It happened just now when watching live TV. I have attached a download link to my xbmc.log, let me know if you need anything else, please.

It's the last really annoying bug I have, other than that almost perfect.

xbmc.log



RE: New MythTV add-on using libcmyth - richardambridge - 2012-12-17

OpenElec just pulled latest xbmc in, so I could compile OpenElec against latest GIT and installed latest mythtv add on.

When I stop playback I get a popup indicating an error, and logs shows:

17:19:27 T:140569078179584 ERROR: PVR - SetRecordingLastPlayedPosition - addon '192.168.1.95:192.168.1.95:6543' returned an error: the command failed


log: http://paste.ubuntu.com/1445681/


RE: New MythTV add-on using libcmyth - fetzerch - 2012-12-17

(2012-12-17, 19:32)richardambridge Wrote: OpenElec just pulled latest xbmc in, so I could compile OpenElec against latest GIT and installed latest mythtv add on.
When I stop playback I get a popup indicating an error, and logs shows:
17:19:27 T:140569078179584 ERROR: PVR - SetRecordingLastPlayedPosition - addon '192.168.1.95:192.168.1.95:6543' returned an error: the command failed
log: http://paste.ubuntu.com/1445681/

It fails to connect to the backend somehow.
Can you post a log file with 'Settings -> System -> Debugging' enabled? And please also turn on the add more debug info in the addon's settings.



RE: New MythTV add-on using libcmyth - richardambridge - 2012-12-18

I just noticed that 'next recording' in the LIVE TV window is showing a recording that is disabled in mythbackend.

Image

but the Timer windows shows it as a conflict

Image

Note, this is not a conflict, that recording for 10:00am is disabled due to duplicate episode
Next real recording is 2pm

xbmc.log http://paste.ubuntu.com/1447189/



RE: New MythTV add-on using libcmyth - janbar - 2012-12-18

I think xbmc should report as next recording only enabled. I have added conflict rules in timers but i though only enabled would be reported on the dashboard. It is an xbmc issue.
Also, duplicated are flagged as conflict in mythtv.


RE: New MythTV add-on using libcmyth - NewJerseyNinja - 2012-12-18

Hello,

No bug here, just trying to increase performance with cmyth:

I am trying cmyth on last night's nightly for Openelec on Raspberrypi.

I have something like 500 channels.

On an Athlon II 240 machine it takes about 5 minutes to load the EPG from clients on start up.

On the Raspberrypi, it's been going on for over a day and it's still not done yet.

If I were to synchronize all of the xbmc databases, would the cmyth addon still need to import EPG data remotely or could it just use the shared xbmc database? I'm not sure how EPG client is stored.

Thanks


RE: New MythTV add-on using libcmyth - janbar - 2012-12-18

(2012-12-16, 16:31)Ayla Wrote:
(2012-12-14, 00:29)cfetzer Wrote:
(2012-12-13, 10:29)Ayla Wrote: I still see "lock ups" in live TV.
Both the lock up ~ every 2 hours and recently also when the stream changes between commercials and other programming.

Please try again. Another set of fixes came in Smile

(2012-12-14, 01:54)janbar Wrote: @Ayla

The regression is now fixed. thanks for your feedback. The git fetzerch/master is uptodate with the fix.
Also, the S3 suspend and disconnected backend are resolved.

EDIT: about S3 suspend, prefer to use it when your backend is in the same host of XBMC.

Thanks for the effort guys! Smile

But, I still see lock ups every ~ 1-2 hours (and also after suspend, though my backend is not the same host as my client).

It happened just now when watching live TV. I have attached a download link to my xbmc.log, let me know if you need anything else, please.

It's the last really annoying bug I have, other than that almost perfect.

xbmc.log
@Ayla
I have a look on your log
(2012-12-18, 20:22)NewJerseyNinja Wrote: Hello,

No bug here, just trying to increase performance with cmyth:

I am trying cmyth on last night's nightly for Openelec on Raspberrypi.

I have something like 500 channels.

On an Athlon II 240 machine it takes about 5 minutes to load the EPG from clients on start up.

On the Raspberrypi, it's been going on for over a day and it's still not done yet.

If I were to synchronize all of the xbmc databases, would the cmyth addon still need to import EPG data remotely or could it just use the shared xbmc database? I'm not sure how EPG client is stored.

Thanks

Hi, did you try to not store epg in database (local sqlite) ? This setting is in pvr epg setting.
Else reduce the number of days requested in the same setting page.


RE: New MythTV add-on using libcmyth - janbar - 2012-12-18

I think userdata folder containing xbmc databases should be in local fast Hard drive. Epg for 3 days and 500 channels could have 80000 programs.


RE: New MythTV add-on using libcmyth - martyg7 - 2012-12-18

(2012-12-18, 20:22)NewJerseyNinja Wrote: I have something like 500 channels.

On an Athlon II 240 machine it takes about 5 minutes to load the EPG from clients on start up.

On the Raspberrypi, it's been going on for over a day and it's still not done yet.

Speaking from personal experience, 500 channels is way too much for RPi.
I could never get the plugin to finish loading,

Once I trimmed down my channels to about 200, and the length to 2 days,
initial load of EPG on RPi takes a couple of minutes. Subsequent database refreshes about half that.


RE: New MythTV add-on using libcmyth - martyg7 - 2012-12-19

UPDATE: Fixed by upgrading plugin to 1.6.6 (OpenELEC r12735 build)

When using this plugin on RPi,
I can get all of XBMC to crash by marking a PVR recording as "played" in the UI.

I get similar XBMC crashes when completing playback through the PVR interface.
(I can't watch more than 2 recordings in a row without having XBMC restart on me)

It may not crash the first time after a restart/reboot, but almost always happens on second try.

This is a day one issue for me. I have been seeing this on cMyth 0.5.0 and 1.6.5.0.

Is this a known issue?


RE: New MythTV add-on using libcmyth - tdavis - 2012-12-19

(2012-12-12, 00:08)cfetzer Wrote:
(2012-12-11, 18:10)tdavis Wrote:
(2012-12-10, 21:55)cfetzer Wrote: Thanks, I've rebased the addons PR.

Excellent, it compiled up and appeared to get the EDL list.. more testing to see how well it works.

Thanks for the feedback. I'm using this for quite a while now and it's working fine. At least the XBMC/Addon part. It depends of cause on the comskip quality. So if your breaks appear to early or to late it needs configuration/fixes on the MythTV side.

I'm still looking into this - a total lack of time has been in the way.

I added a debug line to the pvr code to also dump out the framerate. You could save a few calculations by dumping the /1000 and then *1000 ; nothing else uses the framerate as I could tell.

It does appear Myth has bad comskips in the db; two ways to see them:

1) [root@Tank log]# mythutil --getskiplist --chanid 1743 --starttime 20121103163000 -q
Commercial Skip List: 0-580,7296-13479,25255-31490

2) look in the mysql db, at the recordedmarkup db; use the chanid and starttime to find the records.

From the log:

21:31:55 T:140662712293120 DEBUG: ReadEditDecisionLists - Checking for edit decision list (EDL) for PVR recording: pvr://recordings/Default/Horsepower TV/Horsepower TV - E-Street Vortech Build, TV (743 SPIKEHD), 20121103_163000.pvr
21:31:55 T:140662712293120 DEBUG: ReadPvr - Reading Edl for recording: Horsepower TV - E-Street Vortech Build
21:31:55 T:140662712293120 DEBUG: AddOnLog: MythTV cmyth PVR Client: GetRecordingEdl - Got frame rate of 29.969999
21:31:55 T:140662712293120 DEBUG: AddOnLog: MythTV cmyth PVR Client: GetRecordingEdl - Found 3 commercial breaks for: Horsepower TV - E-Street Vortech Build
21:31:55 T:140662712293120 DEBUG: AddOnLog: MythTV cmyth PVR Client: GetRecordingEdl - Found 0 cut list entries for: Horsepower TV - E-Street Vortech Build
21:31:55 T:140662712293120 DEBUG: AddCut - Pushing new cut to back [00:00:00.000 - 00:00:19.352], 3
21:31:55 T:140662712293120 DEBUG: ReadPvr - Added break [00:00:00.000 - 00:00:19.352] found in PVRRecording for: pvr://recordings/Default/Horsepower TV/Horsepower TV - E-Street Vortech Build, TV (743 SPIKEHD), 20121103_163000.pvr.
21:31:55 T:140662712293120 DEBUG: AddCut - Pushing new cut to back [00:04:03.443 - 00:07:29.749], 3
21:31:55 T:140662712293120 DEBUG: ReadPvr - Added break [00:04:03.443 - 00:07:29.749] found in PVRRecording for: pvr://recordings/Default/Horsepower TV/Horsepower TV - E-Street Vortech Build, TV (743 SPIKEHD), 20121103_163000.pvr.
21:31:55 T:140662712293120 DEBUG: AddCut - Pushing new cut to back [00:14:02.676 - 00:17:30.717], 3
21:31:55 T:140662712293120 DEBUG: ReadPvr - Added break [00:14:02.676 - 00:17:30.717] found in PVRRecording for: pvr://recordings/Default/Horsepower TV/Horsepower TV - E-Street Vortech Build, TV (743 SPIKEHD), 20121103_163000.pvr.
21:31:55 T:140662712293120 DEBUG: AddSceneMarker - Inserting new scene marker: 00:00:19.352
21:31:55 T:140662712293120 DEBUG: AddSceneMarker - Inserting new scene marker: 00:04:03.443
21:31:55 T:140662712293120 DEBUG: AddSceneMarker - Inserting new scene marker: 00:07:29.749
21:31:55 T:140662712293120 DEBUG: AddSceneMarker - Inserting new scene marker: 00:14:02.676
21:31:55 T:140662712293120 DEBUG: AddSceneMarker - Inserting new scene marker: 00:17:30.717

and doing the calcs by hand shows it's correct from the data being fed it. Now to figure why MythTV has bad data in that table,yet commercial skip appears to work properly in the front end; one idea that I found by a google search was this thread

I'm out until after the first of jan, so I don't have any time to really followup until then.




RE: New MythTV add-on using libcmyth - janbar - 2012-12-19

(2012-12-16, 16:31)Ayla Wrote:
(2012-12-14, 00:29)cfetzer Wrote:
(2012-12-13, 10:29)Ayla Wrote: I still see "lock ups" in live TV.
Both the lock up ~ every 2 hours and recently also when the stream changes between commercials and other programming.

Please try again. Another set of fixes came in Smile

(2012-12-14, 01:54)janbar Wrote: @Ayla

The regression is now fixed. thanks for your feedback. The git fetzerch/master is uptodate with the fix.
Also, the S3 suspend and disconnected backend are resolved.

EDIT: about S3 suspend, prefer to use it when your backend is in the same host of XBMC.

Thanks for the effort guys! Smile

But, I still see lock ups every ~ 1-2 hours (and also after suspend, though my backend is not the same host as my client).

It happened just now when watching live TV. I have attached a download link to my xbmc.log, let me know if you need anything else, please.

It's the last really annoying bug I have, other than that almost perfect.

xbmc.log

@Ayla

I retried the current master of addon and S3 suspend runs great even with remote backend. When backend is remote just need some times (less than 1 minute) to receive first backend feedback. Also no more lock.
Could you rebuild your addon from the current master using "make clean zip". Also cleanup your addon folder ".../addons/pvr.mythtv.cmyth" then unzip the new build "pvr.mythtv.cmyth-{something}.zip" in the addons folders ".../addons/". Because i suspect you use an old release but not sure.
br.