Re: [Freevo-users] Xine and OSD / character encoding problem
My system locale is set like this : LANG=fr_FR.UTF-8 (and every other variable named LC_* is set to this too). I'm using LOCALE='utf-8' in my local_conf.py. Use LOCALE='latin1' This is the default, the reason is that freevo uses this first as a convertion to Unicode. Unfortunately, this doesn't work. Same weird character sequence instead of 'é'. Another idea maybe ? (I also tried iso--1). Any idea how to get volume OSD information to display while xine plays a movie ? BTW, I added a feature request with the alsamixer plugin as you told : ID=1685326. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Xine and OSD / character encoding problem
I tried a lot of new combinations without any success. The u'accented_string' didn't correct anything. I put DEBUG = 1 in local_conf.py. I noticed that whatever LOCALE I set in local_conf.py, when freevo starts it outputs : config.py (903): Using 'UTF-8' encoding. Looking at that file, I think it doesn't use the local_conf.py LOCALE if it finds either a LANG or a LC_ALL env variable. Since I have both set to fr_FR.utf-8 config.py extracts utf-8 from the first. So the encode var is always set to utf-8 there, is it ok ? I tried to force it to latin-1 but no change, so I reverted my change. Should I change my system locale to something else than fr_FR.utf-8 ? I noticed that only the VIDEO_ITEMS strings are not correctly displayed. Directory names with accents are ok (those under /path/to/downloads/ for example). Also, in freevo/src/sitecustomize.py, sys.setdefaultencoding is set to 'utf-8', but I guess it is ok... Either LOCALE is good, latin-1 or iso-8859-1, utf-8 is not useful. Try, either: VIDEO_ITEMS = [ (u'Enregistrements', '/path/to/tv/recordings'), (u'Téléchargements', '/path/to/downloads') ] or # -*- coding: iso-8859-1 -*- #-- # local_conf.py - System configuration VIDEO_ITEMS = [ ('Enregistrements', '/path/to/tv/recordings'), ('Téléchargements', '/path/to/downloads') ] Both should work, I use the first option. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users
Re: [Freevo-users] Cannot manage volume through freevo global events, but I can mute...
Hi, I recently found freevo while looking for a kind of media center app under linux (allowing me to keep all my server stuff running on the same machine). I really like it a lot, but I had a problem with sound too. mixer and ossmixer plugins don't work with my alsa setup. I can see the mixer idlebar plugin changing and the OSD volume messages with volume percentage increasing or decreasing but the sound voume won't really change at all. I tried changing MAJOR_AUDIO_CONTROL, CONTROL_ALL_AUDIO but nothing worked. So, in case someone would be interested, I ducplicated ossmixer.py and modified it into an alsamixer.py plugin that works with the python-alsaaudio module (http://code.google.com/p/python-alsaaudio/). I mainly tested it for the main volume for now but it *should* behave like the ossmixer plugin. I'm using a few config variable (that needs to be defined in local_conf.py) : - ALSA_MIXER_NAME : the main volume mixer ('Master' for me) - ALSA_MICMIXER_NAME : the mic volume mixer ('Mic' for me) - ALSA_PCMMIXER_NAME : pcm volume mixer ('PCM' for me, but can be set to 'Master' too if there are no 'PCM' mixer controler, I tested it) - ALSA_CARDID : the name of the card to be used ('hw:0' for me) - ALSA_LINEMIXER_NAME : line in volume mixer I also added a ALSA_LINE_CARDID ('hw:2' for me) on which ALSA_LINEMIXER_NAME will be looked for (and not on my 'hw:0' main card). I did it so that I can use it to control the output volume of my bt878 card instead of controling a line-in (I don't have my TV card's output plugged into my main soundcard, I'm using the snd_bt87x kernel module to have direct access to the TV card sound outputs via either /dev/dsp2 for OSS and hw:2 for Alsa). If you prefer to use the main card's line-in with ALSA_LINEMIXER_NAME, just set it to whatever your line-in mixer control name is (taken from alsamixer for example) and set ALSA_LINE_CARDID to the same value as ALSA_CARDID. I hope all this was clear enough and that it can be useful to somebody. Regards, # -*- coding: iso-8859-1 -*- # --- # alsamixer.py - The ALSA mixer interface for freevo. # --- # $Id: alsamixer.py 9222 2007-02-17 10:13:50Z svax $ # # Notes: # # I propose this could replace 'mixer.py' when it's been tested adequately. # # And to activate: # # plugin.remove('mixer') # plugin.activate('alsamixer') # # # Todo: # # --- # Freevo - A Home Theater PC framework # Copyright (C) 2002 Krister Lagerstrom, et al. # Please see the file freevo/Docs/CREDITS for a complete list of authors. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of MER- # CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General # Public License for more details. # # You should have received a copy of the GNU General Public License along # with this program; if not, write to the Free Software Foundation, Inc., # 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # # --- For manipulating the mixer. import struct import os import config import plugin import rc from event import * import alsaaudio class PluginInterface(plugin.DaemonPlugin): def __init__(self): self.main_mixer = None self.pcm_mixer = None self.line_mixer = None self.mic_mixer = None self.muted = 0 # If you're using ALSA or something and you don't set the mixer, # why are we trying to open it? try: self.main_mixer = alsaaudio.Mixer( config.ALSA_MIXER_NAME, 0, config.ALSA_CARDID) except alsaaudio.ALSAAudioError: print 'Couldn\'t open mixer %s' % config.ALSA_MIXER_NAME return try: self.pcm_mixer = alsaaudio.Mixer( config.ALSA_PCMMIXER_NAME, 0, config.ALSA_CARDID) except alsaaudio.ALSAAudioError: print 'Couldn\'t open mixer %s' % config.ALSA_PCMMIXER_NAME return try: self.line_mixer = alsaaudio.Mixer( config.ALSA_LINEMIXER_NAME, 0, config.ALSA_LINE_CARDID) except alsaaudio.ALSAAudioError: print 'Couldn\'t open mixer %s' % config.ALSA_LINEMIXER_NAME return try: self.mic_mixer = alsaaudio.Mixer( config.ALSA_MICMIXER_NAME, 0, config.ALSA_CARDID) except alsaaudio.ALSAAudioError: print 'Couldn\'t open mixer %s' % config.ALSA_MICMIXER_NAME return # init here
[Freevo-users] Xine and OSD / character encoding problem
Hi again, First, I forgot to say in my previous mail that I'm using freevo 1.7.1 from svn. I quickly browsed and searched the mailing lists for those problems but couldn't find any relevant information. When using xine as preferred video player, changing volume works but there is no OSD info displayed that shows me the volume bar. That information shows up over mplayer playing movies though. I also have problems with character encoding. My system locale is set like this : LANG=fr_FR.UTF-8 (and every other variable named LC_* is set to this too). I'm using LOCALE='utf-8' in my local_conf.py. The main menu displays accented characters correctly as I have Regarder la télé displayed for the Watch TV menu title. In the video menu for instance, I have some directories defined in local_conf.py like this : VIDEO_ITEMS = [ ('Enregistrements', '/path/to/tv/recordings'), ('Téléchargements', '/path/to/downloads') ] when I'm in the video menu, the second item with accents is not displayed correctly in the item list (the 'é' is replaced with '@' and another character, I'm not in front of my freevo box right now) whereas in the detail view in the upper part of the screen (where cover and duration are showed) the name is displayed correctly with the 'é' characters. Maybe someone has a 'fix' for those problems. Regards, Stephane - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users