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

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: PVR Development (/forumdisplay.php?fid=136)
+--- Thread: New MythTV add-on using libcmyth (/showthread.php?tid=110694)



- tsp42 - 2011-11-04 11:24

Cfetzer: I will try to add the livetv recording priority if I can figure out how it is implemented in MythTV. It may take a while though. The latest changes to dushmaniacs code may have fixed the EPG bug. I will try to pull the changes into my code this weekend. Hopefully I will also have the new scheduling window ready then.


- mronkko - 2011-11-04 20:09

tsp42 Wrote:mronkko: I've looked though the log and it looks like xbmc jumps to the end of the video when the stepforward command is recieved. Does the same happen when you use the fast forward button on the GUI? I will try to add some more debug info into the code that should produce a more informative log.

I finally had some time to take a look at this. The player crashes no matter how I do the seek forwarding. Also the timer that is shown for the video is way off. For example, when the video starts, the timer shows 3:15:00 and the total length as 5:17:00. MyhtTV shows that the real length of the recording is 2h 2min.


- cfetzer - 2011-11-04 20:24

tsp42 Wrote:Cfetzer: I will try to add the livetv recording priority if I can figure out how it is implemented in MythTV. It may take a while though. The latest changes to dushmaniacs code may have fixed the EPG bug. I will try to pull the changes into my code this weekend. Hopefully I will also have the new scheduling window ready then.

Thank you! :-)
I have a bit more info on the recording priorities:
http://www.mythtv.org/pipermail/mythtv-users/2008-February/210364.html

The LastFreeCard setting is evaluated in MainServer::HandleGetFreeRecorder (mythtv git: mythtv/mythtv/programs/mythbackend/mainserver.cpp)
The LiveTVPriority setting is read from the database in Scheduler::SchedPreserveLiveTV (mythtv git: mythtv/mythtv/programs/mythbackend/scheduler.cpp)

Looks like the only way to influence those values is through the mythtv settings (database). I think these settings are host based (if you set them in mythfrontend the database entry will contain a hostname). So if xbmc is started on the same host, the backend should somehow be able to use them?

Cheers,
Christian


- tsp42 - 2011-11-08 01:55

I've added a new dialogue to show the recording rules. It can be accessed though the right-click context menu under client actions. Please comment on the design of it. I've also synced with dushmaniac repro.

cfetzer: Thanks. It should be easy to add to the addon.
mronkko: I also encountered a wrong duration of the video and tracked it back to ffmpeg. It might be the same with our video.


- fiveisalive - 2011-11-08 07:33

tsp42 Wrote:I've added a new dialogue to show the recording rules. It can be accessed though the right-click context menu under client actions. Please comment on the design of it. I've also synced with dushmaniac repro.

The dialog box looks good, I guess it's non-functional for the moment though? The timer area looks the same as before, I thought the idea was to replace this with "Upcoming recordings" as per mythfrontend? I guess that's further down the road?


- fiveisalive - 2011-11-08 09:23

I notice that I get more regular crashes with this version than the previous version that seem to happen while idle, but might be related to EPG updates, e.g. here is the traceback just before crash:

Code:
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 37 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 48 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 108 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 109 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 167 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 174 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 176 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 182 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 186 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 195 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 202 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 209 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 215 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 216 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 217 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 219 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 223 on client 1
02:13:00 T:139948971534080   DEBUG: PVRTimers - UpdateEntries - updated timer 225 on client 1
02:13:00 T:139949170325536   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-x86_64-linux.so)
02:13:00 T:139949170325536   DEBUG: Unloading: ImageLib-x86_64-linux.so
02:13:01 T:139948982023936    INFO: EpgContainer - RemoveOldEntries - removing old EPG entries
02:13:27 T:139949170325536    INFO: Previous line repeats 26 times.
02:13:27 T:139949170325536   DEBUG: SECTION:UnloadDll(libcurl.so.4)
02:13:27 T:139949170325536   DEBUG: Unloading: libcurl.so.4
02:13:28 T:139948982023936    INFO: EpgContainer - RemoveOldEntries - removing old EPG entries
02:13:55 T:139947952568064    INFO: Previous line repeats 26 times.
02:13:55 T:139947952568064   DEBUG: Thread Jobworker 139947952568064 terminating (autodelete)
02:13:55 T:139948546057984   DEBUG: Thread Jobworker 139948546057984 terminating (autodelete)



- tsp42 - 2011-11-08 10:44

fiveisalive Wrote:The dialog box looks good, I guess it's non-functional for the moment though? The timer area looks the same as before, I thought the idea was to replace this with "Upcoming recordings" as per mythfrontend? I guess that's further down the road?

Yes currently the dialog box just shows the recording rules but I plan to extent it to add and edit rules. Next step will be to update the timer area.


- Weatherman - 2011-11-08 22:41

I just performed a git pull for the latest updates and re-compiled. I did receive one error in XBMChttp.cpp line 352 - but commented it out, and it compiled properly.

Is anyone else having strange EPG issues where you only 30% of the channels have guide information? All seem to show the "Next:" information, but the current information on around 70% are blank. That was the same with the previous version.

Using the latest MythBuntu as the backend.

I'm just happy to have the LiveTV in XBMC. Smile


- cfetzer - 2011-11-09 01:29

I see the same EPG issues :-(
There are shows missing in the epg. Most of them are missing at the beginning (now) - thats why the channel view is missing the show guide info.
However, the times are correct so I don't think it's related to those timezone problems.

I started to debug it but I got stuck somewhere in the xbmc/epg classes.
Here's what I was able to find out:
- The EPG.db does not contain the missing shows
- GetEPGForChannel in pvrclient-mythtv.cpp retreives the full information from the backend and PVR->TransferRecordingEntry / UpdateEntry (epg.cpp) get called with complete data. (I added some debug output to validate this)

Now I don't really know how to continue here. The shows seems to be filterout afterwards. When looking into the log, there were many warning lines: "FixOverlappingEvents". I tried to comment out that function but without any noticable effect.


- Weatherman - 2011-11-09 01:54

cfetzer Wrote:I see the same EPG issues :-(
There are shows missing in the epg. Most of them are missing at the beginning (now) - thats why the channel view is missing the show guide info.
However, the times are correct so I don't think it's related to those timezone problems.

What is strange, is I do see all the EPG now data if I go to the left of the Channel Guide and select the EPG:Now. It just isn't updating on all the channels themselves (where you pick the channel).

I also have a request that would be nice to have. From the Channel Guide, adding the ability to just select the channel by number in addition to scrolling through them.

Not to how difficult that would be.

- Mark


- cfetzer - 2011-11-09 10:08

Can this be related somehow to duplicatates? It looks like shows are missing that share the same title (i.e. for repeatings or for tv shows with different episode names).
Only the show with the last start date is then in the EPG.

Can someone confirm this?
(please try that also with a clean import into the database)


- tsp42 - 2011-11-09 11:28

The EPG code seems to be a bit unstable since the last merge from dushmaniac. He is probable aware of it.


- CrashX - 2011-11-09 15:44

@tsp42

Links for Installing Mythtv on the first post need to be fixed. It is currently pointing to installing xbmc build.


This looks awesome! - ronny_todgers - 2011-11-09 18:33

This is showing so much promise for really integrating live tv from myth into xbmc - great work! Has anyone managed to compile nicely on osx yet? Will give it a go later and report back if not!


- tgm4883 - 2011-11-12 20:57

I'm using the latest build from http://packages.pulse-eight.net/UbuntuInstall and it looks like it can't find the mythtv pvr plugin. I've been testing using the myth:// protocol and that works great, but I'd like to give the pvr plugin a try.

I was wondering a few things related to the different branches.

1) How often is this work (by tsp42) brought back into the above branch (dushmaniac)?

2) There seem to be quite a few different Ubuntu builds. The above, https://launchpad.net/~alexandr-surkov/+archive/dharma-pvr (with PVR), https://launchpad.net/~nathan-renniewaldock/+archive/xbmc-stable (no PVR). Is there an official xbmc PPA/repo? I see some older ones by the xbmc team but they are no longer updated.

My goal is to test this and possibly either A) Make it easily addable from the mythbuntu-control-centre, or B) include it in the ISO. I'll definitely need to work out #2 above though.