New MythTV add-on using libcmyth

  Thread Rating:
  • 8 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tsp42 Offline
Senior Member
Posts: 222
Joined: Aug 2011
Reputation: 11
Location: Denmark
Post: #11
Did you install all the dependencies?
Code:
sudo apt-get install git-core make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound-dev python-sqlite libglew-dev libcurl3 libcurl4-gnutls-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmpeg3-dev libflac-dev libiso9660-dev libass-dev libssl-dev fp-compiler gdc libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs python-dev libyajl-dev libboost-thread-dev libplist-dev autopoint
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #12
tsp42 Wrote:Thanks for testing. It should be fixed now on github. I will update the windows build later.
It looks like it have been a while since dtierney was online but I will speak to him when he comes back.

I have tested the most recent git:

recording does indeed work.


Would you be able to have a look at :

- only pulling current and future timers in to xbmc
- sorting the recordings by date

Also xbmc locks up and uses a massive amount of memory (600+ MB) when launching and updating the tv database. I dont know if this is caused by the add-on or the xbmc.

Thank you,

Dubstar_04

All Things PVR
find quote
iscraigh Offline
Member
Posts: 77
Joined: Jul 2008
Reputation: 0
Post: #13
I had not installed the dependancies.
Just compiling now, taking a while.

Craig
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #14
iscraigh Wrote:I had not installed the dependancies.
Just compiling now, taking a while.

Craig

once it has compiled once you can simply

Code:
cd xbmc

git pull

make

sudo make install


it will only take a few seconds to build and install.

All Things PVR
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #15
Can anyone who is testing the mythtv builds help with debugging?

it is done as follows:


Code:
gdb /usr/local/lib/xbmc/xbmc.bin

start

continue

If you have any crashes / segfaults post your terminal output to pastebin and paste the link here.

also logs can be useful, found here:

Code:
~/.xbmc/temp


DO NOT POST LOGS OR OUTPUT DIRECTLY HERE!! (Use a pastebin)

I prefer ubuntu pastebin: http://paste.ubuntu.com/

Thanks,

Dubstar_04

All Things PVR
find quote
cflynt Offline
Junior Member
Posts: 5
Joined: Mar 2011
Reputation: 0
Post: #16
iscraigh Wrote:Still not having any luck installing, when I follow your commands I get..


Code:
craig@LR-frontend:/$ sudo git clone https://github.com/tsp/xbmc.git
Cloning into xbmc...
remote: Counting objects: 146384, done.
remote: Compressing objects: 100% (50429/50429), done.
remote: Total 146384 (delta 103449), reused 131530 (delta 92946)
Receiving objects: 100% (146384/146384), 286.94 MiB | 2.74 MiB/s, done.
Resolving deltas: 100% (103449/103449), done.
craig@LR-frontend:/$ cd xbmc/
craig@LR-frontend:/xbmc$ ./bootstrap
./bootstrap: 5: autoreconf: not found
craig@LR-frontend:/xbmc$ ls
addons        CONTRIBUTORS       gitrev.sh       LICENSE.GPL          media         README.linux   system    XBMC-ATV2.xcodeproj
bootstrap     copying.txt        keymapping.txt  m4                   project       README.osx     tools     XBMC-IOS.xcodeproj
build-aux     docs               language        Makefile.in          README.armel  README.ubuntu  userdata  XBMC.xcodeproj
configure.in  doxygen_resources  lib             Makefile.include.in  README.ios    sounds         xbmc      xbmc-xrandr.c

What am I missing?

Thanks

Craig

Ignore this I had not installed the build dependancies.

Also for other rookies I had to run the bootstrap/configure commands as sudo

You had to run the bootstrap/configure commands as sudo because you grabbed the repository as sudo, so your local user didn't have permissions to write to the directory. You can fix this in the future by doing a

Code:
sudo chown -R username.usernmae directory

username obviously being your local user and directory being the xbmc directory.
find quote
tsp42 Offline
Senior Member
Posts: 222
Joined: Aug 2011
Reputation: 11
Location: Denmark
Post: #17
dubstar_04 Wrote:I have tested the most recent git:

recording does indeed work.


Would you be able to have a look at :

- only pulling current and future timers in to xbmc
- sorting the recordings by date

Also xbmc locks up and uses a massive amount of memory (600+ MB) when launching and updating the tv database. I dont know if this is caused by the add-on or the xbmc.

Thank you,

Dubstar_04
The add-on caches the EPG information and I suspect that it can double the memory usage especially if you have hundreds or more channels. It should however be fixable. I will try to look into the sorting of the recordings. It will be easy to fix if XBMC uses the same order as the recordings are added.
I will try to figure out how to present the mythtv timers that matches titles instead of a specific time slot. I 'm not sure how mythtv handles it in the SQL database. Anyway I will try to implement it Sunday.

Another thing, remember to enable the extensive debug option in the addon configuratiob before posting the debug logs. It is disabled by default as it spams the log file.
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #18
tsp42 Wrote:The add-on caches the EPG information and I suspect that it can double the memory usage especially if you have hundreds or more channels. It should however be fixable. I will try to look into the sorting of the recordings. It will be easy to fix if XBMC uses the same order as the recordings are added.
I will try to figure out how to present the mythtv timers that matches titles instead of a specific time slot. I 'm not sure how mythtv handles it in the SQL database. Anyway I will try to implement it Sunday.

Another thing, remember to enable the extensive debug option in the addon configuratiob before posting the debug logs. It is disabled by default as it spams the log file.

Wow, that would be cool if you could find time to have a look at the timers and recordings.

What is your intention going forward?

Do you aim to maintain the add-on and keep it sync'd with dushmaniacs branch?

All Things PVR
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #19
in function PVR_ERROR PVRClientMythTV::GetTimers(PVR_HANDLE handle)
I am using the following simple fix to only collect timers after the current time:

Code:
time_t timeNow;
      timeNow = time (NULL);
      if (tag.startTime < timeNow)
      continue;

after

Code:
tag.startTime=it->StartTime();

This is a simple fix and would probably need adjusting to capture currently happening recordings.

This has not been tested so may not work over a number of days, i.e if the database is updated?

I hope this helps.

Edit: This seems to be working ok. i've not tested it too much though.



Thanks,

Dubstar_04

All Things PVR
(This post was last modified: 2011-09-25 19:45 by dubstar_04.)
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #20
I have problem with the memory usage climbing to 1.5gb when the database is first populated. I.e if I delete the database from the settings and turn the client on the whole machine locks up.

Does anyone know how to find memory leaks?

Valgrind?

Thanks,

dubstar_04

All Things PVR
find quote
Post Reply