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 - grouser53 - 2013-01-13

(2013-01-12, 14:15)cfetzer Wrote:
(2013-01-10, 01:54)grouser53 Wrote:
(2013-01-08, 21:33)cfetzer Wrote: Have you seen the seek problem also in previous versions? There were a couple of commits in xbmc recently that claim to have fixed some problems in seeking pvr streams.
Can you try to use tomorrow's nightly build?

I loaded the nightly build 20130109 and the issue persists. I realize that you don't think this is addon related, but the xbmc player (omxplayer in raspbmc) seek works correctly when the mythtv recordings directory is mounted via nfs to the pi. I read somewhere (maybe in this forum) that some conversion needs done between time and frame seeking in the addon. Could that be contributory? I've noticed that the skip commercial functionality of mythtv also doesn't work correctly on these recordings. It usually skips too far. These recordings were encoded by a Hauppauge 1600 from an analog cable feed. The times listed in mythtv for the longer recordings also appear incorrect with 1 hour recordings showing around 52 minutes. Perhaps if you or janbar could take a look at the log http://www.mediafire.com/download.php?20idnuhryfyroee there might be some hints. Thank you for your attention to this and your and janbar's work on the addon.

I've tested now both raspbmc and openelec. Both play and skip fine hd and sd recordings (if mpeg2 codec is enabled). Any chance that you upload a sample file? (for example on dropbox)

hmmm, well that seems to point to something in my environment. I haven't had any issues with hd, just sd recorded from the analog cable channels. I uploaded a 5 minute CNN recording that exhibits the seek issue, both forward and reverse seek, here - http://www.mediafire.com/download.php?tipt6pee5yruz2t. I have right arrow set to 30 secs forward and left arrow to 5 secs backward and either cause raspbmc to return to the recordings listing. My mythbackend version is v0.25.3-29-g010e576.




RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-13

Thanks, could you please also export and upload the corresponding database values?
That'll make it easier for me to import.

Code:
mysqldump -u mythtv -p -t --where="chanid=3003 AND starttime='2013-01-12 12:50:00'" mythconverg recorded recordedseek recordedmarkup > backup.sql



RE: New MythTV add-on using libcmyth - grouser53 - 2013-01-13

(2013-01-13, 13:11)cfetzer Wrote: Thanks, could you please also export and upload the corresponding database values?
That'll make it easier for me to import.

Code:
mysqldump -u mythtv -p -t --where="chanid=3003 AND starttime='2013-01-12 12:50:00'" mythconverg recorded recordedseek recordedmarkup > backup.sql

File is here - http://www.mediafire.com/download.php?v1q0gvjh7fnld0s. New fixes came out. Mythbackend is now at v0.25.3-31-gfa3ebd4, but still same issue.


RE: New MythTV add-on using libcmyth - richardk - 2013-01-14

I'm seeing frequent XBMC crashes when the PVR Manager completes its initial startup after a boot. I've seen the same symptom on various platforms, including OpenELEC ION, OpenELEC Rpi, and Ubuntu (but never on Windows).

Immediately after the PVR Manager starts up, XBMC crashes, and this may be repeated one to three times. After that, the system starts up normally, and does not crash again until after the next boot.

I'm running with a MythTV 0.26 backend on Ubuntu 12.10. I have about 1200 recordings stored, in case that might be a clue to the problem.

Here is a debug log (from XBMC running on Ubuntu).

http://pastebin.com/a8zczhRz



RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-14

(2013-01-14, 01:42)richardk Wrote: I'm seeing frequent XBMC crashes when the PVR Manager completes its initial startup after a boot. I've seen the same symptom on various platforms, including OpenELEC ION, OpenELEC Rpi, and Ubuntu (but never on Windows).

Immediately after the PVR Manager starts up, XBMC crashes, and this may be repeated one to three times. After that, the system starts up normally, and does not crash again until after the next boot.

I'm running with a MythTV 0.26 backend on Ubuntu 12.10. I have about 1200 recordings stored, in case that might be a clue to the problem.

Here is a debug log (from XBMC running on Ubuntu).

http://pastebin.com/a8zczhRz

Please try to build the dev version of the addon from github.com/fetzerch/xbmc-pvr-addons (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource). If it still crashes,then please install gdb and upload a crash report that shows us exactly where it crashes (http://wiki.xbmc.org/index.php?title=HOW-TO:Submit_a_bug_report#Crash_Report)


RE: New MythTV add-on using libcmyth - richardambridge - 2013-01-14

(2013-01-11, 22:24)cfetzer Wrote:
(2013-01-11, 10:47)richardambridge Wrote:
(2013-01-10, 22:04)cfetzer Wrote: What version of the addon do you use? The development version in git should combine channels if they share the same channum and callsign:
https://github.com/fetzerch/xbmc-pvr-addons/commit/2e365b178db42c9eb37a186ee6ae2b740d43a407

Using latest version. Here is a log file http://paste.ubuntu.com/1519299/
Log file generated as, start xbmc, Live Tv, TV Channels, exit TV Channels is showing multiple BBC ONE, BBC Two, etc.

I'd need to see the content of your mythtv channel table (for 2 channels that should be combined as one).
Did you verify that callsign and channum are the same for those channels?

Code:
mysql> select * from channel where callsign='BBC ONE';
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
| chanid | channum | freqid | sourceid | callsign | name    | icon                                        | finetune | videofilters | xmltvid | recpriority | contrast | brightness | colour | hue   | tvformat | visible | outputfilters | useonairguide | mplexid | serviceid | tmoffset | atsc_major_chan | atsc_minor_chan | last_record         | default_authority | commmethod | iptvid |
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
|   1001 | 1       | 24     |        1 | BBC ONE  | BBC ONE | /home/rambridg/.mythtv/channels/bbc_one.jpg |        0 |              |         |           0 |    32768 |      32768 |  32768 | 32768 |          |       1 |               |             1 |      62 |      4163 |        0 |               0 |               0 | 2013-01-08 19:55:00 | fp.bbc.co.uk      |         -2 |   NULL |
|   2001 | 1       | 24     |        2 | BBC ONE  | BBC ONE | /home/rambridg/.mythtv/channels/bbc_one.jpg |        0 |              |         |           0 |    32768 |      32768 |  32768 | 32768 |          |       1 |               |             1 |       9 |      4163 |        0 |               0 |               0 | 2013-01-07 21:00:02 | fp.bbc.co.uk      |         -2 |   NULL |
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
2 rows in set (0.00 sec)

mysql> select callsign,channum,chanid,name from channel where callsign='BBC ONE';
+----------+---------+--------+---------+
| callsign | channum | chanid | name    |
+----------+---------+--------+---------+
| BBC ONE  | 1       |   1001 | BBC ONE |
| BBC ONE  | 1       |   2001 | BBC ONE |
+----------+---------+--------+---------+
2 rows in set (0.00 sec)



RE: New MythTV add-on using libcmyth - richardk - 2013-01-14

(2013-01-14, 09:56)cfetzer Wrote:
(2013-01-14, 01:42)richardk Wrote: I'm seeing frequent XBMC crashes when the PVR Manager completes its initial startup after a boot. I've seen the same symptom on various platforms, including OpenELEC ION, OpenELEC Rpi, and Ubuntu (but never on Windows).

Immediately after the PVR Manager starts up, XBMC crashes, and this may be repeated one to three times. After that, the system starts up normally, and does not crash again until after the next boot.

I'm running with a MythTV 0.26 backend on Ubuntu 12.10. I have about 1200 recordings stored, in case that might be a clue to the problem.

Here is a debug log (from XBMC running on Ubuntu).

http://pastebin.com/a8zczhRz

Please try to build the dev version of the addon from github.com/fetzerch/xbmc-pvr-addons (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource). If it still crashes,then please install gdb and upload a crash report that shows us exactly where it crashes (http://wiki.xbmc.org/index.php?title=HOW-TO:Submit_a_bug_report#Crash_Report)

Thanks for the quick response! I will build from source, and report whether the crash still occurs later today.

In the meantime, here is the xbmc_crashlog from yesterday's crash, in case that might be helpful. (Sorry for missing that before.)

http://pastebin.com/y6dqWuGy




RE: New MythTV add-on using libcmyth - richardk - 2013-01-14

(2013-01-14, 14:43)richardk Wrote:
(2013-01-14, 09:56)cfetzer Wrote:
(2013-01-14, 01:42)richardk Wrote: I'm seeing frequent XBMC crashes when the PVR Manager completes its initial startup after a boot. I've seen the same symptom on various platforms, including OpenELEC ION, OpenELEC Rpi, and Ubuntu (but never on Windows).

Immediately after the PVR Manager starts up, XBMC crashes, and this may be repeated one to three times. After that, the system starts up normally, and does not crash again until after the next boot.

I'm running with a MythTV 0.26 backend on Ubuntu 12.10. I have about 1200 recordings stored, in case that might be a clue to the problem.

Here is a debug log (from XBMC running on Ubuntu).

http://pastebin.com/a8zczhRz

Please try to build the dev version of the addon from github.com/fetzerch/xbmc-pvr-addons (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource). If it still crashes,then please install gdb and upload a crash report that shows us exactly where it crashes (http://wiki.xbmc.org/index.php?title=HOW-TO:Submit_a_bug_report#Crash_Report)

Thanks for the quick response! I will build from source, and report whether the crash still occurs later today.

In the meantime, here is the xbmc_crashlog from yesterday's crash, in case that might be helpful. (Sorry for missing that before.)

http://pastebin.com/y6dqWuGy

Ok, I rebuilt the addon from source and installed it according to the instructions here:

http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource

The first time I rebooted, it did not crash. Then I started a recording on the backend, rebooted the frontened, and got the crash. Here's the latest crash log:

http://pastebin.com/73J8mMpi

Hope this helps. Let me know if there's anything more I can do to help diagnose the problem.


RE: New MythTV add-on using libcmyth - richardk - 2013-01-14

(2013-01-14, 15:51)richardk Wrote:
(2013-01-14, 14:43)richardk Wrote:
(2013-01-14, 09:56)cfetzer Wrote: Please try to build the dev version of the addon from github.com/fetzerch/xbmc-pvr-addons (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource). If it still crashes,then please install gdb and upload a crash report that shows us exactly where it crashes (http://wiki.xbmc.org/index.php?title=HOW-TO:Submit_a_bug_report#Crash_Report)

Thanks for the quick response! I will build from source, and report whether the crash still occurs later today.

In the meantime, here is the xbmc_crashlog from yesterday's crash, in case that might be helpful. (Sorry for missing that before.)

http://pastebin.com/y6dqWuGy

Ok, I rebuilt the addon from source and installed it according to the instructions here:

http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource

The first time I rebooted, it did not crash. Then I started a recording on the backend, rebooted the frontened, and got the crash. Here's the latest crash log:

http://pastebin.com/73J8mMpi

Hope this helps. Let me know if there's anything more I can do to help diagnose the problem.

Here's one more crash log, this time with the additional debug information enable for the addon.

http://pastebin.com/jcwbA0hb



RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-14

(2013-01-14, 17:36)richardk Wrote:
(2013-01-14, 15:51)richardk Wrote:
(2013-01-14, 14:43)richardk Wrote: Thanks for the quick response! I will build from source, and report whether the crash still occurs later today.

In the meantime, here is the xbmc_crashlog from yesterday's crash, in case that might be helpful. (Sorry for missing that before.)

http://pastebin.com/y6dqWuGy

Ok, I rebuilt the addon from source and installed it according to the instructions here:

http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource

The first time I rebooted, it did not crash. Then I started a recording on the backend, rebooted the frontened, and got the crash. Here's the latest crash log:

http://pastebin.com/73J8mMpi

Hope this helps. Let me know if there's anything more I can do to help diagnose the problem.

Here's one more crash log, this time with the additional debug information enable for the addon.

http://pastebin.com/jcwbA0hb

Thanks, this helps a lot! I can see in the logs that the crash was happening somewhere in the function IsRecordingVisible.
This doesn't exist any more, so it looks like you're not running the new addon code.
The configure parameter and "make clean zip" is important.

Code:
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip

So can you please try it again and also please enable 'debug log' for xbmc (http://wiki.xbmc.org/index.php?title=Log_file). You log doesn't contain DEBUG messages. (only NOTICE and ERROR).

Cheers,
Christian


RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-14

(2013-01-14, 10:36)richardambridge Wrote:
(2013-01-11, 22:24)cfetzer Wrote:
(2013-01-11, 10:47)richardambridge Wrote: Using latest version. Here is a log file http://paste.ubuntu.com/1519299/
Log file generated as, start xbmc, Live Tv, TV Channels, exit TV Channels is showing multiple BBC ONE, BBC Two, etc.

I'd need to see the content of your mythtv channel table (for 2 channels that should be combined as one).
Did you verify that callsign and channum are the same for those channels?

Code:
mysql> select * from channel where callsign='BBC ONE';
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
| chanid | channum | freqid | sourceid | callsign | name    | icon                                        | finetune | videofilters | xmltvid | recpriority | contrast | brightness | colour | hue   | tvformat | visible | outputfilters | useonairguide | mplexid | serviceid | tmoffset | atsc_major_chan | atsc_minor_chan | last_record         | default_authority | commmethod | iptvid |
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
|   1001 | 1       | 24     |        1 | BBC ONE  | BBC ONE | /home/rambridg/.mythtv/channels/bbc_one.jpg |        0 |              |         |           0 |    32768 |      32768 |  32768 | 32768 |          |       1 |               |             1 |      62 |      4163 |        0 |               0 |               0 | 2013-01-08 19:55:00 | fp.bbc.co.uk      |         -2 |   NULL |
|   2001 | 1       | 24     |        2 | BBC ONE  | BBC ONE | /home/rambridg/.mythtv/channels/bbc_one.jpg |        0 |              |         |           0 |    32768 |      32768 |  32768 | 32768 |          |       1 |               |             1 |       9 |      4163 |        0 |               0 |               0 | 2013-01-07 21:00:02 | fp.bbc.co.uk      |         -2 |   NULL |
+--------+---------+--------+----------+----------+---------+---------------------------------------------+----------+--------------+---------+-------------+----------+------------+--------+-------+----------+---------+---------------+---------------+---------+-----------+----------+-----------------+-----------------+---------------------+-------------------+------------+--------+
2 rows in set (0.00 sec)

mysql> select callsign,channum,chanid,name from channel where callsign='BBC ONE';
+----------+---------+--------+---------+
| callsign | channum | chanid | name    |
+----------+---------+--------+---------+
| BBC ONE  | 1       |   1001 | BBC ONE |
| BBC ONE  | 1       |   2001 | BBC ONE |
+----------+---------+--------+---------+
2 rows in set (0.00 sec)

Thanks. Hm that is really strange. The addon code will only announce one channel to xbmc (if they have channum and callsign).
You should see something like this in the log: "AddOnLog: MythTV cmyth PVR Client: PVRClientMythTV::GetChannels - skipping channel: 2001" but I can't see it in yours.

Since some users got already tricked by the build system.
Please tripple check that you are running a freshly compiled addon. (http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource)
Especially the "make clean zip" is important. Also check the addon file dates.
Maybe it helps also to remove the TVx.db and EPGx.db from .xbmc/userdata/Database.



RE: New MythTV add-on using libcmyth - richardk - 2013-01-14

(2013-01-14, 22:00)cfetzer Wrote:
(2013-01-14, 17:36)richardk Wrote:
(2013-01-14, 15:51)richardk Wrote: Ok, I rebuilt the addon from source and installed it according to the instructions here:

http://wiki.xbmc.org/index.php?title=PVR/Backend/MythTV/BuildFromSource

The first time I rebooted, it did not crash. Then I started a recording on the backend, rebooted the frontened, and got the crash. Here's the latest crash log:

http://pastebin.com/73J8mMpi

Hope this helps. Let me know if there's anything more I can do to help diagnose the problem.

Here's one more crash log, this time with the additional debug information enable for the addon.

http://pastebin.com/jcwbA0hb

Thanks, this helps a lot! I can see in the logs that the crash was happening somewhere in the function IsRecordingVisible.
This doesn't exist any more, so it looks like you're not running the new addon code.
The configure parameter and "make clean zip" is important.

Code:
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip

So can you please try it again and also please enable 'debug log' for xbmc (http://wiki.xbmc.org/index.php?title=Log_file). You log doesn't contain DEBUG messages. (only NOTICE and ERROR).

Cheers,
Christian

Thanks so much, Christian!

I think the addon that I built from source didn't get applied when I followed the instructions and did "install from zip file" within XBMC. I manually copied the file XBMC_MythTV_cmyth.pvr to the directory /usr/lib/xbmc/addons/pvr.mythtv.cmyth.

If that was the right thing to do, perhaps the page of instructions for building from source should be updated to include that.

In any case...since doing that, I haven't been able to replicate the crash. I've tried stopping and restarting XBMC several times, including with programs recording.

Also...the addon seems *much* faster.when starting up, when switching between menus,and when exiting from a video. Before, it would sometimes hang for 3-5 minutes when first bringing up the program titles menu or when exiting after watching a program. It's working perfectly now.

If, as appears to be the case, the current version fixes all these problems, I hope it will be pushed out soon to all users. I would like to use it with OpenELEC, but I'll wait till it's updated in that distribution.




RE: New MythTV add-on using libcmyth - fetzerch - 2013-01-16

(2013-01-13, 20:28)grouser53 Wrote:
(2013-01-13, 13:11)cfetzer Wrote: Thanks, could you please also export and upload the corresponding database values?
That'll make it easier for me to import.

Code:
mysqldump -u mythtv -p -t --where="chanid=3003 AND starttime='2013-01-12 12:50:00'" mythconverg recorded recordedseek recordedmarkup > backup.sql

File is here - http://www.mediafire.com/download.php?v1q0gvjh7fnld0s. New fixes came out. Mythbackend is now at v0.25.3-31-gfa3ebd4, but still same issue.

Thanks. Janbar and I had a look and did some testing with your sample. The issue you are describing is reproducible also on the desktop.
Unfortunately we see exactly the same behavior also when playing the file in xbmc using the file manager (copy the file to the local disk and use video->files to open the file).
Other tools like mplayer play the file fine. From the addon side, we see that our seek function does not get called correctly from xbmc.

The issue is most likely somewhere in xbmc's ffmpeg or demuxer code.
I suggest that you open a bugreport on trac.xbmc.org including the link to the mpeg file.

Thanks,
Christian
(2013-01-14, 22:45)richardk Wrote:
(2013-01-14, 22:00)cfetzer Wrote:
(2013-01-14, 17:36)richardk Wrote: Here's one more crash log, this time with the additional debug information enable for the addon.

http://pastebin.com/jcwbA0hb

Thanks, this helps a lot! I can see in the logs that the crash was happening somewhere in the function IsRecordingVisible.
This doesn't exist any more, so it looks like you're not running the new addon code.
The configure parameter and "make clean zip" is important.

Code:
git clone git://github.com/fetzerch/xbmc-pvr-addons.git
cd xbmc-pvr-addons
./bootstrap
./configure --enable-addons-with-dependencies
make clean zip

So can you please try it again and also please enable 'debug log' for xbmc (http://wiki.xbmc.org/index.php?title=Log_file). You log doesn't contain DEBUG messages. (only NOTICE and ERROR).

Cheers,
Christian

Thanks so much, Christian!

I think the addon that I built from source didn't get applied when I followed the instructions and did "install from zip file" within XBMC. I manually copied the file XBMC_MythTV_cmyth.pvr to the directory /usr/lib/xbmc/addons/pvr.mythtv.cmyth.

If that was the right thing to do, perhaps the page of instructions for building from source should be updated to include that.

In any case...since doing that, I haven't been able to replicate the crash. I've tried stopping and restarting XBMC several times, including with programs recording.

Also...the addon seems *much* faster.when starting up, when switching between menus,and when exiting from a video. Before, it would sometimes hang for 3-5 minutes when first bringing up the program titles menu or when exiting after watching a program. It's working perfectly now.

If, as appears to be the case, the current version fixes all these problems, I hope it will be pushed out soon to all users. I would like to use it with OpenELEC, but I'll wait till it's updated in that distribution.

Great to hear! Yes we'd also like to publish a new version as soon as possible. We already know that the users are waiting for this.
Cheers,
Christian


RE: New MythTV add-on using libcmyth - grouser53 - 2013-01-16

(2013-01-16, 00:40)cfetzer Wrote:
(2013-01-13, 20:28)grouser53 Wrote:
(2013-01-13, 13:11)cfetzer Wrote: Thanks, could you please also export and upload the corresponding database values?
That'll make it easier for me to import.

Code:
mysqldump -u mythtv -p -t --where="chanid=3003 AND starttime='2013-01-12 12:50:00'" mythconverg recorded recordedseek recordedmarkup > backup.sql

File is here - http://www.mediafire.com/download.php?v1q0gvjh7fnld0s. New fixes came out. Mythbackend is now at v0.25.3-31-gfa3ebd4, but still same issue.

Thanks. Janbar and I had a look and did some testing with your sample. The issue you are describing is reproducible also on the desktop.
Unfortunately we see exactly the same behavior also when playing the file in xbmc using the file manager (copy the file to the local disk and use video->files to open the file).
Other tools like mplayer play the file fine. From the addon side, we see that our seek function does not get called correctly from xbmc.

The issue is most likely somewhere in xbmc's ffmpeg or demuxer code.
I suggest that you open a bugreport on trac.xbmc.org including the link to the mpeg file.

Thanks,
Christian

Thanks for your time on this. I've opened http://trac.xbmc.org/ticket/13976.






RE: New MythTV add-on using libcmyth - davilla - 2013-01-16

do the nighties show the same issue ?