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)



- Jimmer - 2011-11-01 14:06

glstr0m:

Hardy Build Deps for pre-eden on ATV1

Hope this helps!

(I think we should free up this thread for the original purpose again now!)

Jimmer


- glst0rm - 2011-11-01 17:37

Jimmer Wrote:glstr0m:

Hardy Build Deps for pre-eden on ATV1

Hope this helps!

(I think we should free up this thread for the original purpose again now!)

Jimmer

Thank you, this has been really helpful. Now back to regularly scheduled thread programming. Big Grin

Steven


- fiveisalive - 2011-11-02 18:00

Looks like dushmaniac's updated his repo to rebase with upstream:

https://github.com/opdenkamp/xbmc/commits/master

Any chance of a rebase in the tsp trunk? It seems like he's also fixed some various EPG issues.


- cfetzer - 2011-11-03 23:08

Awesome work! This looks really promising. I have been using mythbox for a while but this is much better integrated :-)

Right now I also have some epg issues. In the channel view only a few channels show data. The timeline shows data for all channels but the blocks are not at the correct position and some shows are even missing. I live in germany UTC+1 so it could be related to a timezone problem. The details show the correct start/end times.
I'm not sure whether this should be fixed already. If you need more info, i could provide you some logs.

Another thing that comes to my mind is the priority handling between live tv and recordings. If live tv is blocking a recording mythfrontend shows a dialog and lets the user choose. with xbmc the recording gets just skipped without any notification. Do you plan to support this?
In addition there are 2 mythtv settings related to this. One is "LastFreeCard" or "Avoid conflicts between live TV and scheduled shows". The backend will then return the last available tuner for live tv. The other option is "LiveTVPriority" or "Allow live TV to move scheduled shows" that allows the scheduler to use some other tuner for the recording. Those options are evaluated by the backend but set for each frontend in the mythtv database. Unfortunately it seems that they are ignored when using xbmc as frontend.
Any idea how we can get the backend to read them from the database?

Cheers
Christian


- avus m3 - 2011-11-04 01:08

Cool stuff!


- 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?