Re: [Freevo-users] new here some questions
El Jueves, 10 de Febrero de 2005 11:26, Satana escribió: Test your hardware with knoppix. If it's all ok, then you probably won't have problem with other distros, if knoppix fails to see something...bad times ahead... Thanks for the advice. The problem is that I still haven't bought the hardware. I'd like to know whether it will work before buying. I guess I shouldn't have any problem, but... Alberto --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95alloc_id396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Help writing plugin.
Ryan, within your mainMenu item, you'll need something like the below (chopped from my shoutcast plugin - see the dev archives for a full copy). It's all to do with the actions function. here you can choose whether to create another submenu or to actually do something. def actions(self): return [(self.createMenu,'Web Radio')] def createMenu(self, arg=None, menuw=None): radio_menu_items=[] radio_menu_items+=[menu.MenuItem(Top20,self.top20)] radio_menu_items+=[menu.MenuItem(Genre,self.genre)] radio_menu_items+=[menu.MenuItem(Search,self.searchPB)] radio_menu=menu.Menu(Web Radio, radio_menu_items) menuw.pushmenu(radio_menu) menuw.refresh() Rande Here is the little that I have been able to figure out. I am able to create a main menu item, and I know how to shell a command, but I cannot create sub menus, and I don't have a clue on how to read and generate it from a config file. Any help would be appreciated. Thank you, Ryan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] problem playing video files
Hello, I am using MandrakeLinux 10.1 using the freevo 1.5.3 and everything works perfect except when I try to play an AVI or mpg or any video format it opens and the audio plays but there is no video..?? I tried the Debug=1 and no errors or anything.. anyone else ever have this problem? -- Progress (n.) : Going from Dumb terminals with Smart Engineers to Smart Terminals with Dumb Engineers --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Re: LAST TIME: SDL_NOMOUSE not working?
Cuddles wrote: Hi all (AGAIN!). Since this sounds like you want an answer if you don't like it, here it is: Any ideas? No Dischi -- A man with a watch knows what time it is. A man with two watches is never sure. pgpcHsG8GxOJv.pgp Description: PGP signature
[Freevo-users] Re: mevas slow?
FeNiX wrote: Hi! I am running freevo 2.0 cvs. I have g400dh connected to tv. I am using directfb for output. Everything that works works fine, there is no window flickering like in 1.5.3. Really? I would like to have your config please, Mplayer and df_xine looked ok, but Freevo is a mess. But it seems to me that mevas engine is a bit slow. I like new mplayer freevo osd that is blended with bmovl, but then cpu usage of mplayer is huge. So it's no mevas problem, it is a problem with mplayer showing the osd. Without bmovl i get around 30% but with bmovl it gets up to 80%! It should be possible in future versions to turn the bmovl code off. No nice osd on mplayer, but works with slower cpu. Also new menu fading effect is great idea but it doesn't run smooth as it should. My CPU is PIII 800 which should be enough for htpc software. Same here, there should be an option to turn it off. I am suggesting to implement more directfb in mevas engine. For example, when fading why not use directfb method SetOpacity? When making fade in - fade out transition from one image to another why not use two directfb windows and on one increasing opacity and on the other decreasing it. Yes, a real dfb imagelib in mevas would be great. But we need more man power to do all the cool stuff. To replace bmovl for freevo osd in mplayer, xine or other external programs why not use directfb windows? In one window is mplayer, xine or whatever and in other window, that is on top, freevo osd. IIRC this is not possible, both mplayer and xine are running in fullscreen mode and don't like other dfb applications. Best solution would be to build new display engine (based on directfb) that should be written in c. I am willing to work on this. Great. But you don't need a new display engine. The display engine is not the problem, we need a dfb based imagelib for mevas. Maybe you can work together with Rob, he is maintaining pydirectfb. Maybe you need to expand something in the c part of pydirectfb to make it faster. Every help is welcome. Dischi -- Claiming that your operating system is the best in the world because more people use it is like saying McDonalds makes the best food in the world. pgpEjveosbYWg.pgp Description: PGP signature
Re: [Freevo-users] Re: mevas slow?
Dirk Meyer wrote: FeNiX wrote: Hi! Hi, I meant to reply to this yesterday. :) I am running freevo 2.0 cvs. I have g400dh connected to tv. I am using directfb for output. Everything that works works fine, there is no window flickering like in 1.5.3. Really? I would like to have your config please, Mplayer and df_xine looked ok, but Freevo is a mess. But it seems to me that mevas engine is a bit slow. I like new mplayer freevo osd that is blended with bmovl, but then cpu usage of mplayer is huge. So it's no mevas problem, it is a problem with mplayer showing the osd. Without bmovl i get around 30% but with bmovl it gets up to 80%! It should be possible in future versions to turn the bmovl code off. No nice osd on mplayer, but works with slower cpu. A while back I set self.use_bmovl = False in the mplayer video plugin because of this and other instability at the time. I've been meaning to turn it back on and test it some more. I am suggesting to implement more directfb in mevas engine. For example, when fading why not use directfb method SetOpacity? When making fade in - fade out transition from one image to another why not use two directfb windows and on one increasing opacity and on the other decreasing it. Yes, a real dfb imagelib in mevas would be great. But we need more man power to do all the cool stuff. I have one started. I was pretty hot on it a few weeks ago but then Dischi went and made some things perform faster so there's been less need. :) To replace bmovl for freevo osd in mplayer, xine or other external programs why not use directfb windows? In one window is mplayer, xine or whatever and in other window, that is on top, freevo osd. I have been thinking about using this model for quite some time. I have an old directfb_osd plugin that does just this. Also the main Freevo screen is a directfb window. I will revive this plugin asap. IIRC this is not possible, both mplayer and xine are running in fullscreen mode and don't like other dfb applications. I had this working over mplayer but I might have been using force-windowed in /etc/directfbrc. It is also very possible to modify mplayer and df_xine to display onto an existing window's surface, still using the BES. This way Freevo could startup and maintain several windows - for main screen, OSD, picture in picture, video previews, and full video. Best solution would be to build new display engine (based on directfb) that should be written in c. I am willing to work on this. Great. But you don't need a new display engine. The display engine is not the problem, we need a dfb based imagelib for mevas. Maybe you can work together with Rob, he is maintaining pydirectfb. Maybe you need to expand something in the c part of pydirectfb to make it faster. I don't think we need a new display engine either. I will commit the directfb imagelib by Saturday, then we can experiment with some different approaches. Dischi, on a related note, I was wondering if you could add a get_ method to the src/gui/displays/ code that returns a list of (or active) canvas. I'd like to play with a dfb_osd plugin that gets the dfb canvas then uses that dfb instance to create a new window (or use an existing one) - instead of having to create a new / reinit directfb. -Rob --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Re: LAST TIME: SDL_NOMOUSE not working?
Dirk Meyer wrote: Cuddles wrote: Hi all (AGAIN!). Since this sounds like you want an answer if you don't like it, here it is: Any ideas? No Dischi Well, at least you answered. :) That's better than what I got the last time. --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
[Freevo-users] Re: mevas slow?
I had this working over mplayer but I might have been using force-windowed in /etc/directfbrc. It is also very possible to modify mplayer and df_xine to display onto an existing window's surface, still using the BES. This way Freevo could startup and maintain several windows - for main screen, OSD, picture in picture, video previews, and full video. That remonds me of a design problem. Based on the display we should do some special stuff in the mplayer or xine plugins. Right now, the user has to set everything. Three possible solutions: 1. mplayer/xine knows about every display. Disadvantage: every time we add a display, we need to expand mplayer/xine 2. The display knows about special mplayer/xine settings. Disadvantage: when we add a new player, we need to change all displays 3. We add a dummy variable display to freevo.conf and do some special settings in freevo_conf.py. Disadvantage: we need to change this every time we add something new. Ideas? Dischi, on a related note, I was wondering if you could add a get_ method to the src/gui/displays/ code that returns a list of (or active) canvas. Like gui.display.display_stack? Dischi -- File not found. Should I fake it? (Y/N) pgpIqHd9Vf66K.pgp Description: PGP signature
Re: [Freevo-users] Re: mevas slow?
Dirk Meyer wrote: I had this working over mplayer but I might have been using force-windowed in /etc/directfbrc. It is also very possible to modify mplayer and df_xine to display onto an existing window's surface, still using the BES. This way Freevo could startup and maintain several windows - for main screen, OSD, picture in picture, video previews, and full video. That remonds me of a design problem. Based on the display we should do some special stuff in the mplayer or xine plugins. Right now, the user has to set everything. Three possible solutions: 1. mplayer/xine knows about every display. Disadvantage: every time we add a display, we need to expand mplayer/xine 2. The display knows about special mplayer/xine settings. Disadvantage: when we add a new player, we need to change all displays I would see option 1 to be a lesser evil than option 2. It is true that both are not optimal and kinda undermines the abstraction mevas gives us. 3. We add a dummy variable display to freevo.conf and do some special settings in freevo_conf.py. Disadvantage: we need to change this every time we add something new. I think that the 'diaplay' variable in freevo.conf should be used to set GUI_DIAPLAY automaticly (If it doesn't already). Based on that we can set an intelligent default for MAPLAYER_VO_DEV or the xine -V flag, both of which could be overriden in local_conf.py. Ideas? What about adding a module to src/config/ so we can config.detect('display'). Much of this work can be done there, setting intelligent defaults and perhaps even setting some argument variables that the mplayer or xine tv/video plugins can use as-is with no redundant checks required. If there's any special magic or workaround that needs to be done for certain displays then it could be done in the src/config/display.py file. Just a thought... Dischi, on a related note, I was wondering if you could add a get_ method to the src/gui/displays/ code that returns a list of (or active) canvas. Like gui.display.display_stack? Heh, yes, just like that and get_display(). :) Ok, I'll go try something with that. -Rob --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Help writing plugin.
typo there - menuw.pushmenu(radio_ha) should be - menuw.pushmenu(ha_menu) Here's what I now have, but I'm still haing trouble, lots of trouble. I'm having trouble grasping the way python works, and my local BN has no books on python. -- import os import time import sys import menu import config from gui import ConfirmBox from item import Item from plugin import MainMenuPlugin class HomeAutomationItem(Item): def actions(self): items = [(self.createMenu, _('Home Automation'))] return items def createMenu(self, arg=None, menuw=None): ha_menu_items=[] ha_menu_items+=[menu.MenuItem(Living Room,self.livingroom)] ha_menu_items+=[menu.MenuItem(Master Bedroom,self.masterbedroom)] ha_menu_items+=[menu.MenuItem(Office,self.office)] ha_menu=menu.Menu(Home Automation, ha_menu_items) menuw.pushmenu(radio_ha) menuw.refresh() class PluginInterface(MainMenuPlugin): def items(self, parent): return [ HomeAutomationItem(parent) ] -- Thanks, Ryan [EMAIL PROTECTED] wrote: Ryan, within your mainMenu item, you'll need something like the below (chopped from my shoutcast plugin - see the dev archives for a full copy). It's all to do with the actions function. here you can choose whether to create another submenu or to actually do something. def actions(self): return [(self.createMenu,'Web Radio')] def createMenu(self, arg=None, menuw=None): radio_menu_items=[] radio_menu_items+=[menu.MenuItem(Top20,self.top20)] radio_menu_items+=[menu.MenuItem(Genre,self.genre)] radio_menu_items+=[menu.MenuItem(Search,self.searchPB)] radio_menu=menu.Menu(Web Radio, radio_menu_items) menuw.pushmenu(radio_menu) menuw.refresh() Rande Here is the little that I have been able to figure out. I am able to create a main menu item, and I know how to shell a command, but I cannot create sub menus, and I don't have a clue on how to read and generate it from a config file. Any help would be appreciated. Thank you, Ryan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Help writing plugin.
First I want to thank everyone for the help so far. Here is my code so far: code start import os import sys import menu import config from gui import ConfirmBox from item import Item from plugin import MainMenuPlugin class HomeAutomationItem(Item): def __init__(self, parent): Item.__init__(self,parent) self.name = _( 'Home Automation' ) def actions(self): items = [(self.createMenu, _('Home Automation'))] return items def createMenu(self, arg=None, menuw=None): ha_menu_items=[] ha_menu_items+=[menu.MenuItem(Living Room,self.livingroom)] ha_menu_items+=[menu.MenuItem(Master Bedroom,self.masterbedroom)] ha_menu_items+=[menu.MenuItem(Office,self.office)] ha_menu=menu.Menu(Home Automation, ha_menu_items) menuw.pushmenu(ha_menu) menuw.refresh() def livingroom(self): return def masterbedroom(self): return def office(self): return class PluginInterface(MainMenuPlugin): def items(self, parent): return [ HomeAutomationItem(parent) ] code end The menus work fine, but of course as you can see they are hard coded in. So how can I have it read from a config file ('/etc/freevo/homeautomation.conf') and create these menus automatically? I would like my config file to look somewhat like the following: [Living Room] [Corner Light] On,'command to execute when selected' Off,'command to execute when selected' Dim,'command to execute when selected' [Ceiling Fan] On,'command to execute when selected' Off,'command to execute when selected' [Master Bedroom] [Ceiling Light] On,'command to execute when selected' Off,'command to execute when selected' Dim,'command to execute when selected' [Office] [Wall Light] On,'command to execute when selected' Off,'command to execute when selected' Dim,'command to execute when selected' My goal is to have my main menu of Home Automation, with the sub menus Living Room, Master Bedroom, and Office. Then Living Room would have the options to control either the Corner Light or Ceiling Fan and each of those items would have their sub-options of On and Off, and Dim when applicable. Ryan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Help writing plugin.
After looking at other plugins I think I will pull my config from local_config.py like the rest do, somethin like: HA_ITEMS = [ (Living Room, Corner Light,On,Off,Dim), (Living Room, Ceiling Fan,On,Off), (Living Room, TV,On,Off), (Bedroom, Ceiling Lights,On,Off,Dim) (Bedroom, Table Lamp,On,Off,Dim) ] --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Re: mevas slow?
FeNiX wrote: - Original Message - From: Rob Shortt [EMAIL PROTECTED] To: freevo-users@lists.sourceforge.net Sent: Thursday, February 10, 2005 4:00 PM Subject: Re: [Freevo-users] Re: mevas slow? IIRC this is not possible, both mplayer and xine are running in fullscreen mode and don't like other dfb applications. I had this working over mplayer but I might have been using force-windowed in /etc/directfbrc. It is also very possible to modify mplayer and df_xine to display onto an existing window's surface, still using the BES. This way Freevo could startup and maintain several windows - for main screen, OSD, picture in picture, video previews, and full video. I also got this working but with different aproach. I modified dfbmga plugin in mplayer. I removed all layer initialitazion and reconfiguration. Insted of creating new layer/surface dfbmga was getting control of window that was created by my application that called mplayer. Window id (that is actually plain number) i passed through dfbmga calling parameters. I think that same thing can be achieved with modification of xine. With this aproach i got smooth transition between my application and mplayer (no flickering) Cool. I was thinking of a window id param for mplayer directfb/dfbmga too. Could you send me a patch? There could be a problem with directfb windows on top mplayer for tv output. Dfbmga for tv output uses surfaces with YV12 pixelformat. (This format gives accelerated video on tv output) In BES output it uses RGB format. Problem is that I think that windows with RGB surface can't be on top of windows (layers) with YV12 surface. I am unsure of this as well but I see you have raised it on the directfb list, I'll follow the thread. Insted of using directfb windows for osd on top mplayer (xine) we can use subpicture layer. This layer is only available for tv output, but freevo as htpc software is made for tv output, so this shouldn't be a problem. This layer can display only 16 colors but with good palette choice it is enough for nice osd (note: vdr also uses 16 colors for osd). Subpicture layer can give best performance because it is independent of crtc2 layer witch mplayer uses for it's output. Only downside of this is that as I know subpicture layer is available only on matrox cards. Most decent directfb drivers have 2 layers per screen nowadays, usually one is meant for graphics or OSD and the other for video. I was thinking of having Freevo config items to say which layer you'd prefer for each. I use dfbmga too, only I'm using a projector now so no more CRTC2 here. I'm going to dust off the cle266 soon too, that has two layers as well. -Rob --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Re: mevas slow?
Most decent directfb drivers have 2 layers per screen nowadays, usually one is meant for graphics or OSD and the other for video. I was thinking of having Freevo config items to say which layer you'd prefer for each. Slightly OT: but what projector? Is it runing off a G400 or something else? Mick --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Re: mevas slow?
mike lewis wrote: Slightly OT: but what projector? Is it runing off a G400 or something else? An epson powerlite home 10+: http://www.projectorcentral.com/Epson-PowerLite_Home_10+.htm Yes, its running on a G400, first head. The projector is pretty good bang for the buck and I'm extremely happy with it. -Rob --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Re: mevas slow?
Slightly OT: but what projector? Is it runing off a G400 or something else? An epson powerlite home 10+: http://www.projectorcentral.com/Epson-PowerLite_Home_10+.htm Yes, its running on a G400, first head. The projector is pretty good bang for the buck and I'm extremely happy with it. Oooh, I'm jealous. Looks nice. I like the calculatore thingy on that site too ;-). Mick --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Help writing plugin.
Can you enlighten me a little more on making sub menus, I have the loop down, but I can't figure out how to add submenus effectivly. Thanks again for all of your help. Ryan --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] problem playing video files
On Thu, 10 Feb 2005 08:59:50 -0500, Allan Psaila [EMAIL PROTECTED]wrote: ...everything works perfect except... I find it fascinating that whenever anyone asks a question here (myself included) we feel the need to say everything works perfectly. I suspect this is to reassure the people here that we've already made good progress already, but I know that MY freevo setup isn't working perfectly. Perfection is the goal, and we're not quite there yet :) Shawn Dowler -- Want free stuff? Find out how to get it: - - - - - http://dowler.homelinux.org - - - - - Hey Fat Mike, did you eat all the food on the ISS? --- SF email is sponsored by - The IT Product Guide Read honest candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595alloc_id=14396op=click ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users