• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 148
  • Next 
 
Thread Rating:
  • 8 Vote(s) - 4.75 Average
New MythTV add-on using libcmyth
#1
I've created a new PVR add-on for MythTV (v. 0.24). It only uses libcmyth (that has been modified with some additional functions to support the add-on).

Currently the following in working on windows and linux(ubuntu):

-LiveTV, including radio (at least with DVB)
-Timers (add, delete, modify)
-EPG
-Recordings
-Timeshifting (still work in progress)

Missing features/bugs
- Episode and season info in EPG
- Bookmark support (to skip commercials)
- Fast forward not working on some recordings/wrong duration reported (seems to be related to ffmpeg)
- ATSC subtitles (again lacking ffmpeg support)


Thanks to dubstar_04 for producing this video that demonstrate the add-on:

http://www.youtube.com/watch?v=1gA7YpbyxNM

The code is located at my git-hub account here:
https://github.com/tsp/xbmc

Please note that you will have to use my fork of xbmc PVR as the addon relies on some modification to the xbmc code.

Boost version 1.42 or later is needed. On Ubuntu make sure to install libboost-regex-dev and libboost-filesystem-dev in addition to libboost-dev

Windows build here:
Eden-PVR http://www.mediafire.com/?y5hdp8bd7d58mmu updated 24/6-2012
Master (=unstable) http://www.mediafire.com/?vq8widow9okf4dd updated 22/5-2012

Helpful guides/posts for installing the addon and mythtv on linux

Installing the Addon on ubuntu
http://forum.xbmc.org/showpost.php?p=915...tcount=133

Installing MythTV
http://forum.xbmc.org/showpost.php?p=915...tcount=134
http://forum.xbmc.org/showpost.php?p=916...tcount=157
http://forum.xbmc.org/showpost.php?p=916...tcount=153

VDPAU support
http://forum.xbmc.org/showpost.php?p=918...tcount=186

ATV1:
http://forum.xbmc.org/showpost.php?p=925...tcount=221

How to report a bug:
1) Check if it is a known xbmc PVR bug (search the forum or check issues on opdenkamps xbmc github repo.
2) make sure that "Enable debug logging" is enabled in system->settings->system->debugging and that "Include more debug information in the log" is enabled in system->settings->add-ons->installed add-ons->pvr clients->MythTV cmyth PVR client->configure
3) copy the xbmc.log to pastebin.com or a similar site
4) If you are experiencing deadlocks or crashes a full stack trace would also be appreciated. It is included in the crashlog but if xbmc hangs you need to use gdb to generate it by following the procedure:
a) get the process ID(PID) of xbmc.bin process i.e. "ps -A|grep xbmc.bin"
b) start gdb as superuser "sudo gdb"
c) attach to xbmc.bin "attach" + PID from a)
d) produce stack trace "thread apply all bt full"
e) post to pastebin
5) post a report in this thread or create a new issue on github or comment on an existing issue if it is a new bug.
Reply
#2
sounds good. have a chat with dteirney, cause he is/was maintaining the other mythtv add-on
opdenkamp / dushmaniac

xbmc-pvr [Eden-PVR builds] [now included in mainline XBMC, so no more source link here :)]
personal website: [link]

Found a problem with PVR? Report it on Trac, under "PVR - core components". Please attach the full debug log.

If you like my work, please consider donating to me and/or Team XBMC.
Reply
#3
I have done a small amount of testing.

Live Tv - Works
Radio - Works
Playback Recorded - Works
Deleting Recorded - Works
Setting Timers - Works*
Deleting Timers - Works

*Timers are entered into the database, but don't actually record.
xbmc reports 'recording aborted'

The schedules dont appear in mythtv. just the database.

Pastebin: http://pastebin.com/DvNaNvYX


You could probably do some checking to see if the database is accessible with the entered credentials.

Would it be possible to sort recordings by date?

Have you spoken with dtierney? he has done alot of work with the mythtv addon already.
All Things PVR
Reply
#4
My testing against my crusty 0.23-fixes backend - very impressive effort for so much to be working!

Live TV - works (no VDPAU though, so it's stuttery)
Radio - not tested (haven't got channels configured)
EPG - works
Playback recorded - hangs (pastebin)
Delete recorded - works
Sorry I can't test timers, - I don't have a spare environment to mess with..

There are some UI quirks:
- You have to press backspace to get out of the timer window, escape doesn't work
- In the radio/TV channels window when there are no radio channels you see an unnamed progress bar and the word "Next" at the bottom right
- In "EPG: Now", only some channels appear not all of them
- In "Recordings", only the title and description of the program are visible, the subtitle isn't shown
- Search only returns one or 2 results
- "next recording" message is showing one of the first recordings I ever did; from back in 2009.

Any idea how I can get it to use VDPAU, given mythfrontend is using VDPAU successfully? I've made sure it's enabled in the video settings..
Reply
#5
dubstar_04 Wrote:I have done a small amount of testing.

Live Tv - Works
Radio - Works
Playback Recorded - Works
Deleting Recorded - Works
Setting Timers - Works*
Deleting Timers - Works

*Timers are entered into the database, but don't actually record.
xbmc reports 'recording aborted'

The schedules dont appear in mythtv. just the database.

Pastebin: http://pastebin.com/DvNaNvYX


You could probably do some checking to see if the database is accessible with the entered credentials.

Would it be possible to sort recordings by date?

Have you spoken with dtierney? he has done alot of work with the mythtv addon already.

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.
Reply
#6
How can I install this on Ubuntu. I have some linux experience, can use the command line etc, just never used git.

Thanks
Craig
Reply
#7
iscraigh Wrote:How can I install this on Ubuntu. I have some linux experience, can use the command line etc, just never used git.

Thanks
Craig

I just started in on the PVR builds last night and this one was the only one I could get LiveTV going on, mind you it still crashes a lot. But not 100% sure if it is just the system I am running it on, not one of my production boxes that have more memory etc heh. But I basically used the steps from this thread and got things compiled and installed. Check out the README.ubuntu after grabbing the Repository for dependencies you will need. Someone do correct me if things like the git branch -a command aren't needed. And thanks to tsp42 for developing this, I look forward to seeing where this goes. I still use MythFrontend and then launch XBMC from it for now, but if this stabalizes and in the future we can get more of a Guide like look when in the EPG this would be so much better for the family to be in one product heh!

Thanks go to dubstar_04 from this thread:
http://forum.xbmc.org/showthread.php?tid=109543

Code:
sudo apt-get install git-core
git clone https://github.com/tsp/xbmc.git
cd xbmc
./bootstrap
./configure
make -j2
sudo make install

And to update you can go back into the directory and do a:

Code:
git pull
Reply
#8
cflynt Wrote:Someone do correct me if things like the git branch -a command aren't needed.
You don't need it. Also you can use
Quote:git pull
inside the xbmc source code directory to update the source code when you have downloaded it with git clone.

therealrocket Wrote:- You have to press backspace to get out of the timer window, escape doesn't work
- In the radio/TV channels window when there are no radio channels you see an unnamed progress bar and the word "Next" at the bottom right
- In "EPG: Now", only some channels appear not all of them
- In "Recordings", only the title and description of the program are visible, the subtitle isn't shown
- Search only returns one or 2 results
- "next recording" message is showing one of the first recordings I ever did; from back in 2009.
Most of the UI quirks are in the XBMC PVR code and not in the add-on code but the "next recording" should be easy to fix and maybe also sorting the recordings by date. Currently XBMC PVR doesn't support subtitles for recordings but I can append the subtitle to the title of the recording if you would like that.
Does VDPAU work when playing video in XBMC?
Reply
#9
tsp42 Wrote:Does VDPAU work when playing video in XBMC?

I noticed that VDPAU wasn't working either, BUT I will honestly say I haven't tested my other videos with this build to see if it works on normal videos. But I do notice the tearing when watching recordings and livetv. As where I wasn't getting that on regular XBMC before. But again, i will have to report back by adding some video sources to this test system.

Thanks again for your work.
Reply
#10
Still not having any luck installing, when I follow your commands I get..


Code:
[email protected]:/$ 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.
[email protected]:/$ cd xbmc/
[email protected]:/xbmc$ ./bootstrap
./bootstrap: 5: autoreconf: not found
[email protected]:/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
Reply
#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
Reply
#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
Reply
#13
I had not installed the dependancies.
Just compiling now, taking a while.

Craig
Reply
#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
Reply
#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
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 148
  • Next 



Logout Mark Read Team Forum Stats Members Help
New MythTV add-on using libcmyth4.758