Tag Archives: bug

F-Spot – Quando i due punti sono di troppo

Un grosso grosso baco affligge le ultime versioni di F-Spot, impedendo agli utenti di usare fotografie che contengano nel nome del file il carattere ‘ : ‘ (due punti), che pure è ampiamente usato su Linux (diversi software di gestione delle foto hanno una funzione di rinomina dei file in base a data e orario).

La soluzione, senza scendere troppo nei dettagli, riguarda un aggiornamento del database di F-Spot e nel rinominare i nomi dei file delle foto incriminate. Sperando in una patch e in tempi migliori.

Webcam, Cheese, GStreamer and UVCVideo problems in Intrepid

I bought a new webcam, a Logitech E 3500 and it works great on Skype. Unfortunately, on my Ubuntu Intrepid box, Cheese and other GStreamer based programs are not able to make the webcam work.

At the beginning, since it was working with Skype and not working with GStreamer, it seemed a GStreamer bug. It is not. It is a bug with the uvcvideo module loaded in the kernel. As soon as you compile the SVN version of uvcvideo the webcam start working with all the programs which can interface with Video4Linux2.

Here a few steps to make it working.
First of all: you need to install some build tools and the kernel headers:
sudo apt-get install linux-headers-`uname -r` build-essential subversion

Create a folder on which you will work (let’s say it’s in your home, but you can change it):
mkdir ~/uvcvideo
cd ~/uvcvideo

Now download the latest source from the SVN server:
svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk
cd trunk

and build it:
make

Now you are ready to load the brand-new module, but first unload the old one:
sudo rmmod uvcvideo
sudo insmod ./uvcvideo.ko

Now start Cheese and smile! In my case the resolution selection is still not working, but that’s a minor problem.

Please note that now you are using a module that is hand-loaded. If you want your kernel to load the new uvcvideo module automatically instead of the old one, enter the following commands:
sudo cp ./uvcvideo.ko /lib/modules/`uname -r`/kernel/drivers/media/video/uvc/uvcvideo.ko
sudo rmmod uvcvideo
sudo modprobe uvcvideo

This will overwrite the old module. The classic make install won’t work, since it will install the module in a different folder from the default tree of the kernel in Ubuntu Intrepid.

Personally I hope Ubuntu will soon provide a correct patch: even this worked for me, I don’t really like quick&dirty ways

Evolution 2.24: The buggiest version ever

Almost two weeks earlier than the official release (I’m so brave!), I upgraded my Ubuntu Box from Hardy to Intrepid. Everything shines and it is great, except for one: Evolution 2.24.

The new version of famous Gnome PIM Client by Novell (ex Ximian) is absolutely a pain in the ass, buggy and very easy to crash (it seems a software by Microsoft!). Let’s start.

Google Calendar

At the very first beginning it seems this new version eventually works well with Google Calendar. If you add an event on your Evolution, you will see it magically appears online. But at the very second try you will understand it is not working so well. Events in some of the calendar are read only and any time you try to move them or to modify you have two possibilities:

  1. The event doesn’t move: it’s well protected and the cut and copy commands in the context menu are gray.
  2. The event moves, you start singing “hurrah!”, but it actually makes a duplicate creating a new event just beside the previous one.

Of course forget any chance of deleting any event: any changes must be done through the web interface of Google Calendar.

After that you could have the great idea of changing some settings for the calendar which gives you problems. The default settings are “sync every 30 minutes” and “use SSL”. Well, let’s try to make the sync happens every 5 minutes and do you really need SSL for the calendar about your dog poo time?

After changing those settings somethings seems changed, but it’s just an impression: give Evolution a couple of minutes and it will disappoint you again. So you open the settings again and you see that they are back to 30 minutes and SSL is activated again.

Mail

I have to admit: there are not so many problems about the email. Only two.

1. Email notification

I was used to run the Email Notification applet to make an envelop icon appear on my panel any time I have an unread email. I just don’t like the Evolution native notification: it doesn’t behave as I want, and until differently proven this computer belongs to me.

Of course, since you are reading this, the Mail Notification 5.4 doesn’t work well with Evolution 2.24. You could think this is just a matter of configuration. So I tried to configure the Mail Notification but as I try to change any settings inside the Mail Notification Preferences I see Evolution crashing. The big giant defeated by the small dwarf who, by the way, didn’t want to hurt the big giant.

2. Virtual Folders and email count

Evolution 2.24 has some serious problem with calculation. I have some VFolder: one of this is the “Unread Messages” that will collect all the messages tagged as unread. This folder says I have two unread messages but it’s actually empty.

-1 unread, 6 total

-1 unread, 6 total

But there is another VFolder which behaves much funnier. This folder collects all the messages received in the last two days plus all the email tagged as “Important”. This folder says that I have 6 messages total (they are actually 27) and -1 unread messages (yes: minus one). Maybe Evolution thinks I have to write one message to get even.

Evolution 2.24 has been released along with Gnome 2.24. Both are great projects and I’m using them since several years ago (I suppose I started using Gnome in 2000), but they cannot pretend they are good and stable only because they shouted out so. It’s some kind of arrogance that puts out a quality much lower than the one I got used to.

L’uso frustrante di Gstreamer e Sound Juicer

VioloncellistaSound Juicer è il lettore CD di Gnome, nonché programma adibito all’estrazione dei CD e alla trasformazione delle tracce in un formato compresso: installando tutti i plugin brutti e cattivi di gstreamer si riesce a usare molti formati: MP3, AAC (quello dell’iPod), Ogg Vorbis, Flac e Wave.

I problemi iniziano già subito: in Sound Juicer non è possibile modificare alcuni dettagli delle informazioni che verranno scritte nei file. Non è possibile aggiungere le note, l’autore, l’anno del disco. Ci si può limitare solo a quello che compare nella finestra principale: autore, titolo del brano, album e genere. Se a voi basta, a me certamente no. Per la musica classica, ad esempio, è mia consuetudine aggiungere l’elenco degli esecutori (orchestra, direttore, ecc.) nelle note. Inoltre, se si decide di usare il formato AAC, a mio modesto parere è quello che si sente meglio, su Ubuntu non esiste un solo programma in grado di modificarne i tag (correggetemi se sbaglio): quindi bisogna accontentarsi, e se si sbaglia occorre importare nuovamente il brano. A questo si può rimediare se si usa RhythmBox, che lascia all’utente un po’ più di spazio nella gabbia dell’(in)usabilità.

Detto questo è meglio usare l’MP3, che almeno funziona un po’ dappertutto. Una rapida sbirciata alla documentazione e si diventa in grado di modificare le chain di Gstreamer utilizzate da Sound Juicer per convertire i file. Infatti l’MP3 a 128 Kb/s non è un granché, ed è meglio codificare usando il Variable BitRate (VBR). Teoricamente, sarebbe sufficiente modificare nella chain Audio MP3 la parte relativa a lame in questo modo:

lame vbr=new vbr-mean-bitrate=192 vbr-quality=0

tutte opzioni documentate a cui si può accedere tramite

gst-inspect lame | less

Peccato che così facendo il file risultante avrà una lunghezza dichiarata cinque o sei volte maggiore del reale, colpa di Gstreamer. Meglio spiegare: Gstreamer per codificare gli MP3 utilizza la libreria liblame, che non è altro che il motore di Lame, LAME Ain’t an Mp3 Encoder, uno dei migliori encoder MP3 sulla piazza. Lame, però, con le stesse opzioni crea il file senza che si presenti alcun problema: le stesse opzioni usate tramite Gstreamer portano inesorabilmente ad un file che si sente bene, ma la cui durata è errata. Che, per quanto l’esperienza sonora resti, intatta può essere abbastanza seccante.

La cosa che fa più riflettere è che questo baco è noto almeno dal 16 marzo 2006 (un anno e mezzo fa) e che da allora nulla si è fatto per risolverlo. Magari gli sviluppatori erano troppo impegnati a vendere plugin proprietari tramite Fluendo.

E pazienza se Sound Juicer ha tre pulsanti in meno, ma io pur usando Gnome i CD me li carico usando KAudioCreator, che non usa Gstreamer, ma direttamente Lame. E funziona.
Sarò paziente: il quarto drago è vicino e ci brucerà tutti.

Anteprima mp3 in Nautilus

Anteprima Audio NautilusNella nuova Gutsy ci sono piccoli problemi che la allontanano dalla perfezione.
Oggi parlo dell’audio preview in Nautilus. Cioè: quando passate il mouse sopra un file audio, Nautilus vi fa sentire quel file audio, così non dovete star lì ad aprire un programma solo per sapere di cosa si tratti.
Nella Gutsy, però, l’anteprima in Nautilus non si comporta correttamente con gli mp3, mentre con gli ogg e i wav non ci sono problemi. Il baco riguarda mpg321 ed è già noto e documentato. Per risolvere questo fastidio occorre installare i pacchetti pulseaudio-esound-compat e pulseaudio:

sudo apt-get install plseaudio-esound-comapat pulseaudio

e quindi riavviare Nautilus:

killall nautilus

Se non dovesse essere sufficiente si può provare ad installare anche qualcosa di extra:

sudo apt-get install ubuntu-restricted-extras libasound2-plugins

È roba di poco conto, ma che non funzioni al primo colpo è una cosa mi infastidisce terribilmente.

Aggiornamento

In Ubuntu Hardy il problema non sussiste più, grazie all’utilizzo di puseaudio come server audio di default. Consiglio a tutti l’upgrade.