Duncan Webb wrote: > John Molohan wrote: > >> John Molohan wrote: >> >>> Hi, >>> >>> I'm trying to play and audio CD with current svn of the 1.7 branch. I >>> use df_xine but when I went to play the CD freevo tried to launch fbxine >>> which isn't installed or mentioned in /etc/freevo/freevo.conf. It seems >>> that if df_xine is set and so is xine then freevo guesses to use fbxine >>> from the match of xine and display = dfbmga? It should just use df_xine >>> if defined. >>> >>> [EMAIL PROTECTED] MusicMagicMixer]# cat /etc/freevo/freevo.conf >>> cdparanoia = /usr/bin/cdparanoia >>> chanlist = ireland >>> df_xine = /usr/local/src/DirectFB-extra-0.9.25/samples/df_xine/df_xine >>> display = dfbmga >>> geometry = 720x576 >>> jpegtran = /usr/bin/jpegtran >>> lsdvd = /usr/bin/lsdvd >>> mencoder = /usr/bin/mencoder >>> mplayer = /usr/bin/mplayer >>> oggenc = /usr/bin/oggenc >>> renice = /usr/bin/renice >>> setterm = /usr/bin/setterm >>> tv = pal >>> tvtime = /usr/bin/tvtime >>> version = 2.1 >>> xine = /usr/bin/xine >>> >>> >> Seems also that setting AUDIO_PREFERED_PLAYER = 'mplayer' doesn't change >> the behavior xine is still used which isn't good cause I loose the >> freevo interface when df_xine is launched. I'd like to have mplayer >> playing with the detached player. Any ideas? >> > > Mplayer should work just fine. > > I use: > plugin.activate('audio.mplayervis') > but you need the goom packages installed for this to work correctly. > > Attached is a patch that may fix the xine audio player to use the > df_xine command. > > Duncan > > ------------------------------------------------------------------------ > > Index: src/audio/plugins/xine.py > =================================================================== > --- src/audio/plugins/xine.py (revision 9565) > +++ src/audio/plugins/xine.py (working copy) > @@ -49,28 +49,37 @@ > plugin.Plugin.__init__(self) > > try: > - config.CONF.fbxine > + config.XINE_COMMAND > except: > print String(_( 'ERROR' )) + ': ' + \ > - String(_( "'fbxine' not found, 'xine' audio plugin > deactivated" )) > + String(_("'XINE_COMMAND' not defined, 'xine' video plugin > deactivated.\n" \ > + 'please check the xine section in > freevo_config.py' )) > return > > + if config.XINE_COMMAND.find('fbxine') >= 0: > + type = 'fb' > + elif config.XINE_COMMAND.find('df_xine') >= 0: > + type = 'df' > + else: > + type = 'X' > + > # register xine as the object to play > - plugin.register(Xine(), plugin.AUDIO_PLAYER, True) > + plugin.register(Xine(type), plugin.AUDIO_PLAYER, True) > > > -# ====================================================================== > > class Xine: > """ > the main class to control xine > """ > > - def __init__(self): > - self.name = 'xine' > - self.app_mode = 'audio' > - self.app = None > - self.command = '%s -V none -A %s --stdctl' % (config.CONF.fbxine, > config.XINE_AO_DEV) > + def __init__(self, type): > + self.name = 'xine' > + self.app_mode = 'audio' > + self.xine_type = type > + self.app = None > + > + self.command = '%s -V none -A %s --stdctl' % (config.XINE_COMMAND, > config.XINE_AO_DEV) > if config.XINE_HAS_NO_LIRC: > self.command = '%s --no-lirc' % self.command > > Thanks Duncan. I'll give that a try tomorrow hopefully and let you know. I'm not sure what is plugin is activated for audio at the moment, I don't use goom so it's not that but I'll double check too.
John ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users