View Full Version : Totem is now a front-end for mythtv?
ubnewbie2
January 30th, 2008, 12:49 AM
I just read about Gnome 2.22's new features and a new plugin for Totem. Could be useful?
Totem Makes Friends With MythTV, YouTube:
While GNOME's movie player, Totem, is far from being a
new project, in GNOME 2.22 are several enticing additions.
Totem 2.22 features plugins for YouTube and MythTV.
The YouTube plug-in allows you to search and browse
YouTube.com video files all within Totem. The MythTV
plugin for GNOME allows you to view recordings from a
MythTV server as well as view live TV. We have
especially enjoyed the MythTV plug-in and look forward to
its continued development. Two other new Totem
plug-ins are Publish and Tracker, which allows you to
share your current playlist via HTTP and search for
videos, respectively. The Totem 2.21/2.22 branch
also contains other improvements and fixes for this
movie player.
See http://www.phoronix.com/scan.php?page=article&item=980&num=1
superm1
January 30th, 2008, 01:42 AM
There are still a few requirements that need to be implemented for this to happen before Hardy. In the current implementation, they are not all feasible due to licensing, but I'm talking with upstream about it.
Sounds pretty neat though eh? :)
ubnewbie2
January 30th, 2008, 02:55 AM
There are still a few requirements that need to be implemented for this to happen before Hardy. In the current implementation, they are not all feasible due to licensing, but I'm talking with upstream about it.
Sounds pretty neat though eh? :)
Yep =D>
McQuaid
February 2nd, 2008, 08:22 PM
I was under the impression that this is in for 2.20 so I was going to compile hardy's totem 2.21.90 for gutsy just to check this out. So it's not currently in hardy but it is in current development version of gnome or neither?
First heard mention of it here, also mentions youtube functionality.
Saw the youtube plugin here:
http://tecnocode.co.uk/?page=blog&action=view_item&id=63
Btw, is there any screens of totem using a mythbackend? Does it behave like a normal frontend? I'd be nice to see some pics to see it in action.
http://www.phoronix.com/scan.php?page=article&item=980&num=3
superm1
February 2nd, 2008, 09:31 PM
I was under the impression that this is in for 2.20 so I was going to compile hardy's totem 2.21.90 for gutsy just to check this out. So it's not currently in hardy but it is in current development version of gnome or neither?
First heard mention of it here, also mentions youtube functionality.
Saw the youtube plugin here:
http://tecnocode.co.uk/?page=blog&action=view_item&id=63
Btw, is there any screens of totem using a mythbackend? Does it behave like a normal frontend? I'd be nice to see some pics to see it in action.
http://www.phoronix.com/scan.php?page=article&item=980&num=3
This isn't in hardy yet. gmyth just entered NEW today. https://edge.launchpad.net/ubuntu/hardy/+queue
After it is accepted by archive admins, gstreamer0.10-plugins-bad needs to be rebuilt against it (which the upload is in dependency wait for gmyth as I write this).
After that, gmyth has to be promoted to main, and then lastly totem can be built against it.
If you want to try it for gutsy, pull the source package from NEW, pull the upload that is in dep wait for the gstreamer plugins, and then pull totem, and add libgmyth-dev to the build dependencies.
I'll try to take some screenshots of what it looks like, but its basically a list of recordings on the right side. When you open one up, it goes into streaming mode off the backend. Skipping functionality isn't in it yet, so no comm skips or anything fun like that.
No GUI that I can see yet for controlling live tv other than giving it URLs that are myth://
superm1
February 3rd, 2008, 07:11 AM
http://mythbuntu.org/image/tid/9
Screenshots ^
ubnewbie2
February 3rd, 2008, 08:08 AM
Nice. Look forward to it.
superm1
February 19th, 2008, 02:10 AM
The updates hit hardy as of today. I'm working on getting them into debian too, so this should trickle around everywhere soon.
Lem
February 27th, 2008, 05:04 PM
Does this plugin require an 8.04 mythbuntu backend? (rather than 7.10)
pHr34kY
March 14th, 2008, 05:32 PM
Does this plugin require an 8.04 mythbuntu backend? (rather than 7.10)
I got it running off my 7.10 backend. Works a treat.
All I had to do was jump into gconf-editor and specify the IP address and password here:
http://mythbuntu.org/files/images/gconf_editor_totem.preview.png
The automatic codec installer worked a treat. Correctly identified the required codec packages and installed them without issue.
The only problems I see are:
- Video/Audio sync is off
- No seeking
- Deinterlace does not work
However I think these are more problems with the codec than the plugin (same problems when I play the mpg file directory from my recordings directory).
Also, I think the 'Configure' button in the 'Configure Plugins' dialog of Totem would be good place to add a GUI to configure backend login details so we don't need to use gconf.
funkydan2
April 27th, 2008, 12:59 AM
I've been trying to get this to work since updating to Hardy.
I have a mythtv frontend+backend box that I want to connect to.
I can connect to that box with mythtv-frontend on my laptop (and also using MythTVPlayer on some Windows machines). However, I can't connect to it using the totem-plugin. I've put in the IP address of the mythtv box through gconf-editor and the same username and password from the mysql.txt file on the laptop, but when I click the "Refresh" button in Totem, no programs show up.
I'm a little confused as to what the totem plugin is trying to connect to. Is it trying to connect to the mysql database, or the mythtv backend? The reason for the confusion is that the information in gconf seems to be referring to the mysql database (wanting to know database name, username & password) but I thought that port 6543 was the port for the MythTV backend, not the MySQL DB.
teet
April 27th, 2008, 01:06 AM
What are the advantages of this totem plugin as compared to a regular mythfrontend? Why wouldn't you just use mythfrontend?
-teet
funkydan2
April 27th, 2008, 01:08 AM
There's probably lots of reasons why you might use this, but for me it's the ease of having some recorded TV (like a music video show) playing in a small window whilst I do other stuff on my PC.
superm1
April 27th, 2008, 02:52 AM
The port it is referring to is for MySQL not the mythbackend port.
funkydan2
April 27th, 2008, 03:02 AM
So should the mythtv plugin be configured to connect to port 3306 (which is the port that mysql is running on on my myth box)?
The error I get when I run totem from the command line is:
** (totem:21683): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
superm1
April 27th, 2008, 02:05 PM
So should the mythtv plugin be configured to connect to port 3306 (which is the port that mysql is running on on my myth box)?
The error I get when I run totem from the command line is:
** (totem:21683): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
Actually that was a pre-emptive naive response. My mistake.
It is indeed the port it reads the recordings from. It makes an implicit assumption then too that your MySQL is on 3306 and that you can remotely connect to it.
smbm
April 30th, 2008, 03:58 PM
So should the mythtv plugin be configured to connect to port 3306 (which is the port that mysql is running on on my myth box)?
The error I get when I run totem from the command line is:
** (totem:21683): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
Did you ever manage to fix this?
I'm getting the same error!
Anyone, any ideas?
funkydan2
May 1st, 2008, 05:28 AM
Nope.
Still not working, and I haven't got any leads.
Funny thing is, is that I had the totem-mythtv plugin working on an older laptop running the beta of hardy a month ago, but I've since given that computer away. I wonder if something's broken in the totem package since then?
sceo
May 2nd, 2008, 09:48 AM
Yes I have the same problem. My mythtv user who logs in to the frontend is named "cwells," so I've used the same password and granted that user access from all hosts in mysql. I can connect as that user remotely directly to the database, but Totem is giving me the same error as above.
** (totem:22778): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
When I connect to the DB it takes a few second, and this "timeout" error pops up seemingly quicker. Is there a way to increase the timeout value? Maybe I just need to bump it up to 10-15 seconds, but I have no idea where I might do this.
Incidentally I'm an 8.04 desktop running Totem, connecting to a Mythbuntu 7.10 frontend/backend box. Also like mentioned above, the full-on frontend works fine... though I want, as superm1 mentions, to watch the recordings in a little window while I do other stuff on my computer.
If there are any logs I can provide, etc - let me know, I'm just not sure where to begin.
funkydan2
May 2nd, 2008, 06:27 PM
Incidentally I'm an 8.04 desktop running Totem, connecting to a Mythbuntu 7.10 frontend/backend box.
I'm not sure, but does anyone know which version(s) of mythtv the totem plugin can connect to?
sceo, there is a chance that totem is only compatible with mythtv 0.21. Gutsy had 0.20 in the repositories (though 0.21 is in backports). Maybe you could see what happens if you upgrade mythtv to 0.21?
(Alternatively the opposite might be true as well, that the plugin is only compatible with 0.20!)
sceo
May 2nd, 2008, 07:10 PM
sceo, there is a chance that totem is only compatible with mythtv 0.21
If so, then it's the opposite - because I have already upgraded to .21.
superm1
May 3rd, 2008, 12:04 AM
I'm not sure, but does anyone know which version(s) of mythtv the totem plugin can connect to?
sceo, there is a chance that totem is only compatible with mythtv 0.21. Gutsy had 0.20 in the repositories (though 0.21 is in backports). Maybe you could see what happens if you upgrade mythtv to 0.21?
(Alternatively the opposite might be true as well, that the plugin is only compatible with 0.20!)
It works with 0.21. I've used it for that :)
dakota34
May 3rd, 2008, 09:21 PM
I can confirm that the myth plugin works with .20. Just input the server IP and username and password via gconf-editor and it immediately showed me all my recordings after hitting refresh. Totally awesome. The Youtube plugin is great as well. Automatic codec downloading as well. Never was keen on totem but these features have made me reverse field. Great stuff.:)
ahood
May 6th, 2008, 02:58 PM
Unfortunately, this isn't working for me. I have a Mythbuntu system running on Hardy (Myth 0.21). I just upgraded my client workstation to Hardy as well.
I have installed the totem-myth plugin and can select the Mythtv option from the dropdown list in totem. However, no recording show up.
I have configured the gconf-editor with the correct mythtv plugin information. Strangely, in gconfig-editor I don't see the "active" at the top of the totem --> myth plugin option. However, this plugin is active in totem. At least I think it is.
I have libgmyth0 installed but not libgmyth-dev if this makes a difference.
If anyone can point me in the right direction to get this working, I would be grateful.
Al
sceo
May 6th, 2008, 03:15 PM
@ahood - are you getting the same error as the rest of us? if you run totem from the command line and then select "MythTV Recordings" from the sidebar and hit "refresh," does console show you:
WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
ahood
May 6th, 2008, 03:50 PM
Thanks for the quick reply. This is the output I get in the terminal when I click on the Refresh button and MythTV Recordings is clicked.
** (totem:7023): DEBUG: Init of Python module
** (totem:7023): DEBUG: Registering Python plugin instance: YouTube+TotemPythonPlugin
** (totem:7023): DEBUG: Creating object of type YouTube+TotemPythonPlugin
** (totem:7023): DEBUG: Creating Python plugin instance
The above output occurs when I run totem as a plain user.
However, the output below appears when I run 'sudo totem'.
** (totem:7064): WARNING **: Failed to create dbus proxy for org.gnome.SettingsDaemon: Could not get owner of name 'org.gnome.SettingsDaemon': no such name
** (totem:7064): DEBUG: Init of Python module
** (totem:7064): DEBUG: Registering Python plugin instance: YouTube+TotemPythonPlugin
** (totem:7064): DEBUG: Creating object of type YouTube+TotemPythonPlugin
** (totem:7064): DEBUG: Creating Python plugin instance
** (totem:7064): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
** (totem:7064): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
** (totem:7064): DEBUG: Finalizing Python plugin instance
In the configuration editor for totem --> plugins --> totem_myttv, I have the following options...
address 192.168.0.123
database mythconverg
password
port 6543
user mythtv
The option 'active' with a checkmark does not appear in the configuration editor.
It isn't exactly clear whether the password should be the mysql database password or user password. However, it doesn't matter because it doesn't work using either password.
@ahood - are you getting the same error as the rest of us? if you run totem from the command line and then select "MythTV Recordings" from the sidebar and hit "refresh," does console show you:
WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
ianc
May 8th, 2008, 11:13 AM
@ahood - I had the same or similar issue - have you looked at this:
http://ubuntuforums.org/showthread.php?p=4904470
That fixed it for me.
At least, it fixed it to the extent that I'm now seeing the same "Couldn't connect to scheduler" error as other posters. But I suppose it's progress of a sort...
BatPenguin
May 10th, 2008, 10:36 AM
What codecs do you have to have installed for this to work? I see my recordings but I get a "Totem could not handle the file XXXX.nuv, There is no input plugin to handle the location of this movie" error. I'm using totem xine.
I've had a lot of problems with Totem previously (mainly with Dolby sound etc. sound issues and codec things) so I thought I'd ask before messing everything up with trying to install every codec I find...
Edit: Using Hardy, of course, no problems with seeing recordings in the list or watching them under Myth.
funkydan2
May 10th, 2008, 11:00 PM
@BatPenguin - when I had this working (in a pre-release version of hardy on a different computer) I was running totem with the gstreamer backend and it automatically noticed the lack of the codec and prompted to install it. Is there any reason why you're using totem-xine and not totem-gstreamer?
BatPenguin
May 11th, 2008, 01:31 AM
@BatPenguin - when I had this working (in a pre-release version of hardy on a different computer) I was running totem with the gstreamer backend and it automatically noticed the lack of the codec and prompted to install it. Is there any reason why you're using totem-xine and not totem-gstreamer?
Thanks for the reply. Yes, there is actually a reason: I've been having problems with Totem-gstreamer ever since Gutsy, and it still doesn't seem to work. The problem is that when playing files (specifically, using Xv which is needed for smooth playback), the colors get all messed up...everything turns to purple. There's some bug reports about simlar things (although with ATI cards, I have an Nvidia) but I haven't been able to solve it - but since totem-xine works just fine, I've actually not given much thought to this and I just use totem-xine.
So yes, if anybody is using this with totem-xine, I'd like to hear how they get .nuv files to show in Totem? I gave totem-gstreamer a quick try last night and saw the files playing in glorious purple hues so I guess I'll dive into solving that one if it seems like totem-xine can't be used for this. I always thought it's pretty much the same whether you use gstreamer or xine and both would support all codecs but I guess not.
BatPenguin
May 11th, 2008, 02:17 PM
Alright, just a follow-up: I did end up doing a reinstall of totem-gstreamer and unistall of totem-xine, and somewhere during that uninstallation it seems like I managed to get rid of the purple hues problem finally. So now it works....or "works", I'm getting buffering pauses even with buffering set to 20 seconds in gconf-editor. Anybody else have buffering problems watching the Myth recordings? Seems very odd, this machine has both backend and frontend so there's no network issues or anything...very strange.
Dilligaf
May 11th, 2008, 05:27 PM
I get the same pauses every 20 seconds, strange thing is if I browse to the file and play it that way it plays fine.
Mike
Nikas
May 14th, 2008, 05:38 AM
I can't select the plugin in totem. Its not in the list.
I can see the settings in gconf-editor but not in totem... what can i do?
funkydan2
May 14th, 2008, 06:35 AM
@Nikas
You need to install 'totem-plugins-extras' through your favourite package manager (synaptic, aptitude ...)
Nikas
May 14th, 2008, 07:32 AM
@Nikas
You need to install 'totem-plugins-extras' through your favourite package manager (synaptic, aptitude ...)
Thanks. The name was "totem-plugins-extra" and now it works.
funkydan2
May 17th, 2008, 10:27 PM
I just got a update to the package 'libtotem-plparser10' (it came through the hardy-updates repository I think, v 2.22.3-0ubuntu2) and now it works!
sceo
May 18th, 2008, 01:16 AM
I just got a update to the package 'libtotem-plparser10' (it came through the hardy-updates repository I think, v 2.22.3-0ubuntu2) and now it works!
I just got the same update, but it still doesn't work... which user are you using in gconf-editor... your user or user "mythtv?"
ubnewbie2
May 18th, 2008, 01:42 AM
Has anyone found the definitive fix for the error :-
** (totem:15410): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
I am still getting this
smbm
May 18th, 2008, 04:34 AM
I just got a update to the package 'libtotem-plparser10' (it came through the hardy-updates repository I think, v 2.22.3-0ubuntu2) and now it works!
It didn't work for me either.
I am no longer getting this though:
** (totem:15410): WARNING **: [gmyth_scheduler_connect_with_timeout] Error while connecting to db
** Message: Couldn't connect to scheduler
funkydan2
May 18th, 2008, 04:38 AM
I just got the same update, but it still doesn't work... which user are you using in gconf-editor... your user or user "mythtv?"
I think the user is the database user for the mysql database. By default I think that it is 'mythtv'.
sceo
May 18th, 2008, 11:19 AM
Hey all -
I was getting pretty frustrated, so I rolled up my sleeves. What did I learn? Trust your gut. My hunch was that simply the database connection was timing out. IT WAS.
From Synaptic I installed libgmyth0-dev (and all the dependencies it wanted), then I went to sourceforge, and downloaded the source code for gmyth. I waded through the code trying to find a #define for the timeout value. I couldn't seem to find it, so went with a little brute force, and in gmyth_query_connect_with_timeout (gmyth/gmyth_query.c) I overrode the "guint timeout" parameter by setting a higher timeout (30 seconds instead of somewhere in the world where I thought I saw a default of 10).
gmyth_query_connect_with_timeout(GMythQuery * gmyth_query,
GMythBackendInfo * backend_info,
guint timeout)
{
timeout = 30;
...
}
I rebuilt gmyth with "./configure --enable-debug --prefix=/usr" and while it initially still wasn't working, that was because I was getting "access denied" DB errors (as it turns out, in all my mucking with the gconf-editor settings, I set the wrong password. I can now officially confirm that YES, it's looking for the DATABASE user name and password, found in your "general settings" from your mythtv frontend).
SO...
I guess at least MY solution to the connection timeout error is to increase the timeout. (1) is it possible to make the default timeout longer? (2) is it possible to add another gconf-editor option to allow a user to specify the db timeout?
Is this outside of the realm of these developers? I'm lost at where to go next with this info, so I'm hoping someone else in the forum can take it from here or provide me with the know-how to move this forward.
smbm
May 25th, 2008, 05:33 AM
I finally got the plugin working.
When I try and play something back though I don't get any sound.
I've installed all the gstreamer plugins.
Any ideas?
axelsvag
May 30th, 2008, 02:51 PM
Has someone found a solution to the 20 s buffering problem?
smbm
June 2nd, 2008, 03:00 AM
I finally got the plugin working.
When I try and play something back though I don't get any sound.
I've installed all the gstreamer plugins.
Any ideas?
Anyone?
Any help at all?
Does it work for you?
nickrout
June 23rd, 2008, 05:36 PM
Has someone found a solution to the 20 s buffering problem?
I got this working last night, but I too have this buffering problem. I had put it down to my dodgy wireless network, so will try it wired tonight.
And for the record, it is clearly the database user and password that the config wants. Those can be found in a working front end from ~user/.mythtv/mysql.txt (where user is the user that runs mythfrontend).
And if you want to watch mythtv in a window there are other ways besides this. mythtfrontend will run in a window. You can also access recorded TV via uPnP so you could run djmount and then play the files from there.
sceo
June 23rd, 2008, 07:39 PM
And if you want to watch mythtv in a window there are other ways besides this.
Also, the illustrious MythWeb!
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.