Kodi Community Forum
MythTV PVR client Addon Developers Wanted - Developers Only! - 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: MythTV PVR client Addon Developers Wanted - Developers Only! (/showthread.php?tid=82015)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35


- dteirney - 2011-02-04

I've just pushed the latest code to my github repository.

https://github.com/dteirney/xbmc/tree/pvr

With this you should be able to watch Live TV, view the EPG, and playback recordings.

There is currently no directory structure for the recorded shows. I can easily put in the existing logic from myth:// to group the content into "TV Shows/Show Name" and "Movies" folders.

Let me know if anyone wants that in the short term. Long term I'll be talking with dushmaniac about how the TV Shows and Movies can appear directly in the XBMC Library so that the "Live TV" entry from the main menu is only used for actual Live TV, scheduling recordings and perhaps showing smarter EPG things like "Upcoming Movies".


- dubstar_04 - 2011-02-05

I am having a few problems with playback:

log here:

http://paste.ubuntu.com/562823/

I did have recordings playing before your latest git update.

I am assuming you have moved from mythxml to protocol, theres lots of this in the log:

(cmyth)cmyth_conn_connect: asked for version 8, got version 23056

I am running a fresh ubuntu install, with 23+fixes backend (hence weird version number)
I did a clean clone and build of your git.

I have tried both hostname and ip for the backend.

Everything is displayed, guide, channels, recordings but nothing will play.

I cant think of anything else you might need. If you need anything i will do my best to get back asap.

Thanks for all your work.


- karatekickz - 2011-02-05

dteirney Wrote:I've just pushed the latest code to my github repository.

https://github.com/dteirney/xbmc/tree/pvr

With this you should be able to watch Live TV, view the EPG, and playback recordings.


Incredible. Thanks for your and everyone's great work. Would it be possible for you to make this compile to run on Win32 at the present time?

Also, is it capable of adding a recording (timer) atm?

Thanks.


- jm_maclaren - 2011-02-05

dubstar_04 Wrote:I am having a few problems with playback:

log here:

http://paste.ubuntu.com/562823/

I did have recordings playing before your latest git update.

I am assuming you have moved from mythxml to protocol, theres lots of this in the log:

(cmyth)cmyth_conn_connect: asked for version 8, got version 23056

I am running a fresh ubuntu install, with 23+fixes backend (hence weird version number)
I did a clean clone and build of your git.

I have tried both hostname and ip for the backend.

Everything is displayed, guide, channels, recordings but nothing will play.

I cant think of anything else you might need. If you need anything i will do my best to get back asap.

Thanks for all your work.

looking at your pastebin the protocol version is the one odd one that was caused by a split in the development of mythtv (its associated with 023 fixes). My recollection looking at the logic of libcmyth is that the protocol is assumed to advance monotonically. A patch was proposed for the mvp code which also uses libcmyth. If you upgrade to 0.24 I bet that problem will go away. If is it v. important to have this version supported I can apply the patch used in the mvp tree for you. Justlet me know.
James


- jm_maclaren - 2011-02-05

stupid question but am I downloading the latest pvr git by

git clone git://github.com/dteirney/xbmc.git

and if not could someone let me know what the right git clone command is.
Thanks
James


- dteirney - 2011-02-05

dubstar_04 Wrote:I am having a few problems with playback:

log here:

http://paste.ubuntu.com/562823/

I did have recordings playing before your latest git update.

I am assuming you have moved from mythxml to protocol, theres lots of this in the log:

(cmyth)cmyth_conn_connect: asked for version 8, got version 23056

I am running a fresh ubuntu install, with 23+fixes backend (hence weird version number)
I did a clean clone and build of your git.

I have tried both hostname and ip for the backend.

Everything is displayed, guide, channels, recordings but nothing will play.

I cant think of anything else you might need. If you need anything i will do my best to get back asap.

Thanks for all your work.

Looks like the connection code doesn't work with that bizarre version number that was introduced in 0.23 fixes. I'll see if the MVPMC version of libcmyth has been updated to deal with that.

I changed to use the MythProtocol for playback as it was taking ~20seconds to start a recording with the MythXML interface and it didn't seem to support seeking. I'm using Myth 0.24.


- dteirney - 2011-02-05

jm_maclaren Wrote:stupid question but am I downloading the latest pvr git by

git clone git://github.com/dteirney/xbmc.git

and if not could someone let me know what the right git clone command is.
Thanks
James

All the PVR related code is in the PVR branch.

Once you've done the clone I think you just need to do:

git checkout pvr


- dteirney - 2011-02-05

karatekickz Wrote:Incredible. Thanks for your and everyone's great work. Would it be possible for you to make this compile to run on Win32 at the present time?

Also, is it capable of adding a recording (timer) atm?

Thanks.

Are you having problems compiling on Win32? I don't have any Windows machines to test on, but I don't know of any reason why it wouldn't compile on Win32.


- waldo22 - 2011-02-05

dteirney Wrote:Are you having problems compiling on Win32? I don't have any Windows machines to test on, but I don't know of any reason why it wouldn't compile on Win32.

I think he was asking you to compile it for him, which means it shouldn't be posted in this thread Sad

@karatekickz, this is still very much in development...

patience grasshopper Smile


- jms-xbmc - 2011-02-05

I have similar outcome with dubstar_04 while I have mythtv version 0.24.0+fixes. All information is displayed but I can't watch livetv or recordings.

About viewing recordings:
After trying to watch recordings an error is found in log file:
Code:
CDVDPlayer::OpenInputStream - error opening [myth://192.168.1.10/recordings/1004_20110127210001.mpg]
I tracked that particular recording at backend and the correct file name is 1004_20110127220001.mpg. At XBMC's recordings list page correct date is shown for this rec, but the time is wrong - it shows 19:00 while mythfrontend shows 22:00 which is correct. Correct system time is displayed in xbmc's status area in upper right corner. Mythfrontend plays this recording without problems so the database should be ok.

XBMC's Log file while trying livetv
XBMC's Log file while trying recordings
Mythbackend's log file while trying recordings
Mythbackend's log file while trying livetv


- dubstar_04 - 2011-02-05

I have updated mythtv to 0.24 which seems to of solved the version number issue!

My TV guide is off by 1 hour (GMT), I did have the same problem with tvheadend until dushmaniac implemented the control for the plugin.

I am also unable to playback recorded TV.

Log attached

http://paste.ubuntu.com/562963/

Image

Thanks,

Dubstar_04


- dteirney - 2011-02-05

The problem with playback not working for recordings is probably due to a date time conversion issue. For those that are having problems, is the time in the EPG off by your GMT offset or something else.

"ERROR: SetupRecording - unable to get find selected file" means the URL I constructed using the recording start time is borked by a timezone conversion issue.

Constructing the myth://hostname/recordings/chanid_recstarttime.mpg URL is a stop gap measure until libcmyth is moved across and will have issues if the date time conversion between XBMC and the backend is broken.

Playback is working for me, but perhaps I'm just lucky with my setup of timezones etc.

For people having problems with Live TV, I think "ERROR: SetupLiveTV - unable to get recorder" in the XBMC log means there is no free recorder for that channel. Could be verified by seeing if Live Channels in myth:// works. Not sure how that will best be handled through the PVR interface at the moment.

I think dushmaniac said that all times will be passed in local time eventually, but perhaps there is some GMT conversion still happening in places it shouldn't be. If anyone want to check the code, feel free. No more time to spend on this for what's left of the NZ weekend.


- dubstar_04 - 2011-02-05

Thanks for all your work with the mythtv pvr.

you have done a fantastic job, bringing the most anticipated 'live tv' feature to xbmc.

Enjoy the rest of your weekend.


- Livin - 2011-02-05

A few questions...

How stable is this?

What features are currently working and not working... Live TV, Recorded TV, manage recordings, etc

Does it work for the Windows version?

thx - I'm really looking forward to dumping Windows Media Center.


- dteirney - 2011-02-05

jms-xbmc Wrote:I have similar outcome with dubstar_04 while I have mythtv version 0.24.0+fixes. All information is displayed but I can't watch livetv or recordings.

About viewing recordings:
After trying to watch recordings an error is found in log file:
Code:
CDVDPlayer::OpenInputStream - error opening [myth://192.168.1.10/recordings/1004_20110127210001.mpg]
I tracked that particular recording at backend and the correct file name is 1004_20110127220001.mpg. At XBMC's recordings list page correct date is shown for this rec, but the time is wrong - it shows 19:00 while mythfrontend shows 22:00 which is correct. Correct system time is displayed in xbmc's status area in upper right corner. Mythfrontend plays this recording without problems so the database should be ok.

XBMC's Log file while trying livetv
XBMC's Log file while trying recordings
Mythbackend's log file while trying recordings
Mythbackend's log file while trying livetv

What timezone are you in. Based on the code thus far the GMT offset was calculated at 120 minutes. GMT+2.

"PVR: MythTV PVR Client/http://192.168.1.10:6544 - Using a timezone difference of '120' minutes to correct EPG times"