New MythTV add-on using libcmyth

  Thread Rating:
  • 8 Votes - 4.75 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
fiveisalive Offline
Fan
Posts: 345
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #131
I renumbered my channels (as previously suggested, and now Live TV works just fine, and the EPG data seems correct (when I can get it to load). Great! (Although it would be good in the long run if it could handle the subchannels like 2.1 or 2_1).

Getting the EPG data, and having it stay there, seems to be the most unstable of the features. In the cases where I have managed to get the data to completely load (and have set the "save EPG database" to on). If I shutdown and restart xbmc, the data is gone and I have to re-scan (however this will often crash, see above).

Also even with the settings to update EPG every 15 mins (the minimum), I haven't ever seen the add-on attempt to reload the data in the log. When I visit the "EPG" option in the sidebar, I've noticed in the that for some reason the end date is incorrect:

Code:
03:14:54 T:140304998864928   DEBUG: OnKey: 11 (0b) pressed, action is Select
03:14:54 T:140304998864928   DEBUG: CGUIWindowPVRGuide - UpdateData - update window 'epg'. set view to 16
03:14:54 T:140304998864928   DEBUG: CGUIEPGGridContainer - SetStartEnd - start=10/18/2011 3:00:00 AM end=01/01/1601 12:00:00 AM
03:14:54 T:140304998864928   ERROR: CGUIEPGGridContainer - UpdateItems - invalid start and end time set
find quote
stevellion Offline
Senior Member
Posts: 186
Joined: Mar 2004
Reputation: 0
Post: #132
I too am getting the occasional crash while loading the channels & EPG data.

Have switched my main HTPC to this branch now though.

(but still using the myth:// source to watch recordings as they are grouped by Programme)

Thanks!
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #133
Install XBMC PVR with cmyth Addon for Ubuntu 10.10 (Maveric):

Code:
sudo apt-get install git 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

Code:
git clone https://github.com/tsp/xbmc.git

Code:
cd xbmc

Code:
./bootstrap

Code:
./configure

Code:
make

Code:
make install

All Things PVR
(This post was last modified: 2011-10-18 19:52 by dubstar_04.)
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #134
Rough Guide To Installing Mythtv:

Mythbuntu: Add to Existing Ubuntu Install:

Go to: http://www.mythbuntu.org/download-type

Select 'Add to Existing Ubuntu Install'

Once the install has finished:

Code:
system -> Administartion-> Mythbuntu control centre-> system roles

choose:

primary backend

desktop frontend

click apply

You will be asked a number of questions when installing mythbackend:

Root Password-> leave it blank

Other Computers-> yes

Exclusively for mythweb -> no

Once Installation is complete start mythtv:

Code:
Applications -> sound and video -> mythfrontend

warning box: must be a member of "mythtv" -> click yes, log out

When Logged back in you can go to:

Code:
System-> Administration-> Set up MythTv Backend

Configure your system.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Optional: Auto-mounting Media Partitions:

Find Drive Number / Name:

Code:
sudo fdisk -l

Terminal Output:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 5860 47067136 83 Linux
/dev/sda2 5860 91201 685502849+ 5 Extended
/dev/sda5 6104 91201 683549653+ 83 Linux
/dev/sda6 5860 6103 1952768 82 Linux swap / Solaris

In this case the media drive is sda5.

Open the fstab file to add the drive to 'auto mount':

Code:
sudo gedit /etc/fstab

Add something like:

# <file system> <mount point> <type> <options> <dump> <pass>

/dev/sda5 /media/media xfs defaults 0 1

'Drive Name' 'Mount Location' 'Partition format' 'Other stuff....'

Mount the partitions to test:

Code:
sudo mount -a

All Things PVR
(This post was last modified: 2011-10-18 21:10 by dubstar_04.)
find quote
dubstar_04 Offline
Senior Member
Posts: 228
Joined: May 2008
Reputation: 0
Location: Warrington, UK
Post: #135
I have started using this add-on instead of mythfrontend. I intend that it will gradually replace mythfrontend all together.

I keep noticing little bugs, i just need to remember to report them.

One issue is that the recordings aren't updated. The timers update instantly but if a recording starts i have to restart xbmc before it appears in the list.

A more general enquiry, what needs to be done to get time shifting implemented? i do miss not having it Sad

Thanks,

Dubstar_04

All Things PVR
find quote
orduek Offline
Junior Member
Posts: 48
Joined: Dec 2008
Reputation: 0
Post: #136
thank you very much for this addon and the guide.
I have one question though:
I see that through the menu bar I can pause the watching during liveTv but if I press the pause button of my remote it doesn't work.
find quote
tsp42 Offline
Senior Member
Posts: 222
Joined: Aug 2011
Reputation: 11
Location: Denmark
Post: #137
I'm trying to reproduce the EPG/Channel crash but not luck so fare. But I did uncover a deadlock in the PVR code.

Dubstar_04: Thanks for the tutorial. I will add it to the first post.
I suspect that the only thing missing for a working time shift(including the pause button) is skin support. Try searching for previous attempt to add time shifting to the confluence skin.
find quote
Jimmer Offline
Donor
Posts: 337
Joined: Jan 2010
Reputation: 3
Location: Sunny Devon, UK
Post: #138
tsp:

Spoke too soon about recordings showing up: sometimes they do (and quite soon afterwards) and sometimes they still haven't shown up 8 hours after they have finished recording.

Jim
find quote
fiveisalive Offline
Fan
Posts: 345
Joined: Jul 2009
Reputation: 0
Location: United States
Post: #139
tsp42 Wrote:I'm trying to reproduce the EPG/Channel crash but not luck so fare. But I did uncover a deadlock in the PVR code.

I think I might have only started getting the crashes when I started increasing the number of days in of EPG data to save to 10 or 14 days. (i.e. with the default of 2 days, I didn't see them, at least not as much). I did notice my CPU usage went up considerably while doing the reset EPG and the "save to db" option enabled when I had a larger number of days. Perhaps the problem is at the sqlite level?

Ideally I'd want all 14 days because SchedulesDirect provides the Mythbackend up to 14 days in advance, so I'd want that exposed to the PVR
find quote
robweber Offline
Fan
Posts: 598
Joined: Sep 2009
Reputation: 15
Post: #140
fiveisalive Wrote:I think I might have only started getting the crashes when I started increasing the number of days in of EPG data to save to 10 or 14 days. (i.e. with the default of 2 days, I didn't see them, at least not as much). I did notice my CPU usage went up considerably while doing the reset EPG and the "save to db" option enabled when I had a larger number of days. Perhaps the problem is at the sqlite level?

Ideally I'd want all 14 days because SchedulesDirect provides the Mythbackend up to 14 days in advance, so I'd want that exposed to the PVR

Just a question, but what is the point to having all 14 days just because the backend has it? Are you really looking that far ahead in your EPG data? The backend will still calculate all the upcoming recordings and such without XBMC having the guide data.

Just wondering.
find quote
Post Reply