Vitavonni

Sun, 04 Feb 2007

GUI for mp3val, a MP3 validator and repair utility

mp3val is a tiny command line utility (for Windows and Unix) that knows a lot about the MP3 format and is quite good at detecting and repairing common problems. Depending on the encoder and tagging tools you used, your MP3s might be more or less broken; sometimes it's just an incorrect length information (which might then cause incorrect playing time calculations). Mp3val can correct most of these errors.

Since mp3val operates on the MP3 frames and not on the decoded audio, it's fast; the operation is mostly I/O bound so it's probably as fast as your disk.

Anyway, mp3val is a command line utility, and I know that some people aren't too comfortable with command line tools. Here's a screenshot of the GUI:

Screenshot of mp3val GUI

Download source code

As you can see, it's a three button application. Select the "Fix files" toggle if you want files to be repaired, then press "Add" (while the added files are processed, the "fix" button is greyed out). Then wait for the progress bar to finish.

The scrolling window below will print the warnings and errors emitted by mp3val. As you can see I have a few files with incorrect size information.

There are still some improvements that could be made. For example, the application could keep track of the "broken" files, so that they could be processed using mp3val in a second run without having to recheck all the "good" files. Brokenness-statistics and an sortable list view of the detected errors would also be interesting. But I consider none of these features to be important; I'll just let mp3val run over my collection and fix the files. It never trashed a file for me so far (but fixed some that didn't work), and I can still re-rip the songs when needed (but I'll choose Ogg Vorbis then as audio format).

The application is a tiny PyGTK script; that and mp3val is all you need. It should work on Windows, too, but I can't help you with that.

Another "Pymp of the day" - "Python mini project", done in just an hour. :-) Python and PyGTK are great for protoyping and mini applications. I love your work. Thank you!

[Update: mp3valgui is now on mp3val.sf.net and in CVS on sourceforge. Further development will happen there.]

[category: /en | Permalink]
Menu
[planet.debian]
[planet.xmlhack]
[planet SELinux]
[munichblogs]
[email]
[RSS 2 feed]
[English RSS 2]
Categories
< February 2007 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728   
Archives
2010-Mar
2010-Feb
2010-Jan
2009-Dec
2009-Nov
2009-Oct
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Nov
2008-Oct
2008-Sep
2008-Aug
2008-Jul
2008-May
2008-Apr
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov
2007-Oct
2007-Sep
2007-Aug
2007-Jul
2007-Jun
2007-May
2007-Apr
2007-Mar
2007-Feb
2007-Jan
2006-Dec
2006-Nov
2006-Oct
2006-Sep
2006-Aug
2006-Jul
2006-Jun
2006-May
2006-Apr
2006-Mar
2006-Feb
2006-Jan
2005-Dec
2005-Nov
2005-Oct
2005-Sep
2005-Aug
2005-Jul
2005-Jun
2005-May
2005-Apr
2005-Mar
2005-Feb
2005-Jan
2004-Dec
2004-Nov
2004-Oct
2004-Sep
2004-Aug
2004-Jul
Other links:
Swing and the City - Lindy Hop in Munich