Re: [Freevo-devel] [Freevo-cvslog] Kaa r3383 - trunk/base/src/notifier
On Tue, 2008-08-05 at 04:46 +0200, Jason Tackaberry wrote: > Log: > Process.stop() returns an InProgress object that finishes with the return > code when the process dies. popen.py is getting crufty and needs a rewrite. I started working on something a while back. Once I'm done with revamping popcorn I'll work on that. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel
Re: [Freevo-devel] cant play MP3/OGG audio from data CD
A Mennucc wrote: > hi > > > I have a freevo 1.8.1 box , where the program freevo runs as user > 'freevo' (and not root) > > I have a data CD with some audio files on it; > if I mount the CD as root, then I can browse the CD and play audio fine; > if I insert the CD and let freevo manage it, all hell breaks loose > > the problem is that freevo continues to mount/unmount the CD, but this > exposes many bugs > > one such bug for example is in the Dirwatcher plugin that wants to scan > the directory in the CD, but the CD gets unmounted, and freevo crashes > > I have fixed all bugs in directory.py , I attach a patch, so now I can > browse the CD fine > > but I still cannot play stuff there... I have to intercept the call to > mplayer, and be sure the CD is not unmounted while mplayer is trying > playing the music in it; where do I find it? I think this has already been fixed in svn. But what you can try is to see if it makes a difference running freevo as root. I'm curious to see if there is a difference between running as root and non-root. The mounts and un-mounts are important otherwise the disc will be locked in the drive. After the first mount, following mounts are very quick. Using an automounter will be slower than the normal mount command. There are a lot of additional complications when not running freevo as root, if the box is a standalone HTPC it really is not very dangerous using root as all the access is performed through the UI. Duncan - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel
Re: [Freevo-devel] Reencode jobs with video filters
Andrew Jeffery wrote: > Hi all, > > I'm wanting to add some video filters (deinterlace mainly) to my > reencode jobs and was just wondering if there was a reason for the > setVideoFilters call being commented out in reencode.py? IIRC there are so many possibilities for filter but I'm pretty sure that deinterlacing is on by default. Duncan - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel
Re: [Freevo-devel] kaa.candy changes proposal (was: Kaa r3378 - in trunk/candy: . src/libcandy src/widgets)
On Mon, 2008-08-04 at 18:24 +0200, Dirk Meyer wrote: > So I propose that a kaa.candy.Widget HAS a clutter.Actor. I see the > following advantages: > > - Thread-safe because we do not modify a real clutter actor. One > single now_render function could be created to calculate stuff and > create the actors in the gobject mainloop > - Hide clutter API the user should no use > - Support layout Yes, and this is basically how kaa.canvas worked. In fact, the actual underlying evas object creation was deferred, as was applying properties to the object. For evas, the deferring was done because you couldn't create evas objects without immediately tying them to a canvas, which worked against our earlier requirement of being able to move objects between canvases. You could do something similar here with candy, further abstracting and deferring object creation, which will let you more conveniently take care of all that in the clutter thread. I'm a bit surprised you didn't do it this way to begin with. I should have been paying attention to the candy check-ins, I would have said something. :) > I have no idea what the code does. It was copied from tidy. Maybe tidy > is already updated to 0.8 I found that code in toys/ but I didn't check tidy. It would be nice if that was updated to 0.8. My changes work fine for non-tiled textures, and it sounds like tiled textures didn't work right even with 0.6. > > -import clutter.cluttercairo > > +try: > > +import cluttercairo > > +except ImportError: > > +# 0.6 > > +import clutter.cluttercairo as cluttercairo > > There is clutter.__version__ Not really needed I think. Eventually we'll just remove that code anyway, once 0.6 is old enough. - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel
[Freevo-devel] kaa.candy changes proposal (was: Kaa r3378 - in trunk/candy: . src/libcandy src/widgets)
Jason Tackaberry wrote: > Author: tack > Date: Sun Aug 3 17:39:57 2008 > New Revision: 3378 > > Log: > Support for clutter 0.8 and pyclutter 0.8 (changes not tested against > 0.6 though). Thanks. While looking at your changes I see again a design flaw in kaa.candy. I noticed it before when you proposed the layout stuff you did for kaa.canvas. Right now a kaa.candy.Widget IS a clutter.Actor. This exposes the clutter API to the kaa.candy user making some stuff impossible. E.g. widget.get_width() will return the real object width and can not respect alignments. And set_width could never support '100%' as value. So I propose that a kaa.candy.Widget HAS a clutter.Actor. I see the following advantages: - Thread-safe because we do not modify a real clutter actor. One single now_render function could be created to calculate stuff and create the actors in the gobject mainloop - Hide clutter API the user should no use - Support layout What do you think? > - /* FIXME: Below wont actually render the corrent graduated effect. */ > + /* FIXME: Below wont actually render the corrent graduated effect. > + * The code below is disabled for clutter 0.7+ as porting it is > + * non-trivial. > + */ > + > + g_warning("ClutterReflectTexture doesn't support tiled textures."); I have no idea what the code does. It was copied from tidy. Maybe tidy is already updated to 0.8 > -import clutter.cluttercairo > +try: > +import cluttercairo > +except ImportError: > +# 0.6 > +import clutter.cluttercairo as cluttercairo There is clutter.__version__ Dischi -- Only Irish coffee provides in a single glass all four essential food groups -- alcohol, caffeine, sugar, and fat. -- Alex Levine - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel
[Freevo-devel] cant play MP3/OGG audio from data CD
hi I have a freevo 1.8.1 box , where the program freevo runs as user 'freevo' (and not root) I have a data CD with some audio files on it; if I mount the CD as root, then I can browse the CD and play audio fine; if I insert the CD and let freevo manage it, all hell breaks loose the problem is that freevo continues to mount/unmount the CD, but this exposes many bugs one such bug for example is in the Dirwatcher plugin that wants to scan the directory in the CD, but the CD gets unmounted, and freevo crashes I have fixed all bugs in directory.py , I attach a patch, so now I can browse the CD fine but I still cannot play stuff there... I have to intercept the call to mplayer, and be sure the CD is not unmounted while mplayer is trying playing the music in it; where do I find it? a. --- /usr/share/pyshared/freevo/directory.py~orig 2008-08-04 11:13:11.0 +0200 +++ /usr/share/pyshared/freevo/directory.py 2008-08-04 12:03:14.0 +0200 @@ -520,8 +520,8 @@ # are we on a ROM_DRIVE and have to mount it first? for media in config.REMOVABLE_MEDIA: if self.dir.find(media.mountdir) == 0: -util.mount(self.dir) self.media = media +self.media.mount() if vfs.isfile(self.dir + '/.password'): print 'password protected dir' @@ -971,6 +971,7 @@ self.item_menu = None self.dir = None self.files = None +self.media = None self.poll_interval = 100 # 1 sec plugin.register(self, 'Dirwatcher') @@ -1002,11 +1003,25 @@ self.item = item self.item_menu = item_menu self.dir = dir +# are we on a ROM_DRIVE and have to mount it first? +self.media = None +if self.dir: +for media in config.REMOVABLE_MEDIA: +if self.dir.find(media.mountdir) == 0: +self.media = media +print 'CWD to DIR %s MEDIA %s' % (dir,media) + try: self.last_time = item.__dirwatcher_last_time__ self.files = item.__dirwatcher_last_files__ except AttributeError: +need_umount = False +if self.media: +need_umount = not self.media.is_mounted() +self.media.mount() self.last_time = vfs.mtime(self.dir) +if need_umount: +self.media.umount() self.files = self.listoverlay() self.item.__dirwatcher_last_time__ = self.last_time self.item.__dirwatcher_last_files__ = self.files @@ -1015,6 +1030,12 @@ def scan(self): if not self.dir: return + +need_umount = False +if self.media: +need_umount = not self.media.is_mounted() +self.media.mount() + try: if vfs.mtime(self.dir) <= self.last_time: return True @@ -1052,6 +1073,9 @@ self.files = self.listoverlay() self.item.__dirwatcher_last_files__ = self.files +if need_umount: +self.media.umount() + def poll(self): if self.dir and self.menuw and \ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel