View Full Version : MythTV front-end client built-into to XBMC
xbmc could probably be extended to add minimal amount of mythtv support. mythtv records the shows in a "nupple video" format so that it can be streamed. it is an open source format and could probably be integrated into xbmc in the same manner that relax and smb have been. xmbc could also do some mysql queries to retrieve the tv show names and so you would essentially have a quick and dirty mythtv front end. for those who know mythtv - this would be only the "play recordings" item and nothing more.
this would be invaluable for people that have mythtv systems running because it really is a pain in the butt to load up linux and then load mythtv in order to watch recorded shows on the xbox. a very simple front-end like i described would be incredibly useful.
if i were more experienced with c++ i'd do it myself, but it's out of my scope of ability.
whoops my mistake. it looks like xmbc can already play back the files mythtv records if you are using a hardware encoder tv tuner (such as wintv250). all that would be necessary for mythtv support would be to have a mysql lookup of the show's name - because otherwise you have select from a bunch of files named like:
1090_20040121233500_20040122003700.nuv
(not very informative)
so someone needs to put libmysqlclient into xbmc, and make a new "mythtv" protocol format that piggybacks off of samba. actual playing back of the file could be done the same as with samba, but the show names would have to be found by doing a mysql query for each file.
stickman
2004-03-22, 05:07
it would be awesome if xbmc could work as a mythtv (http://www.mythtv.org/modules.php?name=mythfeatures) frontend. it already does everything you could ask, but this... i've dreamt for a long time for this to happen.
i believe that for a skilled programmer, it wouldn't be that hard at least to add livetv support and channel zapping, other features would require more work.
there is already an wip project to create a windows frontend (http://winmyth.sourceforge.net/), and he has created a small doc detailing what he has found about the mythtv protocol (http://winmyth.sourceforge.net/mythprotocol.html).
mythtv's frontend has already been developed and runs fine on an xbox. just check out the mythtv-users list. no need for xbmc to reinvent the wheel.
thanks,
mike
cyberplague
2004-04-05, 23:23
or just check the python section of these forums for someone that has a script in xbmc running this..
http://www.xboxmediaplayer.de/cgi-bin....;t=2676 (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st;f=21;t=2676)
cp
stickman
2004-04-06, 04:33
@mikesm: i know it works, since i already have mythtv frontend running in my xebian installation.
what i'd like to see is an implementation for xbmc, since its usability is superb and i feel really comfortable using it...
python implementation is looking good, i just hope it doesn't get to a dead end while trying to implement livetv or scheduling recordings...
smokeman
2004-05-10, 21:40
there is some work being done on using the python scripts to include mythtv integration. from what i understand of mythtv(just getting into it) you can use another mythtv pc, as a frontend to control your backend mythtv box. this would mean scheduling recordings, as well as playback. this is what needs to happen for xbmc to access mythbackend. pc's are so expensive, especially ones that match home theatre equipment looks. xbox is a cheap alternative, and when used as a myth thin client, man can it do some amazing things. i am just getting into free to air, or dvb-s, and if you look here:lyngsat fta (http://www.lyngsat.com/freetv/united-states.html) you can see how much free stuff is comign down already. you just have to tune in to get it. i have a nexus-s card on the way, to set up wiht a mythtv pc, and i plan on getting my 2 xboxes working with it one way or another. this sounds like a great sub project for xbmc.
will it be possible in the future to record tv shows on the xbox using xbmc like it is today with mythtv on a linux-xbox? that would be a great feature!
i don't actually know why the moderator moved my post to this one and warned me for not searching before posting... my question is about recording tv shows without any frontend for mythtv... just using the xbmc... and that seems to me as another question as this post is about... anyway... would be happy for an answer though...
wabidwoveren
2005-02-09, 05:17
so how exactly do you expect to input the video into the xbox?
Gamester17
2005-02-09, 16:09
my question is about recording tv shows without any frontend for mythtv... just using the xbmcsee feature suggestion/request: "usb tv-turner adapters to xbox/xbmc? including video recording features!? (link) (http://www.xboxmediaplayer.de/cgi-bin/forums/ikonboard.pl?act=st&f=4&t=24)" )...don't hold your breath in wait for it, you'll die :p)
1timeuser
2006-01-03, 17:51
this kind of ruins the point of having a media center i know, but the other myth tv distrobution is way too big. it would be nice if xbmc had a tiny little myth tv frontend... you know what? i might just look into it myself :lol: . cheers.
Loto_Bak
2006-01-03, 20:13
please use the search function next time
mythtv frontend has been written in python for xbmc.
it includes live tv playback, recording playback, recording schedualing and tv guide
http://xbmcmythtv.sf.net/
1timeuser
2006-01-03, 23:31
thanks, but upon searching the words "myth", "linux" and of course "myth tv" no results came up. being a moderator from one of wraggsters sites i know better then anyone how much everyone needs to use search.
also the link you provided directs me to an empty sf page.
Loto_Bak
2006-01-03, 23:38
appears their homepage has no content :rolleyes:
try http://sourceforge.net/projects/xbmcmythtv
regarding the search,
you likely didnt set the search time period (last box at the bottom) or didnt select 'all forums' in the forum selection box
1timeuser
2006-01-04, 04:54
indeed you are correct that i didnt search all sections.
anyways thanks for the link.
P3kurwud
2007-06-06, 02:26
I don't have the programming skills necessary to contribute, but I am a great 'idea man'.
Would there be any possibility of working in MythTV or the like?
Don't get me wrong, XBMC is absolutely fantastic, and I do really appreciate all the effort that must have gone into creating it.
Just a suggestion. :nod:
Loto_Bak
2007-06-06, 08:48
there is already a mythtv client written in python for xbmc. Its an open source project on sourceforge and can be found here
http://sourceforge.net/projects/xbmcmythtv/
what a freaking original idea!!!oneoneone
i see why you call yourself a great idea man :P
there is already a mythtv client written in python for xbmc. Its an open source project on sourceforge and can be found here
http://sourceforge.net/projects/xbmcmythtv/
I would assume based on the fact that he posted in the 'XBMC for Linux Discussions' forum that he meant a built-in frontend in the linux version.
P3kurwud, it's early days yet, but all this sort of stuff is being considered, and should eventually be implemented.
Have you looked at using MythTV's uPnP server? mythbackend exports all your recorded programs, music, and (recently added) mythvideo. There's no need for any scripting or sql access to unjumble the filenames because recorded programs are exported with sane names.
http://mythtv.org/wiki/index.php/UPnP
XBMC is listed under "UPnP-clients softwares/hardware have not yet been tested with MythTV"
As a followup to my post above, XBMC's uPnP implementation doesn't appear to like MythTV's. This is because MythTVs does its advertises and listens for searches on the muticast address (correctly), and XBMC's uses the broadcast address (due to lack of multicast availability in the XDK).
Aaaaand I can't figure out how to edit my previous message but it looks like MythTV should support the broadcast address (source code shows it creating the broadcast socket and it does wait on it, so...). In addition mythtv r13022:
* Fixed XBMC issue...
rlongfield
2007-11-13, 23:32
I was wondering if anyone is using their Xbox with XBMC to interface with a Mythtv backend.
I am not impressed with the Mytvtv script and I was hoping that it might be possible to Xbox Frontend while keeping XBMC up and running. I don't want to loose the great features of XBMC.
jmarshall
2007-11-14, 00:12
Maybe a plugin might be a useful interface for this. No idea what sort of things a "MythTV frontend" is supposed to be able to offer.
Gamester17
2007-11-14, 12:26
I was wondering if anyone is using their Xbox with XBMC to interface with a Mythtv backend.
I am not impressed with the Mytvtv script and I was hoping that it might be possible to Xbox Frontend while keeping XBMC up and running. I don't want to loose the great features of XBMC.Currently there is no PVR/DVR interface nativly built-into XBMC, so you will either have to make due with the existing MythTV and myTV python scripts, or you can learn python to improve those scripts yourself (they are open source after all), ...or if you happen to know a good C/C++ programmer then you can try to lobby them to developer this "One common PVR/DVR/HTPC front-end GUI (client) (http://xbmc.org/forum/showthread.php?t=28918)" I suggested a while back.
jerkychew
2008-01-06, 03:57
I know it's early in the porting of XBMC on Linux, but I thought I'd stick the ol' hornets' nest and see what shakes loose.
MythTV is (IMHO) the best DVR application for Linux. However its media management isn't so hot - Mythmusic and Mythvideo are nowhere near as good as XBMC's. Plus, they don't get as much attention from the devs as the core MythTV application.
So, my question - Two parts, actually: One, has there been any talk or thought put into integrating XBMC into MythTV? And two, how hard would it be from a technical point of view? I'm no developer but I believe that the Myth plugins like MythMusic et al are executables just wrapped inside the big Myth wrapper - How hard would it be to fold XBMC's individual pieces inside MythTV?
well i've been thinking of adding support for being a little bit of a frontend, atleast listing current recorded stuff, start live playback and such.
It has been mentioned and someone tinkered with it to the extent of shelling out to it from XBMC. IMO - get the code feature complete vis a vis the XBOX version and then sweat it. Writing something to read what has been recorded on a Myth back-end is a great start IMO but not something to burden the developers with now. XBMC on the XBOX was awesome for a reason - it was a terrific front-end for media. This is shaping up to be that on Linux so *I* think getting that right first is most important. Myth integration or integration with tuners is a natural desire that I think will and oughtto happen - but not yet. There's enough porting to do already without new features:shocked:
Nick8888
2008-01-07, 01:45
Hey, dont talk to man out of it!!! I would love to see this.
bmfrosty
2008-01-07, 02:26
Getting XBMC to work with mythtv is probably a two-step problem of a difficulty that is probably either way above or way below my expectations.
1. Get XBMC to talk to MythTv's backend (or just it's database) to find out what recorded programs are available.
2. Make sure that XBMC has the ability to play (and fastforward/rewind) those programs, and manage what programs are available.
It's probably not trivial, but it probably wouldn't be too time intensive either.
Either way, it would probably take someone familiar with XBMC and MythTV to pull it off right.
Also there is the problem of selecting shows to record, but that can probably be done with the web interface in the short term.
jerkychew
2008-01-07, 02:37
I think I'm being misunderstood a little. I'm not saying that XBMC should play back Myth's recorded shows, ie replace its front end entirely. What I'm saying is, it would replace Myth's media management functionality and plugins such as MythVideo and MythMusic (or whatever the audio handler in Myth is called).
My vision / question is, when you launch your MythTV frontend, you see no sign of XBMC. It's only when you click on 'my music' or 'my videos' from the Myth frontend that you're launching XBMC's media management. When you "B out" of the My Music section you're returned to the main dashboard, in this case MythTV.
Nick8888, sorry, I have a habit of not trusting most forums' search functions. I'll use it more in the future. :D
Gamester17
2008-01-07, 12:13
My vision / question is, when you launch your MythTV frontend, you see no sign of XBMC. It's only when you click on 'my music' or 'my videos' from the Myth frontend that you're launching XBMC's media management. When you "B out" of the My Music section you're returned to the main dashboard, in this case MythTV.Then you should post your ideas on MythTV forums instead of here. I see no reason why anyone who used XBMC would want to do it that way, (certainly not anyone on Team-XBMC).
In any case, please respect that we do not yet accept any feature requests for the Linux port of XBMC. Thanks!
bmfrosty
2008-01-08, 01:15
My vision / question is, when you launch your MythTV frontend, you see no sign of XBMC. It's only when you click on 'my music' or 'my videos' from the Myth frontend that you're launching XBMC's media management. When you "B out" of the My Music section you're returned to the main dashboard, in this case MythTV.
How about the other way around? Use MythTV for almost everything, but when you need to schedule new shows, have it call the MythTV frontend. It seems like a better way to me.
bmfrosty
2008-01-08, 01:16
erk. no edit. Here's the corrected version:
How about the other way around? Use XBMC for almost everything, but when you need to schedule new shows, have it call the MythTV frontend. It seems like a better way to me.
EvilDude
2008-01-08, 01:53
well i've been thinking of adding support for being a little bit of a frontend, atleast listing current recorded stuff, start live playback and such.
It would be so awesome to see something like that :)
And I agree with Gamester17, if something like this was added, I'd want the exact opposite, I wouldn't want to know what is doing the tv integration, and it should be completely like XBMC.
Gamester17
2008-01-08, 02:10
No. More likely, this would be the concept used if any (XBMC frontend = GUI, MythTV backend = background service):
http://xbmc.org/forum/showthread.php?t=28918
Still, no programmers have yet to volunteer for that idea.
stickman
2008-01-25, 03:14
I've just noticed this in the last svn rev:
r11410 | elupus | 2008-01-24 22:10:17 +0100 (jue, 24 ene 2008) | 4 lines
added: basic mythtv backend support. currently only recorded shows are working properly, live streams fail to start.
use a share like myth://user:pass@hostname/ for the share since there is no browsing for available server currently.
enable using --enable-gmyth on configure line. requires glib-2.0, gobject-2.0, gthread-2.0, curl, gmyth
Whooo, way to go!!!
gfairbanks
2008-01-25, 04:35
FYI for those of you looking to try this out, I'm having difficulties installing gmyth cleanly on ubuntu gutsy. gmyth.sourceforge.net has .deb files, and I can install them, but I get errors when running gmyth-ls indicating that gmyth is depending on libssl-0.9.7 when gutsy has 0.9.8. After uninstalling that, I grabbed the tarball and installed it, but that yielded errors during the xbmc build coming out of cstdlib ::realloc -- which I really do not understand. Uninstalling the tarball lets me build cleanly again.
I'll post again if I figure this out, or perhaps I'll get sleepy and leave it for later :-)
XBMC + full DVB-S2 funcionality would be really ultimate solution.
That would not only replace my Xbox but also DVB-S tuner :D
stickman
2008-01-25, 22:00
I don't think that will ever happen.
MythTV backend with DVB-S2 and XBMC Frontend is a more realistic solution. Of course, this will also replace your Xbox and DVB-S tuner given that the backend and frontend will work in the same machine.
But I'm talking about this option [XBMC everything + MythTV DVB-S backend] :)
XBMC frontend is the best and with DVB-S2 capabilities it would be double the best ;)
Hm, I personally would like to see an integration of VDR instead of MythTV - the recording and live tv functions are just so much better and very stable.
Well, I don't care which soft will do the dirt job, as long as it supports at least one DVB-S2 card and PMCAM (Poor Man's CAM). PMCAM is really a must have because it can be integrated with Phoenix card reader ( 10 times cheper than normal CAM module cost ). PMCAM is open source btw. (http://joshyfun.peque.org/PMCAM2/index.html)
Hm, I personally would like to see an integration of VDR instead of MythTV - the recording and live tv functions are just so much better and very stable.
Jep. I think VDR would do a wonderful job. As MythTV already has a full Backend/Frontend System i would like to see a way of using Network VDR Servers natively from within XBMC.
@devs .. any plans on this?
Nick8888
2008-01-26, 12:23
Just did a quick search and couldnt come up with much recent info but anyone know the benefits of using vdr over mythtv?
My experiences with MythTV are pretty old, last time I tried it was sometime last year. In my eyes VDR has always had it's advantages in the usage department, it never looked as good as a mythtv since it was optimised for TV resolutions and tv-outs of DVB cards and mythtv was made for VGA resolutions. But it was always alot faster and imo more stable when it comes to watching TV. The feeling was always alot like a real hardware receiver, there are no big delays when zapping channels and timeshift/recording works instantly without any delays. I never got that feeling with mythtv. The other advantage of MythTV is the client/server architecture, that is something VDR has always only solved with plugins (streamdev-plugin) and mythtv always had that as a basic feature, that should make it easier to integrate it in XBMC I would suppose - but probably with the disadvantages of slower seek times and a more sluggish feeling than a VDR. Idealy, both would exist ;)
Why do we need anything beyond the xbmcmythtv script? Which I use and love on my hardware xbox, however can't get it to run yet on linux XBMC.
Why do we need anything beyond the xbmcmythtv script? Which I use and love on my hardware xbox, however can't get it to run yet on linux XBMC.
I think the point is to some day have this:
http://xbmc.org/forum/showthread.php?t=28918
Support for many Backend, let the user choose.
Gmyth is most probably just the begining, as it's "easy" and it's used and is linux specific. It let's users get the feeling of backend/frontend possibilities..
I hope gamesters vision will come true!
LittleBear1981
2008-01-26, 22:37
Instead of making XBMC-Linux work with myth tv and have a 2gb install minimum.
Why not take the part you really want, the pvr functionality and make it work with
xbmc-linux.
Freevo (http://freevo.sourceforge.net/) is a python based pvr software. Couldn't we just control freevo via command? then we can use xbmc -linux to render the gui and control the pvr software. We could trim down the size of freevo if we can strip out just the pvr part.
note: freevo uses mplayer right?
jmarshall
2008-01-26, 23:25
Freevo uses Myth for TV if I'm not mistaken.
Hm, I was alsways pretty sure freevo used it's own code for the livetv part - because they never like the ressource heavy MySQL + X-Server approach MythTv used and VDR was never that great to be integrated in a client-side frontend application.
Nick8888
2008-02-05, 08:51
Had a go at this today and when configuring the build it said it couldnt find libgmyth and that gmyth was now disabled. I have gmyth v0.7 installed. Is it incompatible (it was only released yesterday)??
Not sure why there hasnt been more discussion on this progress made by elupus.. I am very interested in the feature.
cheers
nick
Nick8888
2008-02-05, 09:11
Just tried with gmyth v0.4 and got the same thing.
could your pastebin the configure log?
Nick8888
2008-02-06, 06:48
If youve got some spare time here is my log (http://pastebin.com/ma6eadfc)
It doesn't find libgmyth even though i have gmyth v.04 installed.
Thanks for your help. (I am pretty keen to get this going after i saw your live tv streaming fixes today)
You should just need to install the -dev package along with the gmyth package.
You'll see the deb here called "gmyth-dev_0.7-indt1_i386.deb" (goes with gmyth 0.7... if you're running 0.4 find the 0.4 dev package)
http://sourceforge.net/project/showfiles.php?group_id=177106&package_id=204122&release_id=573939
Download then
sudo dpkg -i gmyth-dev_0.7-indt1_i386.deb
Mine complained about missing some mysql/xml dev libraries. If it does this for you too then just run this to tell apt to download those. After it's done rerun the above command.
sudo apt-get install -f
xgrep
Nick8888
2008-02-06, 07:41
Yes.. that worked! thanks mate. i got the v.07 of each.
Nick8888
2008-02-07, 02:01
@ elupus
I'm not asking for support just yet as i know its very early development but here is a log of the 11539 revision with gmyth v0.7 and the mythbuntu (weekly 0.20.2 fixes) which connects to the database for channels and recordings but fails to open either in dvd player.
I noticed in the latest release notes for mythtv there is a 'myth://' url fix so that could be my problem.
LOG (http://pastebin.com/d1676b0b)
thanks for your work once again.
It seems to fail to tune to the channel. Is the backend really running? The channel list is taken from db, not from the backend so it can still show up even if the actual backend isn't running.
Nick8888
2008-02-07, 16:08
yes backend is running.
this is its output from xbmc when entering recordings folder
2008-02-08 01:06:14.427 adding: media-server as a client (events: 0)
2008-02-08 01:06:14.427 MainServer::HandleAnnounce Monitor
and this is the same for the mythfrontend
2008-02-08 01:06:14.427 adding: media-server as a client (events: 1)
2008-02-08 01:06:14.438 MainServer::HandleQueryRecordings()
I dont need gmyth streamer or any of the others do i?
Nick8888
2008-02-07, 16:09
not output from xbmc but i guess you know what i mean
no you don't need gmythstreamer. i really don't know what could be the cause. you could try and download gmyth-cat and see if you can playback stuff with mplayer and that.
gmyth-cat -h backend_ip -p backend_port -c 65 > test.mpg
And play test.mpg with mplayer. Or you can change command line to grab a recording instead.
Nick8888
2008-02-07, 16:38
gmyth-cat worked for live tv stream here is a log of both gmyth-cat and mythbackend
http://pastebin.com/d3c5f7de8
Im heading to bed for now.
Nick
Using XBMC Linux and gmyth -- can you delete MythTV recordings? (and it properly deletes/updates the backend) ?
Nick8888
2008-02-09, 06:28
Im pretty sure gmyth is capable of this but dont think it has been implemented yet by elupus.
Nick8888
2008-02-11, 03:15
ok updated today to latest svn which didnt fix my problem so i did abit more experimenting and put the port number after the hostname which now works. Live tv is still pretty buggy but it is farr better than i was expecting.
keep up the good work elupus.
Does automatic commercial skipping work? (it reads the commflag data from the myth database and auto skips)
Nick8888
2008-02-11, 03:31
I'm not quite sure as my mythtv setup needs some settings tweaking itself. But i will say that currently it is not stable enough to be replacing the regular frontend.
The XBMC python script "xbmcmythtv" does all of that and more -- I love it. I wish it worked on XBMC Linux :P
Nick8888
2008-02-11, 07:05
internal support for mythtv will be much more versatile than that script imo.
Gamester17
2008-02-11, 13:33
Does automatic commercial skipping work? (it reads the commflag data from the myth database and auto skips)No, not yet, it needs to be implemented into the DVDPlayer first, see https://sourceforge.net/tracker/index.php?func=detail&aid=1877042&group_id=87054&atid=581841
Deleting Recorded shows shouln't be hard to add at all. Can do in a few days. Just not sure how much time I want to spend using the gmyth client.
It's annoying that I can't port it easily to xbox. Too many dependencies. Plus it's quite slow. Found another lib that i might start using instead. cmyth, will give it a try and see how well it works.
Adding the filesystem stuff into xbmc directly makes alot of sence since it removes the xbmcmyth script's requirement of smb:// sharing the recordings. plus livetv playback should be quicker and easier to change channels on.
I'm pondering adding a local mythtv url that provides a xmltv xml file. Could then be used by python gui's to display a EPG. Think doing it that way makes alot of sence. It's a standardized format after all. Anybody know of any python script that can read xmltv xml's and display them?
Gamester17
2008-02-12, 01:26
Anybody know of any python script that can read xmltv xml's and display them?I actually think that there are several available for XBMC,...
...however you probably want to start with the "XBMC MythTV" script:
https://sourceforge.net/projects/xbmcmythtv/
The "myTV" script is also suppose to be really good, see:
http://xbmc.orgforum/showthread.php?t=22273
Then there is the "Interactive TV-Guide (Python XMLTV)"
http://xbmc.org/forum/showthread.php?t=3989
and "xmlTVDaemon"
http://www.based.com/xmltvdaemon/
I also believe that the "XBMC Tuxbox Enigma Stream Client"
http://xbmc.org/forum/showthread.php?t=23834
and the "MP & XBMC intergration scripts" can also display XMLTV listing.xml
http://forum.team-mediaportal.com/plugins-47/mp-xbmc-intergration-scripts-v0-6d-update-4-mar-07-a-2263/
There is also a native C++ patch for XMLTV display in XBMC, see "Half-finished TV-listings code (XMLTV-GUI)" which might be the best option long term:
http://xbmc.org/forum/showthread.php?t=12948
I'm pondering adding a local mythtv url that provides a xmltv xml file. Could then be used by python gui's to display a EPG. Think doing it that way makes alot of sence. It's a standardized format after all.Sounds like a good idea to me, leaves it option for future options as well
:cool:
right, added deleting recordngs for you MattPF :)
right, added deleting recordngs for you MattPF :)
Thanks man!! My wife and I owe you :)
Once MythTV commercial skipping is in the linux build I'll convince her to let me donate some cash to you guys.. Been using XBMC for 3 yrs and you deserve it.
Rand Al Thor
2008-02-15, 19:57
Been messing around with this recently and I must say it is coming along nicely. Keep up the great work elupus. Cheers.
No, not yet, it needs to be implemented into the DVDPlayer first, see https://sourceforge.net/tracker/index.php?func=detail&aid=1877042&group_id=87054&atid=581841
Anyone know when this might be in? It's the only thing I'm waiting for to roll XBMC Linux out across our 3 PC's and 3 TV's.
Thanks!
Nick8888
2008-02-16, 03:25
It'll be in when someone decides to code it..
However, with elupus working on mythtv integration i think we can be sure it will be added at some time in the near future.
Browsing the source code repository it looks like he's migrating from libgmyth to libcmyth -- less dependencies. (which is great because libgmyth was a nightmare to get going)
Nick8888
2008-02-16, 04:13
yeh i noticed that.. tried to search for the differences between the two but couldnt find much mention of cmyth. I might make a new build this afternoon and see if there are any changes.
stickman
2008-02-16, 04:41
Well, I think libcmyth was developed for its use in MediaMVP.
You can see some screenshots (and therefore guess it's features) here (http://www.mvpmc.org/index.php?pg=screenshots)
yes he is going from libgmyth to libcmyth
yeh i noticed that.. tried to search for the differences between the two but couldnt find much mention of cmyth. I might make a new build this afternoon and see if there are any changes.
Cool! Let me know if you notice any changes.
Gamester17
2008-02-16, 10:58
Well, I think libcmyth was developed for its use in c.
You can see some screenshots (and therefore guess it's features) here (http://www.mvpmc.org/index.php?pg=screenshots)I already mentioned MediaMVP in this other related feature suggestion (http://xbmc.org/forum/showthread.php?t=28918) but I guess I should mention it again here so that it maybe get a little more more attention;
MediaMVP (mvpmc) seems like a really good reference for source code and inspiration for this 'PVR front-end' part of the XBMC project, (so maybe some interface and API ideas can be taken from the MediaMVP source code?). After all, MediaMVP is an open source open source suite of libraries and a media player capable of acting as a front-end for multiple types of backends over the network in a similar concept to what is suggested in this related feature suggestion (http://xbmc.org/forum/showthread.php?t=28918).
http://www.mvpmc.org
http://sourceforge.net/projects/mvpmc/
The MediaMVP Media Center (mvpmc) is a media player written in C. It currently runs on the Hauppauge MediaMVP hardware. It can play video (including live TV), audio (including live radio), show pictures, and retrieve Yahoo! weather. mvpmc can access media from a MythTV, ReplayTV, Hauppauge, VLC, or SqueezeCenter (aka SlimServer) server. It can also access media via UPNP, HTTP, NFS and CIFS. There is a VNC viewer built in. It understands MPEG1 and MPEG2 video, MP3, OGG, WAV, AC3 and FLAC audio and JPG, BMP & PNG images.
FAQ: How well does mvpmc work as a MythTV frontend?
ANSWER: mvpmc is not a complete replacement for the MythTV frontend that comes with MythTV. However, it is capable of doing most of the things that a typical user will do on a day-to-day basis.
FAQ: How do I watch live TV off a MythTV server?
ANSWER: Live TV changed quite drastically in MythTV 0.19. However, mvpmc is capable of playing live TV from both older and newer backends.
You can watch live TV either via the filesystem or the myth protocol. If you use the -b option to mvpmc, you can tell mvpmc which directory contains the ringbuffer. If you do not use the -b option, then live tv will be played via the myth protocol.
When you select live TV, you will be given a menu containing all of the programs currently being broadcast. If you choose one of the programs, it will attempt to start playing it on any of the tuners where that program is available. If you use the MENU button, you will get a menu that will allow you to choose which tuner you want to watch the program on.
I fully agree with the idea of making XBMC a frontend that talks to a whole slew of Media backends. The future of home theater is heading towards every family having *something*, whether it's a TiVo, Vista Media Center, Windows Home Server, MythTV, NAS, or just a PC with a samba share -- the more sources XBMC can talk to, the better.
Now the whole industry push for uPnP was supposed to solve all this, with uPnP being the common language that all devices can speak. And to an extent, it's done fairly well (most frontends and backends on the market speak uPnP).
The problem is that uPnP doesn't support the type of advanced interaction required for things like scheduling recordings, things specific to the backend's functionality.
XBMC is by far the best frontend on the planet -- the more backends it can natively support where uPnP isn't enough -- the better.
As stated before, for me, MythTV is the golden feature. Once cmyth/gmyth is ready (with commercial skipping ;P) I'll post a pic of 5 XBMC's running concurrently in our house.
This is truly amazing work.
I just setup my backend using latest trunk rev.16113 with sasc-ng module and watching HD with AC3 now !
This is great idea that will make XBMC absolutely best multimedia app. Myth plugins for video, audio and pictures are really crappy.
THX ! I will see if I can get some interest in this on happysat linux forum
As stated before, for me, MythTV is the golden feature. Once cmyth/gmyth is ready (with commercial skipping ;P) I'll post a pic of 5 XBMC's running concurrently in our house.
I'm working on implementing EDL (http://xbmc.org/wiki/?title=EDL_%28commercial_skipping%29_and_SceneMark er_support) support for DVDPlayer. See the feature request (http://sourceforge.net/tracker/index.php?func=detail&aid=1877042&group_id=87054&atid=581841). Any help would be appreciated.
Gamester17
2008-02-18, 16:35
I will see if I can get some interest in this on happysat linux forumSpread the word!
Let everyone know that more developers are wanted!
:grin:
Actually there is nothing that hinders upnp to be used. The only thing is that there is no standard service defined for it. UPnP allows servers to define their own extension to the protocol. So there wouldn't be any problem in mythtv Team-MediaPortal TVServer provided their own interface for these kinds of things.
rev.11741
./build.sh CONFIGOPT=--enable-gmyth
g++ -c -g -D_DEBUG -Wall -I/usr/include/lzo -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_GMYTH -I. -Ilinux -Icores -I../guilib -Iutils -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/Core -Ilib/libUPnP/Platinum/Source/Core -Ilib/libUPnP/Platinum/Source/Devices/MediaServer -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Posix -Ilib/libUPnP/Platinum/Source/Devices/MediaConnect -Ilib/libUPnP/Platinum/Source/Devices/MediaRenderer AutoSwitch.cpp -o AutoSwitch.o
In file included from FileFactory.cpp:42:
GMythFile.h:6:20: error: LiveTV.h: No such file or directory
rm -f ButtonTranslator.o
g++ -c -g -D_DEBUG -Wall -I/usr/include/lzo -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_GMYTH -I. -Ilinux -Icores -I../guilib -Iutils -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/Core -Ilib/libUPnP/Platinum/Source/Core -Ilib/libUPnP/Platinum/Source/Devices/MediaServer -Ilib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Posix -Ilib/libUPnP/Platinum/Source/Devices/MediaConnect -Ilib/libUPnP/Platinum/Source/Devices/MediaRenderer ButtonTranslator.cpp -o ButtonTranslator.o
GMythFile.h:21: error: expected class-name before â{â token
GMythFile.h:38: error: ISO C++ forbids declaration of âILiveTVInterfaceâ with no type
GMythFile.h:38: error: âILiveTVInterfaceâ declared as a âvirtualâ field
GMythFile.h:38: error: expected â;â before â*â token
GMythFile.h:40: error: expected `;' before âvirtualâ
make[1]: *** [FileFactory.o] Error 1
make[1]: Leaving directory `/home/mp/XBMC/xbmc/FileSystem'
make: *** [filesystem] Error 2
make: *** Waiting for unfinished jobs....
I can't find LiveTV.h on my system, however xbmc with myth support worked just fien few days ago, any thoughts ?
thx
Rand Al Thor
2008-02-19, 22:35
it looks like gmyth is no longer needed as it has been replaced by cmyth completely. Try disabling gmyth and build again.
Nick8888
2008-02-20, 04:32
I made a new build yesterday with no additional options (./build.sh) and elupus seems to have gotten cmyth support on par with where his gmyth efforts were. I can play recordings and watch live channels but find it freezes fairly often with fast forwarding, rewinding and channel skipping. also noticed it had made its way to the trunk which is interesting too.
Funny thing is, I stuffed up a setting in mythfrontend and playback and the osd darkened but everything is fine in xbmc. I'm not sure if I can motivate myself to find whats gone wrong when I am planning to use xbmc anyway...
keep up the good work elupus, its much appreciated.
actually.. eevn if you specify --enable-gmyth it default to cmyth client if you use myth://, to use gmyth nowadays you have to do gmyth://
yea it's not uncommon for it to freeze. especially on channel changes. Haven't figured out what the best method there is.
Have just done a new build and have connected to separate Mythbuntu 7.10 backend. I can view the individual TV channels but when I select one nothing happens. In terminal I get two lines one saying cmyth_comm_connect asked for version 8 got 31, the second saying asked for version 31 got 31. The backend log says client speaks version 8 but we speak 31.
This is a great piece of work XBMC Linux with mythth integration is the future.
BTW could the mythtv integration be added to the XBOX version?
Thanks
Nick8888
2008-02-20, 17:07
did you put the port number at the end of you hostname? that was my mistake and it works fine for me now. but yeh, without posting a log on pastebin, youve got no chance of getting support from devs.
No didn't put a port in. Excuse my ignorance but what syntax is used and is it the Mysql port no or mythtv port no? Thanks for your help.
Slighty Off-Topic
Ive tested this on xbox and i to have a list of channels but iirc the recorder fails to start which in turn causes playback of myth://user:pass@ip/channels/1.ts to fail, my linux build is working perfectly though so we are at different ends of the stick here :) ill post a debug very shortly from xbox (but im not sure its actually fully supported as such) but no harm done.
Oh yeah! I had to open port 6543/TCP on my router in order to have the xbox show the listing thats about it.
A dubug log from xbmc and from mythbackend would be nice. might tell what is goin on.
mythbackend is usually in /var/log/mythtv/mythbackend.log
Gamester17
2008-02-20, 18:00
Have just done a new build and have connected to separate Mythbuntu 7.10 backend. I can view the individual TV channels but when I select one nothing happens. In terminal I get two lines one saying cmyth_comm_connect asked for version 8 got 31, the second saying asked for version 31 got 31. The backend log says client speaks version 8 but we speak 31.I believe elupus got libcmyth from the MediaMVP project and they list this in their FAQ:
http://www.mvpmc.org/index.php?pg=faq#q18Why is MythTV complaining "Client speaks protocol version 8 but we speak 15!"?
This is because MythTV itself only ever supports one protocol version at a time, while mvpmc tries to be compatible with all versions of MythTV. So mvpmc starts with protocol 8, and MythTV will tell it what protocol version it should be speaking, and mvpmc will then switch to the correct version.
However collect a debug log from XBMC and upload it to pastebin.com then post the URL to it here.
thanks XBMC log here: http://pastebin.com/m7d239fb1
Nick8888
2008-02-21, 03:00
....@hostname:port
gmyth-cat gave me the idea of adding the port number and i was pleasantly surprised when it worked. Havent had any problems since.
Nick8888
2008-02-21, 03:03
...@hostname
:
mythport
all one line
Tried adding the port number and didnt seem to make any difference. Looks like my issue is similar to C-Quels on the xbox as XBMC log has:
23:48:14 T:3057887072 M:955138048 DEBUG: CPlayerCoreFactor::GetPlayers(myth://mythtv:jnpcrkey@192.168.1.11:6543/channels/101.ts)
23:48:14 T:3057887072 M:955138048 NOTICE: DVDPlayer: Opening: myth://mythtv:jnpcrkey@192.168.1.11:6543/channels/101.ts
23:48:14 T:3057887072 M:955138048 NOTICE: CDVDPlayer::CloseFile()
23:48:14 T:3057887072 M:955138048 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
23:48:14 T:3057887072 M:955138048 NOTICE: DVDPlayer: waiting for threads to exit
23:48:14 T:3057887072 M:955138048 NOTICE: DVDPlayer: finished waiting
23:48:14 T:3057887072 M:955138048 WARNING: CDVDMessageQueue::Put MSGQ_NOT_INITIALIZED
23:48:14 T:2929646480 M:955138048 DEBUG: Running thread 2929646480
23:48:14 T:2929646480 M:955138048 DEBUG: thread start, auto delete: 1
23:48:14 T:2921253776 M:955138048 DEBUG: Running thread 2921253776
23:48:14 T:2921253776 M:955138048 DEBUG: thread start, auto delete: 0
23:48:14 T:2921253776 M:955138048 NOTICE: Creating InputStream
23:48:14 T:2921253776 M:955138048 ERROR: SetupLiveTV - unable to get recorder
23:48:14 T:2921253776 M:955138048 ERROR: InputStream: Error opening, myth://mythtv:jnpcrkey@192.168.1.11:6543/channels/101.ts
I'm wondering- as a wild guess- if the fact that I have changed the recordings folder on the backend away from the default location is the problem.
Will have post new xbmc and mythbackend logs to pastebin when I am home later
Nick8888
2008-02-21, 03:46
Mine isn't in the default location either so it probably isnt that. elupus commited some fixes which make it compatible with svn version of myth today if your using that. have you ensured mythbackend is open and that mythfrontend works fine? i think elupus also kept gmyth in there if you use gmyth://.... so you might be able to try that. other than that ive got completely no idea.
Thanks. Mythbackend works fine as am using it with both XBMCmythtv python script and with a standard linux myth frontend. Am not using SVN backend. Will rebuild later run again and post the logs. Appreciate the help
Have done fresh build. Behaviour has changed in that now when I select a channel in Live TV the PC completly freezes and have to reboot. Both XBMC and mythTV backend logs here http://pastebin.com/m1da0dfbd
Removed port number from the hostname and changed skin back to Mayhem 111 to make sure everything standard. Now no freezes when I select a channel but nothing else happens either! Logs here http://pastebin.com/m4f048c68
Thanks
well the difference is that mythtv is a couple of applications that have some mild bindings.
while xbmc is higly integrated components. no external executables every thing is done as librarys that are called from the main application. this is also one of the reason why xbmc works as well as it does.
i think the better solution will be the one that people are working on eg integrating a mythfrontend in xbmc. then you will only need the myth backend
gah i hate how the view order gets changed after i post one message.
i thogth that i was replying to the last post of this thread when i replied to the first just ignor it
well the difference is that mythtv is a couple of applications that have some mild bindings.
while xbmc is higly integrated components. no external executables every thing is done as librarys that are called from the main application. this is also one of the reason why xbmc works as well as it does.
i think the better solution will be the one that people are working on eg integrating a mythfrontend in xbmc. then you will only need the myth backend
ptipton:
"unable to get recorder" means that there is no free recorder available. i only look for free recorders when i start live tv. so if a frontend or background recording is already running, it won't find any free recorder. (or if backend think a frontend is running but there really isn't any)
try restarting your backend. sudo /etc/init.d/myth-backend restart i think on ubuntu
also the one time it got a recorder, it got an unknown event sent from the backend. sadly i currently don't print what that event was. will add so it does tonite.
elupus, thanks. rebooted both machines to be sure- still doesn't connect have posted XBMC and terminal logs here http://pastebin.com/m4ab5acf BTW thanks for all the work you are doing- XBMC and XBMC linux with mythtv support have been top of my wishlist for a while!
lol, and yet a third type of error.. :), this time it failed to spawn livetv on the selected channel. maybe i'm using the wrong id to start the channel. will have to look at that.
have been trying various options. Having the port number on the end of hostname seems to make no difference I now get this consistently in terminal
(cmyth)cmyth_conn_connect: asked for version 8, got version 31
(cmyth)cmyth_conn_connect: asked for version 31, got version 31
(cmyth)cmyth_mysql_get_chanlist: rows= 73
(cmyth)cmyth_conn_connect: asked for version 8, got version 31
(cmyth)cmyth_conn_connect: asked for version 31, got version 31
(cmyth)cmyth_conn_connect: asked for version 8, got version 31
(cmyth)cmyth_conn_connect: asked for version 31, got version 31
(cmyth)cmyth_conn_connect: asked for version 8, got version 31
(cmyth)cmyth_conn_connect: asked for version 31, got version 31
(cmyth)__cmyth_rcv_proginfo: VERSION IS 31
(cmyth)__cmyth_rcv_proginfo: GOT TO ICON/NAME
(cmyth)__cmyth_rcv_proginfo: GOT TO START_TS
(cmyth)__cmyth_rcv_proginfo: GOT TO END_TS
(cmyth)__cmyth_rcv_proginfo: got recording info
(cmyth)cmyth_connect: cannot resolve hostname 'ubuntuserver'
(cmyth)cmyth_conn_connect_file: cmyth_connect(ubuntuserver, 6543, 16384) failed
(cmyth)cmyth_livetv_chain_setup: cmyth_conn_connect_file(myth://ubuntuserver:6543/video/tv/1036_20080221224405.mpg) failed
seems strange, the share is entered as IP not hostname
http://pastebin.com/m14716a6c
I only use backend on my linux box, linux port xbmc works xbox fails to play file... log attatched but i think the error has already been mentioned a few posts above.
so there is the fourth type of error :), ptipton you seem to get all kinds of different errors.
the myth backend might be doing a reverse lookup on your connection, and return that somehow. and apperently your dns server doesn't resolve the ubuntuserver properly, could be one of the issues.
C-Quel
Yea, it fails to find a free recorder. Could you try this.
- make sure there are no scheduled recordings
- restart backend with the command previously mentioned
- try directly on the xbox.
- try same channel on linux build.
Oh one more thing, do you get a list of recorded shows? If you don't, your mysql setup is probably not accepting access from the xbox.
Yes ill do it now Elupus... im 99% sure my problem on xbox is related to recordings that keep popping up in my UPNP share for mythtv ive never scheduled anything to record? and they are random channels aswell which i find very unusual.
Ill report back asap.
Oh and no recorded shows list in the myth:// shares only in the upnp
C-Quel
Yea, it fails to find a free recorder. Could you try this.
- make sure there are no scheduled recordings
- restart backend with the command previously mentioned
- try directly on the xbox.
- try same channel on linux build.
Oh one more thing, do you get a list of recorded shows? If you don't, your mysql setup is probably not accepting access from the xbox.
*there were items being recorded and i have no idea why? or where to stop the bloody things they are so random regards channels etc...
Step 1 : attempted to start channel on xbox (failed) same log as provided
Step 2 : attemped to start channel on localhost aka linux port (failed)
Step 3 : restarted backend in terminal
Step 4 : attempted linux build again (success)
Step 5 : restarted backend in terminal
Step 6 : (fell downstairs land hurt myself before attempting on xbox) (failed)
whats this mysql business? also any idea why myth is recording randomly?
Well any time you start livetv, you start a recorder that will record current program. If you don't manage to stop that recorder when livetv exits, it will keep recording, and next program that shows up will be a new recording.
They will be added to the LiveTV recording group. They are not complete recordings so to speak. upnp server shows all recordings (even those generated from livetv watching). I filter those away, cause it's not something you usually want to watch again.
About stopping recordings, i have no idea. I always have to restart backend to stop them. not even official frontend seem to be able to stop them (or more correctly it stops recording, but start directly again on a different file, but same program)
mysql as installed by default in ubuntu gutsy, to start with only listens on localhost. then the mythbackend db only accepts connections from local host. You have to do something like.
$ sudo mysql mythconverg
mysql> grant all on mythconverg.* to mythtv@"%" identified by "mythtv";
mysql> flush privileges;
The last "mythtv" should be the password you have setup for the mythtv-backend. (you could potentially leave it at mythtv even if your password normally is different, but then you have different passwords from localhost and remote). i'd suggest you use the random password ubuntu generated for you, its in /etc/mythtv/mysql.txt
this url has some info on this, but fails to explain that the last identified by "mythtv" is acually the password wanted :/
http://www.mythtv.org/docs/mythtv-HOWTO-6.html
not sure if this is relevant but when you use the xbmcmythtv python script you need to set mysql to use old passwords ( at least with Ubuntu) There are posts in the sourceforge forum on how to do this
Yeah ive tried the mythtvscript fails to connect at the moment tried to take a look at forums but sf! is down ***again***
Elupus have have granted pivileges to range of ip's 192.168.1.% changed the bindaddress in mysql to the backends address opened those ports on my router 6544 6453 and 3306 for the backends ip.
on xbox moment i choose a channel the server start recording and nothing else happens. select channel again and it loops with busy dialog. i then have to restart backend and we are back to square 1.
any other magic you can think of would be appreciated... ive sifted through the myth manual but i dont think i have many more options.
I'm running XBMC-Linux on the same box as my MythTV Backend.
In XBMC when I browse the filesystem directly to the recordings (mpg's) and play them (skipping MythTV altogether) -- then ff/rwd/skip is extremely responsive, no issues whatsoever.
When I use MythTV via myth://user:pass@localhost/ to view my recordings, the audio is way out of sync, ff/rwd/skip is dreadfully slow, almost useless.
This begs the question -- is it worth the extra overhead and coding to use cmyth/the mythtv protocol to stream the packets, or would it be more wise to follow xbmcmythtv's approach and simply use the mythtv database to get metadata, and use the filesystem/samba to handle the video packets? (which works great)
Thoughts? Has anyone else ran into my problems with MythTV/XBMC ff/rwd/skip?
C-Quel.
before you do something stupid. why in the name of god are you touching your router?!? Are your computer and myth backend on different network??
Otherwise opening ports is just for allowing people on the Internet to access computers on your local network, so close those immediately.
Tried doing a new compile on my mythtv backend " ubuntuserver" machine and using localhost as address but still behaves in exactly the same way as when on the seperate machine. Have pasted the full terminal and xbmc logs here: http://pastebin.com/m2428a59a
Have checked the DNS servers addresses and all seems Ok but am still getting this in Terminal:
(cmyth)__cmyth_rcv_proginfo: got recording info
#
(cmyth)cmyth_connect: cannot resolve hostname 'ubuntuserver'
#
(cmyth)cmyth_conn_connect_file: cmyth_connect(ubuntuserver, 6543, 16384) failed
#
(cmyth)cmyth_livetv_chain_setup: cmyth_conn_connect_file(myth://ubuntuserver:6543/video/tv/1064_20080223192024.mpg) failed
Am wondering if its something to do with the backend setup but Xbox XBMCmythtv python script connects fine as does standard Linux mythtv frontend.
C-Quel.
before you do something stupid. why in the name of god are you touching your router?!? Are your computer and myth backend on different network??
Otherwise opening ports is just for allowing people on the Internet to access computers on your local network, so close those immediately.
:) thanks for the advice i know its for external services only www,ftp etc... i was just covering ALL possible scenarios ensuring there was nothing that could be an issue. Have you had XBOX & MythTV working yourself Elupus?
yes, works on my xbox. only thing i had to fix i've already mentioned (the mysql stuff). currently can't test anything thou as my reception has been too horrible last couple of days.
Feisty or Gutsy? i had to make changes to old_password to get the MythTV Script running under Gutsy... but i do now have flawless playback through it.
Could this be related at all?
mysql -u root -p mysql
(enter root password)
update user SET Password=OLD_PASSWORD('<mythtv user password>') where
User='<mythtv username>';
FLUSH PRIVILEGES;
exit;
Tried doing a new compile on my mythtv backend " ubuntuserver" machine and using localhost as address but still behaves in exactly the same way as when on the seperate machine. Have pasted the full terminal and xbmc logs here: http://pastebin.com/m2428a59a
Have checked the DNS servers addresses and all seems Ok but am still getting this in Terminal:
(cmyth)__cmyth_rcv_proginfo: got recording info
#
(cmyth)cmyth_connect: cannot resolve hostname 'ubuntuserver'
#
(cmyth)cmyth_conn_connect_file: cmyth_connect(ubuntuserver, 6543, 16384) failed
#
(cmyth)cmyth_livetv_chain_setup: cmyth_conn_connect_file(myth://ubuntuserver:6543/video/tv/1064_20080223192024.mpg) failed
Am wondering if its something to do with the backend setup but Xbox XBMCmythtv python script connects fine as does standard Linux mythtv frontend.
I had the same problem. A quick fix is to put the hostname, in your case, 'ubuntuserver' in your /etc/hosts file on your frontend box. Add a line:
"<ip of ubuntuserver> ubuntuserver"
That way linux is able to resolve 'ubuntuserver'.
Now have xbmc linux front end connecting OK ( thanks Solver) but now have problem that live tv spends large amounts of time buffering and seems to use almost 100% cpu whilst doing so.
Have also now installed on my Xbox as well, in this case it fails to play the selected TV channel ( get the xTV loading video rotating circle and then goes back to channel menu)
Have posted both logs here http://pastebin.com/m73d62885
the xbox fails with the same issue as you had on linux. ie hostname. i will try and figure out why this happens, not sure it's that easy to fix thou, as mythtv supports multiple backends, thus the server will have to return the hostname to connect to.
the full cpu usage i'm not sure what could be the cause of. will see if i'm missing a sleep somewhere.
you can correct you mythtv backend to return ip address instead. it's specified during backend setup.
im at a deadend now regards live tv on xbox... linux port works perfectly. Moment i select a channel on xbox i hear the server hd activity and it starts recording but plays nothing on xbox itself. 2nd attempt at playing file results in busy dialog.
Hey Elupus wanna swap servers and xboxes :) at least itll work for me then ;)
hehe. well we shall do some more debugging on the issue after i've commited some better session handling (currently we create a new session for each request). haven't been able to test it thou due to bad reception. i'm hopping i have reception tonite :)
Look forward to it :) it is actually something i really would benefit from as i am really wanting to tell my current tv cable provider to **** off as they are an absolute nightmare for service and price ;)
i just recompile my mythtv last night to latest rev.16237
it works pretty good with latest xbmc build, I had no problems connecting to backend however they run on the same machine
channel changing is painfully slow but I guess it is mostly myth problem, i never had it working any faster with original myth frontend(that is why i use vdr :) ) but I know there is lots of tweaking possible;
i was just wondering what are the plans for further myth frontend integration, any chance for epg?
thx for this great piece of software
btw, what script do you guys use for xbox xbmc (i am assuming it is python script and not xbox app)
thx
okey, so C-Quels problem turned out to be the hostname issue too.. it doesn't matter if you specify connection using ip address. you still have to have valid dns responses to the hostname the myth-backend is located on.
@elupus
You mentioned in an earlier post that a way to fix the problem with resolving the hostname was to specify the ip address in mythtv-setup instead of the hostname. But I did specify an ip address. As far as I can gather this has been a problem for people running the backend on a different machine than the frontend. (uomiarz did not have this problem, but ptipton, C-Quel and I did)
So i was wondering if you are using the wrong field in the mysql database? There are two entries in mythtv-setup that specify where the backend is located; "IP address for backend" and "Master server IP address". Using the wrong one would cause a remote frontend to fail but not a local one since it would return "localhost" or the hostname (depending on the setup). Just a thought. Keep up the good work!
this seem to be a bug in mythtv-backend actually. it stores all filenames with a hostname instead of the address specified during backend setup.
we get the hostname (since there can be multiple backends, a file needs to know the hostname to which the file is located) and use that to connect. i'm not sure why it stores it like this, and not sure how to get around it yet.
i don't know if this help with anything but my instructions on how to setup myth always advise to change /etc/mysql/my.cnf
comment out line
bind-address = 127.0.0.1
or set it to actual ip address of the server
this seem to be a bug in mythtv-backend actually. it stores all filenames with a hostname instead of the address specified during backend setup.
we get the hostname (since there can be multiple backends, a file needs to know the hostname to which the file is located) and use that to connect. i'm not sure why it stores it like this, and not sure how to get around it yet.
Not the most elegant fix, but for now you could force the host lookups in the /etc/hosts file.
Or, if you want have fun, setup a local DNS server on your network and have it resolve for your local domain :)
xgrep
changing /etc/hosts on the linux xbmc machine fixed that connection as per previous post, tried also editing etc/hosts on the mythtv backend to try to fix the xbox problem but no joy.
well best is to add this to your router if it supports host entries. also normally this is automatic if you use dhcp to let your computer get it's ip address. (you can often add a static entry for your computer on the router)
Like ptipton, when I watch live channels it plays for about 2-5 seconds and then buffers for about 10 seconds before it starts playing again. The longer I pause the longer I can watch TV before it has to buffer again when I resume play. CPU usage is at 100%. A recorded show plays without a hitch.
I've looked through the log on my backend but I don't see anything suspicious.
if your running in debug mode try switching it off... cannot guarantee it'll fix it but might :)
brandonj
2008-02-27, 00:36
Has anyone else been getting compile errors, specifically related to CMyth?
I don't know if I don't have a package installed that I need or what, but I keep getting the following error:
http://pastebin.com/m14ed43c4
I even get cmyth related errors when I compile without myth support. Anyone have some advice? I have been having this problem for about a week now, and I'm stuck.
Any help would be appreciated.
-Brandon
don't enable gmyth during configure. it's not needed anymore (and i've not tested it in a while)
brandonj
2008-02-27, 01:17
I took out --enable-gmyth out of configure, and was still getting the error, so I checked out everything from svn from scratch, and it compiled with no problem. Kinda strange - I prolly messed something up when i was trying to fix it a few days ago. *shrug*
Thanks for your help, and good job with all the mythtv integration.
-Brandon
Nick8888
2008-02-27, 11:05
wow, just upgraded from a couple of days ago and speeds have definately increased. recordings now play almost instantly. Cheers Elupus.
joebidalli
2008-02-28, 03:03
I've been trying to get my remote frontend (Ubuntu) working for a week now. I have my hostname configured in /etc/hosts and I know the backend is ok because I can watch TV with ~> gmyth-cat -h mythtv -p 6543 -c 40 | mplayer -
I upgraded my Myth backend to the latest trunk still can't watch though I can see my Recordings and Live Channels list.
I recently started receiving this message when attempting to watch a recording.
(cmyth)__cmyth_rcv_long: received illegal integer: '130_20070513075900.mpg'
(cmyth)__cmyth_rcv_long_long: cmyth_rcv_long_long() failed (28)
(cmyth)__cmyth_rcv_proginfo: cmyth_rcv_long_long() failed (22)
(cmyth)cmyth_proginfo_get_from_basename: cmyth_rcv_proginfo() < count
(cmyth)__cmyth_rcv_proginfo: VERSION IS 40
(cmyth)__cmyth_rcv_long: received illegal integer: 'Default'
(cmyth)__cmyth_rcv_proginfo: cmyth_rcv_ulong() failed (22)
(cmyth)cmyth_proginfo_get_from_basename: cmyth_rcv_proginfo() < count
(cmyth)cmyth_conn_connect_file: prog host is NULL
joebidalli
2008-02-28, 03:23
Interesting. When I choose a Live Channel, eventually I get an Icon with program information and elapsed time as if I'm watching something. However, when I check the network, I'm not seeing enough traffic for a live stream.
Nick8888
2008-02-28, 03:40
Can I ask whether you have added your port number to the hostname?
joebidalli
2008-02-28, 03:54
I've tried both. No difference.
joebidalli
2008-02-28, 04:16
Digging aroung some more and found this in my backend logs.
2008-02-27 21:11:49.544 MythSocket(bfff80:33): writeData: Error, zerocnt timeout
2008-02-27 21:12:30.184 MythSocket(bfff80:33): writeData: Error, zerocnt timeout
2008-02-27 21:13:08.812 MythSocket(bfff80:33): writeData: Error, zerocnt timeout
2008-02-27 21:13:46.637 MythSocket(bfff80:33): writeData: Error, zerocnt timeout
Prossibly why I'm not seeing network traffic between my front and backend.
Nick8888
2008-02-28, 04:45
elupus is probably the only one that can help you so I'd suggest you get a complete log of both xbmc and mythtbackend and post to pastebin
sorry i cant be of more assistance.
joebidalli:
no need for a log (thou if you later need help, please post that on pastebin instead of cut outs here)
your backend is svn version of the mythbackend, or atleast i'm guessing that. In either case it has a higher version than is known to be working with our current lib. I think trunk of libcmyth has up to version 39, you have 40. I will update our lib sometime this weekend.
joebidalli
2008-02-28, 14:07
Thanks Eluspus,
Funny though, I upgraded after reading this thread a couple of days ago.
[QUOTE=uomiarz;170635]i just recompile my mythtv last night to latest rev.16237
it works pretty good .../QUOTE]
And the libraries say:
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)__cmyth_rcv_proginfo: VERSION IS 40
(cmyth)__cmyth_rcv_proginfo: got recording info
Thanks Eluspus,
Funny though, I upgraded after reading this thread a couple of days ago.
[QUOTE=uomiarz;170635]i just recompile my mythtv last night to latest rev.16237
it works pretty good .../QUOTE]
And the libraries say:
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)cmyth_conn_connect: asked for version 8, got version 40
(cmyth)cmyth_conn_connect: asked for version 40, got version 40
(cmyth)__cmyth_rcv_proginfo: VERSION IS 40
(cmyth)__cmyth_rcv_proginfo: got recording info
my log shows same info (asked for... , got version...)
and it works fine with myth rev.16237
Please go easy on me... Would this mythtv integration enable me to record video from my tunercard from inside XBMC? If so, can i have mythtv and XBMC running on the same box?
The way i see it from your posts is that you all have separate myth boxes.
Nick8888
2008-03-03, 15:27
it would pretty much just make xbmc a frontend for mythtv. So yes you would be able to record etc.
mythbackend would need to be running either remotely or on same box. just use "localhost" as the hostname.
yes you can have it on the same box. however xbmc has no means of scheduling recordings yet and no epg. you can start recording current playing live show thou.
Ok, sounds good! :nod: I do not need sheduling or epg, i mainly use the s-video input to transfer from my camcorder...
Before i head of to the mythtv Wiki, Another (maybe stupid) question:
Would it be any difference ( easier mythtv installation and setup?) if i installed mythbuntu first and then added XBMC or should i stick to Ubuntu+XBMC and then add myth?
Thanks for your replies!
*Going to read up on mythtv*
just do a apt-get on ubuntu for the backend. quite simple, loads of guides on that.
Oh and before anybody else get hit by the same issue i had with recording to start with.
MAKE SURE XBMC DISPLAYS THE CORRECT SYSTEM TIME. If it's of by an hour due to timezones, starting recordings won't work.
Hitting record on xbox stops playback and keeps recording on backend and shows (recording) status in myth://*.*/recordings/
Yet in Linux hitting record does not stop playback (working correctly)... ive posted a log to see if you can spot anything unusual.
http://pastebin.com/m567c8727
joebidalli
2008-03-03, 20:42
C-Quel, do you have a remote linux frontend working or is the Xbox your only remote frontend?
I have a linux system running backend (no frontend installed) and use XBOX as frontend.
joebidalli
2008-03-03, 22:14
Glad to know that the cmyth library works remote. And I believe uomiarz is using xbmc as a frontend on his backend box.
So the the question is does anybody have xbmc running as a remote front end?
When I check my logs, it appears I'm connecting correctly, but I get no video and 100% CPU utilization when
i try to watch TV.
ppl saying they have it running fine on their xbox wasn't enough of a hint?
joebidalli
2008-03-03, 23:59
ppl saying they have it running fine on their xbox wasn't enough of a hint?
That doesn't tell me that the Linux version is working as a remote frontend.
ok yes it will work... same myth frontend on win32 & linux so id be gobsmacked if it didnt.
joebidalli
2008-03-05, 04:31
I still can't get liveTV to display running XBMC on Linux as a remote Myth frontend.
posted my xbmc.log here => http://pastebin.com/mf3a7804
Nick8888
2008-03-05, 04:56
02:24:06 T:3067410240 M:171843584 NOTICE: DVDPlayer: Opening: myth://myth/channels/22.ts
What is the source you added?
Are you sure its "myth://user:pass@hostname/" ??
or "myth://user:pass@hostname:port/"
joebidalli
2008-03-05, 05:12
myth://hostname
Username
password
and port are the defaults.
Which the code has as the default values.
Where can I find a good howto on installing the mythtv backend on ubuntu and use my XBOX as a frontend? The xbmcmythtv plugin keeps telling me it can't connect to the server. I've been struggling with it for days now and I've tried several howtos.
Gamester17
2008-03-05, 11:48
Where can I find a good howto on installing the mythtv backend on ubuntu and use my XBOX as a frontend? The xbmcmythtv plugin keeps telling me it can't connect to the server. I've been struggling with it for days now and I've tried several howtos.This is still in VERY EARLY development so there simply is no HOW-TOs written yet, ...you are welcome yo write one yourself though (create a wiki accoint for the XBMC Online Mnual then PM pike and ask for "ninja" status = write access).
joebidalli, could you post the output printed at commandline of xbmc? i've not been able to wrap all messages printed by mythtv. also turning on full debugging might give more info. advancesettings.xml, loglevel at 10 would spew out log so use that, check manual on how to do this.
joebidalli
2008-03-06, 05:41
elupus, hope this helps.
xmbc.log ==> http://pastebin.com/m374d9d26
XboxMediaCenter console log ==> http://pastebin.com/m5a8abe03
This is still in VERY EARLY development so there simply is no HOW-TOs written yet, ...you are welcome yo write one yourself though (create a wiki accoint for the XBMC Online Mnual then PM pike and ask for "ninja" status = write access).
Ok, I've registered and once I've figured out how to set up MythTV backend and make my XBOX connect with it I'll be more then happy to create a howto.
Just something that popped into my mind.... If the MythTV backend would send a notifier over the network every once in a while. This could simplify the setup of the client interface. Even though that is the most simple part of the setup.
well we could potentially use the upnp server of the mythtv backend. thou i've not looked at it.
joebidalli, nah that wasn't the log i was after. I'm looking for what is printed in the shell (commandprompt) from where xbmc was started when accessing mythtv.
Ok, I've registered and once I've figured out how to set up MythTV backend and make my XBOX connect with it I'll be more then happy to create a howto.
Just something that popped into my mind.... If the MythTV backend would send a notifier over the network every once in a while. This could simplify the setup of the client interface. Even though that is the most simple part of the setup.
Need any help just give me a nudge regards setup... been there got the t-shirt :) plus saves me having to wiki if i help you, you can :nod:
joebidalli
2008-03-06, 13:58
XboxMediaCenter console log ==> http://pastebin.com/m5a8abe03
This is the shell log. I remove 100's of thousands of lines of
(cmyth)cmyth_event_select [event.c:148]: (trace) }
(cmyth)cmyth_event_select [event.c:135]: (trace) {
thanx, now we are getting somewhere. I though i had fix that bug thou. you sure you've updated? make distclean should clean it properly i think.
joebidalli
2008-03-06, 14:23
How long a go. I checked out a fresh copy 4 days ago.
Last night I ran:
make clean
svn up
make
joebidalli
2008-03-07, 03:52
elupus, I ran make distclean, svn up and make. results are the same.
I decided to try XBMC running on Windows. Followed the instructions on this post.
http://xbmc.org/forum/showthread.php?t=31623
It runs, connects and displays Video (Choppy but still video). So the problem isn't my Myth configuration.
jerkychew
2008-03-07, 05:13
Ok, I've registered and once I've figured out how to set up MythTV backend and make my XBOX connect with it I'll be more then happy to create a howto.
Just something that popped into my mind.... If the MythTV backend would send a notifier over the network every once in a while. This could simplify the setup of the client interface. Even though that is the most simple part of the setup.
What kind of notifier? I'm running 0.21 SVN (the current stable release version is 0.21-fixes) and 0.21 has an option for the backend to do some kind of myth ping to the front end boxes, I believe. 0.21 is almost at a code freeze so its release is pretty imminent.
Gamester17
2008-03-07, 13:38
well we could potentially use the upnp server of the mythtv backend. thou i've not looked at it.It is my understanding that MythTV does not yet have a built-in UPnP-server, (it only has a UPnP-client), but I may be wrong(?)
...'someone' (the users) should lobby the MythTV to add one :rolleyes:
http://www.mythtv.org/wiki/index.php/UPnP
They should have a uPnP server post 0.20 builds. Atleast they showed up automagically for me with mythbuntu
Gamester17
2008-03-07, 14:50
http://www.mythtv.org/wiki/index.php/UPnP
They should have a uPnP server post 0.20 builds. Atleast they showed up automagically for me with mythbuntuCool!, ...out of curriosity I now wonder if they use uShare (http://sourceforge.net/projects/ushare) or the Platinum UPnP SDK (like XBMC) (http://sourceforge.net/projects/platinum), their wiki does not say.
http://sourceforge.net/projects/ushare
http://sourceforge.net/projects/platinum
BigSlippery
2008-03-07, 15:55
Yeah it's in there in .21. I can access it from my XBOX and PS3 without any trouble, works pretty good.
Thanks for channel icons elupus... heres a little mod i did to fullscreeninfo if condition player.hasrecord other than that its normal view for tv shows.
http://www.imagefilez.com/out.php/i224332_livetv.jpg
Cool!, ...out of curriosity I now wonder if they use uShare (http://sourceforge.net/projects/ushare) or the Platinum UPnP SDK (like XBMC) (http://sourceforge.net/projects/platinum), their wiki does not say.
http://sourceforge.net/projects/ushare
http://sourceforge.net/projects/platinum
They use uShare
GrandAnse
2008-03-07, 21:45
Thanks for channel icons elupus... heres a little mod i did to fullscreeninfo if condition player.hasrecord other than that its normal view for tv shows.
http://www.imagefilez.com/out.php/i224332_livetv.jpg
Have Elupus added EPG support to the Myth frontend already ?? Looks fantastic!
Have just compiled the latest version , when i go to live tv still get heavy buffering and close to 100% cpu usage is there a fix for this that I missed? Thanks.
Have just compiled the latest version , when i go to live tv still get heavy buffering and close to 100% cpu usage is there a fix for this that I missed? Thanks.
There probably is a fix :) if Elupus had any idea what was going on... why not help him to help you.
Debuglog mate... MythTV does not have support for Crystal Balls @ present.
Thanks. Its same issue that I posted on couple of weeks ago with debug logs here http://pastebin.com/m73d62885 SOLVER had the same issue. Just wondered if there was a fix that I had missed.
Well i apologise for not backtracking... please excuse me :)
I see a lot of DNS issues in that log... you have a router?
Yep have linksys router and separate linksys wireless access point. I know have DNS issues when running on xbox that I still need to fix. On linux get connected and watch tv except it spends all its time buffering and using all the CPU. So watch 30 secs TV, buffer for couple of minutes, 30 sec live tv etc. Thanks
DEBUG: CDVDPlayerAudio:: Discontinuty - was:4647093.824778, should be:4549353.981225, error:-97739.843553
I've seen that mentioned somewhere before, ill have a poke around but im sure someone who was using normal dvd plackback was suffering the same issue that may well be the cause of the buffering your experiencing.
cpu usage will be high if you have debug logging on. turn that off again from advancesettings.xml if you changed it there.
high cpu usage will result in discontinuties too so. I have 50% cpu usage during sdtv playback. (debug build > 100% thou, but that is nothing that you should be using)
franKiboY
2008-03-09, 12:18
I also have the same problems with high CPU usage that has been reported earlier. Not so fancy hardware, so this might of course be the problem. (Athlon XP2400+ and NVidia 7600GS).
I have set loglevel to 1 in advancedsettings.xml, but still have problems viewing live tv due to 100% CPU usage. Watching recordings gives about 10-20% CPU usage, so I believe something is wrong as I can't see the big CPU hog live tv overhead could give..
I'm happy to post logs if the ones present is not giving any clear answer.
BTW: I've been a long time XBMC for Xbox user and was really impressed by the linux version when I tried it. Better integration with Mythtv is a killer app for me! Love it!
:D
Tried compiling with debugging turned off ( Cant find advancedsettings.xml , but even if I have this file I havent made any changes to it). With debug off slight improvement in that it buffers perhaps only half as much as before. Have posted log here http://pastebin.com/m35ccaaa0. It still has the discontinuity error that C-Quel noted.
My hardware not too dissimilar to franKiboys. athlon 64 3000 and Nvidia 7800.
The system plays all my avi files etc perfectly with low CPU usage. Thanks
One thing I noticed was that when I compiled with CONFIGOPT=--disable-debug and used the -q switch (forgot it was in the launcher) when launching, usage was 100% both cores on 3ghz cpu.
When I didnt use the -q I was using approx 90% and 50% when viewing live HDTV. mythtv backend and xbmc on same machine.
franKiboY
2008-03-09, 15:27
ptipton,
I have not found much information about advancedsettings.xml, but this file does not exist by default. Create the file in the UserData directory. My advancedsettings.xml contains the following:
<advancedsettings>
<loglevel>1</loglevel>
</advancedsettings>
nah don't create it. if it doesn't exist it's at it's lowest level.
are you two perhaps using analog tv cards and playback on same computer? if you are then computer have to encode (compress) the show at the same time. if you can ssh into your machine while playing and doing a "top" then you can see what hogs the cpu.
i have seen very high cpu usage by the myth:// filesystem, but only in debug mode on xbox. i've not yet been able to figure out why that happens, i suppose it could be related.
I 'm using a Hauppage PVR150 card for analog TV on a remote backend. Have standard mythtv frontends and xbmcmythtv python script from Xbox XBMC working fine.
fixed the high cpu usage. just svn up and try again :)
I 'm using a Hauppage PVR150 card for analog TV on a remote backend. Have standard mythtv frontends and xbmcmythtv python script from Xbox XBMC working fine.
Does the frontend have to be started to make xbmcmythtv be able to connect? Isn't the backend enough?
franKiboY
2008-03-09, 23:29
Thanks, elupus!
The CPU usage is now down to 20-30%.
However, the problem with live tv is still there.
When I select a channel, xbmc "hangs" for about 20 seconds. Then it starts to play at about twice the speed for some time (I guess until it catches up with the live tv). Then it starts buffering for about 20 seconds, before starting to play correctly for about 20-30seconds. Then it buffers for about another 20 seconds, play back about 20 seconds over and over again.
My Backend is on another (dedicated) computer, which two tuner cards (dvb-c) and plenty of hourse power. I have run 5 mythtv frontends at the same time without any problems (2 live tv and 3 recordings), so it should not be the BE causing the problem.
franKiboY
2008-03-10, 00:33
(I couldn't find an edit button to edit my previous post. Am i blind?)
Forgot to mention I'm running a fairly recent build of the 0.20-fixes branch. Will probably upgrade to 0.21 soon, since it's just released.
if it's playing too fast something's weird. could you post a debug log for me to look at.
Thanks Elupus, I'm travelling this week so will svn up and test at the weekend
franKiboY
2008-03-10, 23:40
elupus,
Debug log from starting live tv: http://www.pastebin.org/23128
CPU usage during all phases (running too fast, buffering and normal play) stays normal, so this should not be related to the 100% CPU usage bug.
Frank
Rand Al Thor
2008-03-12, 20:29
Hey Elupus, great work. I have been using myth since you first implemented it and I have had great experiences with it. Just a question. All of my recorded shows just list as the show title, eg. simpsons with no more information. So i have multiple listings with the same name. Is this by design? If the shows were listed as say show-season#xep#-epname the entire folder could be set as "tvshows" and scraped so the shows would be added to the database. I know this is still in early development but I am just trying to work out the easiest way to add the shows to the library which I am assuming is the ultimate goal. Anyway, just kind of talking out loud. Cheers and thanks for all the great work!
Actually never thought about using library on this stuff, but then again i se no direct problem with it.
I've not seen any info about season or show number in the info i get from mythtv (apart from the cleartext description). Thus i've got no real way of adding anything more at the moment. I will look abit more. Maybe we could parse the description using some special scraper to figure out season/show.
I could add the showtime to the name so you atleast can see difference between the different recordings thou.
franKiboY, that wasn't a debuglog. plus would be nice if you updated to latest svn, since that would remove some of that excessive logging about thumbnails.
franKiboY
2008-03-13, 00:03
Sorry I don't know how to make a debug log. I tried to search, but didn't find any description.. So I try something different (and if this is wrong, please tell me how to do this). I set loglevel to 3 and capture shell output.
Looks like it was a bit too much for pastebin, so I'll PM you a link to the files instead.. Hope this is OK.
that was fine, was a debug log. thou i'm abit surpried at what it showed. i thought i fixed that. your audio device keeps eating up the data when a buffer underrun occurs. did you ever try to pause playback, a few seconds then resume it?
franKiboY
2008-03-13, 03:04
The behavior has changed a bit during the last day(s). Now it starts up too fast, as before, but instead of pausing for some time and playing for some time over and over again, it plays about 1/4 of a second and pauses for 1/4 of a second over and over again. I can see that the CPU usage jumps up and down when this happens.
I tried to pause for some seconds. The playback plays fine for one or two seconds before it starts stuttering again. I doesn't seem to matter how long I pause..
Playing recordings still works as expected.
Frank
Rand Al Thor
2008-03-13, 04:10
Actually never thought about using library on this stuff, but then again i se no direct problem with it.
I've not seen any info about season or show number in the info i get from mythtv (apart from the cleartext description). Thus i've got no real way of adding anything more at the moment. I will look abit more. Maybe we could parse the description using some special scraper to figure out season/show.
I could add the showtime to the name so you atleast can see difference between the different recordings thou.
Hey, thanks for the reply. I wasn't sure if perhaps my setup was returning different names than what is done by design. One thought that might do the trick for show name etc. What about using showname and original air date to get season-ep#-epname from thetvdb. Doesn't myths description list the original air date? I might be wrong. That way it would return something like simpsons-19x13-The Debarted which would make it easier to navigate recordings and could also be added to the library with little trouble. Just a thought and obviously I have no idea the amount of work that might involve. Cheers and thanks again.
Original air date is supposed to be available, but i've yet to see it in my own transmissions.
I only get a single string for show title, wich seldom contains the episode title. Sometimes the episode title is part of the description text sometimes not and you never know where inside the description it is written. It's abit complicated :/
I get Original Air Date in a large chunk of my transmissions. Its the start-end time of the shows i think would be more beneficial. As once thats in maybe looking ahead using some skinned epg overlay would be possible? eg Listitem.Label(1)(2)(3) etc...
One real PITA is when i show is due to end according to the progress bar full screen then playback just stops. I think its to be expected as per show times, but an override would be nice.
huh? does it do that for livetv?? mine usually just continues playing. thou it doesn't update status for the next show until i restart.
Yup afraid it does mate... ill loglevel(3) and pastebin as soon as i get the chance, its a case of waiting for a decent time slot when somethings about to finish or we could end up with 30mins of log which would not be pleasant :P
http://pastebin.com/m8b399fb
Not normally something i would do it was unexpected and just ended i cut the log as i was not actually debugging at the time but hopefully enough for you to see its hit EOF and attempted another stream.
no need for loglevel 3, standard debug is enough.
Not sure if this is any help but the xbmcmythtv python script has exactly the same problem with stopping at the end of each program
franKiboY
2008-03-14, 11:10
I tried to run xbmc on my mythbackend yesterday, to see if my problems where fixed there. Looks like everything runs smoothly there.
The backend machine should have almost the exact same setup as the machine where I have experienced problems, but much more powerful. The backend machine runs on a recent c2d (dual core) CPU, 8600GT GPU and plenty of memory.
The GUI debug overlay is reporting that XBMC is utilizing about 100% of CPU (sometimes more than 100%), even in menus. I have not checked if this is correct with "top", but since the backend and several other things are working without problem it might be a false CPU % number.
You where talking about audio device eating CPU. This might be a problem on my side: I use gentoo, and for some reason I have to compile alsa-lib (1.0.14a) with debugging enabled to prevent xbmc from segfaulting. I guess this might be a problem with alsa. I will try to run with 1.0.15 later today.
Anyway, things look great on the backend machine. I love the new feature in xbmc!!
wasn't meaning eating cpu, rather eating audio samples. but yea, please try that.
ptipton, not really. cmyth client are supposed to jump from file to file as the playback goes one. no such thing in the python client.
Someone at the MediaPortal forum has started writing a XBMC Python script to add the ability to use the fantastic MediaPortal TVserver with XBMC.
Almost every thinkable TV card is supported by the TVserver and it's much easier to install, configure and maintain then MythTV is. The only downside is that a Windows machine is needed to run the TVserver.
This is getting me exited! Native support for the TVserver in XBMC would even be nicer! :)
http://forum.team-mediaportal.com/general-talk-233/xbmc-python-script-36590/
Gamester17
2008-03-14, 17:58
@Bram77, good news but please respect that is very OFF-TOPIC for this specific topic-thread, you should have posted a separate new topic-thread in the python-scripts end-user forum instead for that. As for native MediaPortal-client support there is already a topic-thread in the feature suggestion forum, see: http://xbmc.org/forum/showthread.php?t=5376
I'm sorry. I should have thought of that myself.
elupus, have compiled the latest version and whilst the buffering on livetv is almost gone (only once after a channel change) so livetv now plays continuously but the video is in kind of slowmo and the audio stuttering. Have pasted xbmclog here http://pastebin.com/m29c878d4 Thanks
Just to add that if I pause livetv for a while and restart it plays ok for a while before the slowmo and stuttering starts again
franKiboY
2008-03-15, 03:12
Found that the CPU usage is very high (100%) only when I'm in the menu. It doesn't matter if I'm in the mythtv sub meny, or frontpage. (So this is not related to mythtv at all). Still it's a bit strange. CPU usage is only high in full screen. In windowed mode, it's normal (<10%).
I doesn't matter which version of alsa-lib and alsa drivers I'm using. I have tried 1.0.14a, 1.0.15 and kernel drivers. I've also tested 1.0.14a and 1.0.15 of alsa-lib. The same also applies for all combinations: If alsa-lib is compiled without debug support, I get a "Floating point exception". When debug enabled, alsa is working correctly.
This means that so far, the best info is still the debug logs I sent you.
Frank
Just to add that if I pause livetv for a while and restart it plays ok for a while before the slowmo and stuttering starts again
This sounds as you have a slow network connection between them? Wireless maybe?
Does it work with the regular frontend on the XBMC comp?
I don't know if this is different on mythtv but try to have a bigger cache in XBMC, is in settings -> system -> cache.. But that would probably not help if you have seriously poor connection but if the stutters are once in a while it might help.
Topfs2, thanks. Don't think its the network as its wired and the regular mythtv frontend runs fine on the same machine. Also all other playback, video, music etc works fine in XBMC.
Am still struggling to get Mythtv working on my xbox.
If I define the share using the hostname it simply doesn't connect so cant see the TV channels etc. Log here http://pastebin.com/m11e2f2bd
If I use the IP address in the share then I can see the channel listing but cant view livetv. It does however seem to set the backend recording. Log here http://pastebin.com/m693785e
I understand that this is some sort of DNS issue but am wondering if this is something to do with Cmyth, something relating to my particular setup or something that will at some point be fixed?
XBMC reads all the other shares from the backend machine i.e videos,music etc and the python XBMCMYTHTV script works fine. Thanks
it is hard to fix actually. the server gives us the hostname we should connect to, since the file can have been recorded on another hostname than the one we are connected to. thus if your dns doesn't work , you are pretty much out of luck.
i will add some way to manually add static dns lookups in xbmc at some point, then it will work.
joebidalli
2008-03-17, 05:38
Linux Frontend. Recordings work fine.
LiveTV, I get these errors.
22:29:51 T:2808081296 M:115888128 DEBUG: Process - MythTV event LIVETV_CHAIN UPDATE live-borrelli-laptop-2008-03-16T22:28:55
22:30:11 T:2866576272 M:115879936 ERROR: Read - error requesting block of data (-1)
22:30:12 T:2866576272 M:115879936 DEBUG: Seek - seek to pos 0, whence 16
22:30:32 T:2866576272 M:115699712 ERROR: Read - error requesting block of data (-1)
22:30:32 T:2866576272 M:115699712 ERROR: Open - error reading from input stream, myth://mythtv:mythtv@mythtv/channels/36.ts
22:30:33 T:2866576272 M:115699712 DEBUG: OpenDemuxStream - New stream available from input, retry open
22:30:33 T:2866576272 M:115699712 DEBUG: Seek - seek to pos 0, whence 16
22:31:02 T:2866576272 M:114692096 ERROR: Read - error requesting block of data (-1)
22:31:02 T:2866576272 M:114692096 ERROR: Open - error reading from input stream, myth://mythtv:mythtv@mythtv/channels/36.ts
22:31:02 T:2866576272 M:114692096 DEBUG: OpenDemuxStream - New stream available from input, retry open
22:31:02 T:2866576272 M:114692096 DEBUG: Seek - seek to pos 0, whence 16
joebidalli:
check your mythbackend log, could give a hint.
joebidalli
2008-03-17, 23:36
Elupus,
Seeing these error.
MythSocket(2aaab0040450:376): writeData: Error, zerocnt timeout
http://pastebin.com/m19fddfb1
okey, that stuff normally happens if we request too much data from backend and it fills socket. thou i really though that was solved.
CMythSession.cpp: In member function ‘bool XFILE::CCMythSession::UpdateItem(CFileItem&, cmyth_proginfo*)’:
CMythSession.cpp:91: error: ‘class DllLibCMyth’ has no member named ‘proginfo_subtitle’
I am not smart enough to fix that :(
joebidalli
2008-03-18, 05:13
elupus, don't know if this helps but I've added verbose backend logging information here.
http://pastebin.com/m961150b
Nick8888
2008-03-18, 07:42
CMythSession.cpp: In member function ‘bool XFILE::CCMythSession::UpdateItem(CFileItem&, cmyth_proginfo*)’:
CMythSession.cpp:91: error: ‘class DllLibCMyth’ has no member named ‘proginfo_subtitle’
I am not smart enough to fix that :(
Snippets of logs aren't enough to help elupus fix errors. Paste full logs of both xbmc and mythbackend to pastebin and link to it.
Snippets of logs aren't enough to help elupus fix errors. Paste full logs of both xbmc and mythbackend to pastebin and link to it.
yes, you are correct
however i get this when I try to compile newest xbmc svn (topic) and it is related to CMyth
Nick8888
2008-03-18, 08:52
http://xbmc.svn.sourceforge.net/viewvc/xbmc?view=rev&revision=12173
Its only just been added. I'd give it some time.