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

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



RE: New MythTV add-on using libcmyth - cfetzer - 2012-04-17 22:24

(2012-04-17 20:42)tsp42 Wrote:  
(2012-04-16 22:21)cfetzer Wrote:  
(2012-04-15 12:05)tsp42 Wrote:  I would prefer if you split it up. I can always cherrypick the opdenkamp/xbmc PR (and he can review the PR)

Ok will do the requests as soon as opdenkamp has merged the context menu pr Smile
Good work. Have you considered updating the PR to include the XBMC PVR API changes?

Yep considered that, but wasn't sure cause the context menu itself works also for all other backends.
Anyways, I've updated the PR now. It might be easier to review it alltogether.

Today i was looking into the problem that the recording view does not remember it's path on update and always kicks you back to the main folder. Think I was able to fix it: https://github.com/fetzerch/xbmc/commit/95fced5b3f2e0c0f2522f098df0c8c0c693bd2d4
but now there's another problem. When you scroll down the list and then up a bit and wait for the next backend update ... the list scrolls back to the correct item but now this item is the last in the list. So the scroll area does not remember it's state.
Will check if there's a bugreport for it. Think the mythtv plugin can't do anything about that except requesting this update less frequently...


RE: New MythTV add-on using libcmyth - fiveisalive - 2012-04-17 23:45

(2012-04-17 20:42)tsp42 Wrote:  
(2012-04-16 22:21)cfetzer Wrote:  
(2012-04-15 12:05)tsp42 Wrote:  I would prefer if you split it up. I can always cherrypick the opdenkamp/xbmc PR (and he can review the PR)

Ok will do the requests as soon as opdenkamp has merged the context menu pr Smile
Good work. Have you considered updating the PR to include the XBMC PVR API changes?

Speaking of which, is there a sync to the upstream PVR branch in the works? Smile

Also one thing I'm not 100% sure about is how things will work for the tsp/xbmc branch with respect to the Eden branch. Will you be following the Eden branch of opdenkamp/xbmc, or the continuing master branch of opdenkamp/xbmc (i.e. leading to Frodo)? I ask because some have asked me to backport the mythtv support against the now stable Eden branch in the Fedora/RPM Fusion packages that I maintain.


RE: New MythTV add-on using libcmyth - tsp42 - 2012-04-18 00:10

Still working on the artwork thing. I will sync with dushmaniacs repo when it is done.
I will mainly follow the master branch but hope to backport the code to Eden stable.


RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-18 01:14

Anyone had an issue where live tv wont work after a reboot, both in myth front end and xbmc? If I reconfigure the backend it plays again until re-boot.


RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-18 01:27

this is the backend log on startup

2012-04-18 00:37:43.055 mythbackend version: fixes/0.24 [v0.24.1-80-g1de0431] http://www.mythtv.org
2012-04-18 00:37:43.399 Using runtime prefix = /usr
2012-04-18 00:37:43.492 Using configuration directory = /home/mythtv/.mythtv
2012-04-18 00:37:43.784 Empty LocalHostName.
2012-04-18 00:37:43.818 Using localhost value of HTPC
2012-04-18 00:37:44.653 New DB connection, total: 1
2012-04-18 00:37:45.018 Connected to database 'mythconverg' at host: localhost
2012-04-18 00:37:45.097 Closing DB connection named 'DBManager0'
2012-04-18 00:37:45.187 Connected to database 'mythconverg' at host: localhost
2012-04-18 00:37:45.482 Current locale en_US
2012-04-18 00:37:45.696 Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2012-04-18 00:37:47.275 Current MythTV Schema Version (DBSchemaVer): 1264
2012-04-18 00:37:49.239 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2012-04-18 00:37:49.763 MediaServer:: Loopback address specified - 127.0.0.1. Disabling UPnP
2012-04-18 00:37:49.917 MythBackend: Starting up as the master server.
2012-04-18 00:37:50.744 New DB connection, total: 2
2012-04-18 00:37:50.965 Connected to database 'mythconverg' at host: localhost
2012-04-18 00:37:51.946 DiSEqCDevTree, Warning: No device tree for cardid 9
2012-04-18 00:37:53.307 New DB connection, total: 3
2012-04-18 00:37:53.365 Connected to database 'mythconverg' at host: localhost
2012-04-18 00:37:53.537 DTVMux, Error: Invalid symbol rate parameter '0', aborting.
2012-04-18 00:37:53.565 DVBChan(9:/dev/dvb/adapter0/frontend0) Error: SetChannelByString(2): Failed to initialize multiplex options
2012-04-18 00:37:53.720 DTVMux, Error: Invalid symbol rate parameter '0', aborting.
2012-04-18 00:37:53.782 DVBChan(10:/dev/dvb/adapter0/frontend0) Error: SetChannelByString(2): Failed to initialize multiplex options
2012-04-18 00:37:55.442 DVBChan(11:/dev/dvb/adapter1/frontend0) Warning: Your frequency setting (10802750) is out of range. (min/max:45000000/864000000)
2012-04-18 00:37:55.506 DVBChan(11:/dev/dvb/adapter1/frontend0) Warning: Unsupported bandwidth parameter.
2012-04-18 00:37:55.589 DVBChan(11:/dev/dvb/adapter1/frontend0) Error: Tune(): Setting Frontend tuning parameters failed.
eno: Invalid argument (22)
2012-04-18 00:37:55.631 DVBChan(11:/dev/dvb/adapter1/frontend0) Error: SetChannelByString(1): Tuning to frequency.
2012-04-18 00:37:55.714 DVBChan(12:/dev/dvb/adapter1/frontend0) Warning: Your frequency setting (10802750) is out of range. (min/max:45000000/864000000)
2012-04-18 00:37:55.781 DVBChan(12:/dev/dvb/adapter1/frontend0) Warning: Unsupported bandwidth parameter.
2012-04-18 00:37:55.840 DVBChan(11:/dev/dvb/adapter1/frontend0) Error: Tune(): Setting Frontend tuning parameters failed.
eno: Invalid argument (22)
2012-04-18 00:37:55.898 DVBChan(12:/dev/dvb/adapter1/frontend0) Error: SetChannelByString(1): Tuning to frequency.
2012-04-18 00:37:55.958 New DB scheduler connection
2012-04-18 00:37:56.007 Connected to database 'mythconverg' at host: localhost
2012-04-18 00:37:56.081 Main::Registering HttpStatus Extension
2012-04-18 00:37:56.157 Enabled verbose msgs: important general
2012-04-18 00:37:56.237 AutoExpire: CalcParams(): Max required Free Space: 1.0 GB w/freq: 15 min


Re: RE: New MythTV add-on using libcmyth - robweber - 2012-04-18 02:18

(2012-04-18 01:14)bilbonvidia Wrote:  Anyone had an issue where live tv wont work after a reboot, both in myth front end and xbmc? If I reconfigure the backend it plays again until re-boot.

That seems more like a mythtv problem. You may want to post this on their forums. Also please use a site like paste bin for your log files.


RE: New MythTV add-on using libcmyth - bilbonvidia - 2012-04-18 13:34

I have done and thanks for the pastebin pointer.


RE: New MythTV add-on using libcmyth - 321liftoff - 2012-04-20 00:17

@tsp42,

Thanks for the response. Logs below as requested:
MythTV:
http://pastebin.com/kiZSSpSJ
XBMC:
http://pastebin.com/VgiqS8ZS


RE: New MythTV add-on using libcmyth - tekdoc_ - 2012-04-20 02:20

(2012-04-16 19:31)tsp42 Wrote:  321liftoff and tekdoc_: Could you please pastebin the mythtv log and xbmc log with the extended debug info enabled in the mythtv-cmyth addon configuration. use the "all, nodatabase" debug view for the mythtv log

@tsp42, thanks for responding. Just wanted to let you know I recompiled xbmc and deleted my mythtv database, restored a clean one and reconfigured mythbackend and now live TV is working Smile


RE: New MythTV add-on using libcmyth - InoD - 2012-04-20 17:58

Somehow, myth:// seems to be broken since somewhere after a Feb 26 build. I'm integrating your XBMC into OpenELEC's PVR build and today I decided to re-install my system because the latest builds from OpenELEC wouldn't work with my old installation. I'm not quite sure this problem is related to your branch, but I haven't found anyone else reporting this problem on other PVR branches.
When I try to go to "All recordings" or to any show in "TV shows", XBMC crashes and is then restarted.

XBMC log:
http://pastebin.com/Dzn4EqXk
MythTV backend log:
http://pastebin.com/JtEpX8QX

On the same system, playing browsing / playing recordings from 'Live TV > Recordings' and MythBox work fine, but neither of them keep track of what we watched... with > 200 recordings, that is kinda handy.
On Windows (build from March 21; build from April 9 doesn't want to work properly) myth:// does not cause a crash.


RE: New MythTV add-on using libcmyth - fiveisalive - 2012-04-20 18:18

(2012-04-20 17:58)InoD Wrote:  Somehow, myth:// seems to be broken since somewhere after a Feb 26 build. I'm integrating your XBMC into OpenELEC's PVR build and today I decided to re-install my system because the latest builds from OpenELEC wouldn't work with my old installation. I'm not quite sure this problem is related to your branch, but I haven't found anyone else reporting this problem on other PVR branches.
When I try to go to "All recordings" or to any show in "TV shows", XBMC crashes and is then restarted.

XBMC log:
http://pastebin.com/Dzn4EqXk
MythTV backend log:
http://pastebin.com/JtEpX8QX

On the same system, playing browsing / playing recordings from 'Live TV > Recordings' and MythBox work fine, but neither of them keep track of what we watched... with > 200 recordings, that is kinda handy.
On Windows (build from March 21; build from April 9 doesn't want to work properly) myth:// does not cause a crash.

I see the same issue in my self-compiled build from master on Fedora Linux, using MythTV 0.23.1-fixes branch.


RE: New MythTV add-on using libcmyth - InoD - 2012-04-20 18:41

(2012-04-20 18:18)fiveisalive Wrote:  I see the same issue in my self-compiled build from master on Fedora Linux, using MythTV 0.23.1-fixes branch.
Interesting...
My master is running on Ubuntu 10.04, using MythTV 0.23.0+fixes24158-ubuntu2 with one library patched (some IPTV fix).


RE: New MythTV add-on using libcmyth - tdavis - 2012-04-20 18:57

It crashes against a 0.24 service also..


RE: New MythTV add-on using libcmyth - tdavis - 2012-04-20 19:24

(2012-04-20 17:58)InoD Wrote:  Somehow, myth:// seems to be broken since somewhere after a Feb 26 build. I'm integrating your XBMC into OpenELEC's PVR build and today I decided to re-install my system because the latest builds from OpenELEC wouldn't work with my old installation. I'm not quite sure this problem is related to your branch, but I haven't found anyone else reporting this problem on other PVR branches.

I'd like to get ahold of openelec-pvr branch that your working on.. Please let me know if I can help in any way!


RE: New MythTV add-on using libcmyth - InoD - 2012-04-20 21:43

(2012-04-20 19:24)tdavis Wrote:  I'd like to get ahold of openelec-pvr branch that your working on.. Please let me know if I can help in any way!
What I do is pull a clean copy of OpenELEC (https://github.com/OpenELEC/OpenELEC.tv.git; master branch).
A modified version of mkpkg_xbmc_pvr then pulls and packs tsp's XBMC PVR sources.
I upload those to my local webserver.
My build script then locally modifies OpenELEC's meta file for xbmc-pvr and renames the patches. (well, it does a little more, but that's the idea)
It then tries to do incremental build of OpenELEC.
This build process is not really stable, because OpenELEC incremental builds tend to break, so I need to clean build results manually (and wait a long time for a full build).
When OpenELEC v2 is released, I will probably use those sources instead of a git pull.

Anyway, I can upload my build results (64-bit ION and Ultra only) to Dropbox when I've got a successful build for both.
My latest successful build:
OpenELEC_PVR-ION.x86_64-devel-20120410202935-r10494.tar.bz2
OpenELEC_PVR-Ultra.x86_64-devel-20120410214446-r10494.tar.bz2