mp3riot (formerly known as f2html.pl)
I decided to rename f2html.pl into mp3riot. the reason is, that
the name f2html.pl does not clearly indicate, for what the program
is best suited for. Because the program has grown so much (and
because the the name should be more attractive to get more users),
a renaming seems to be a must to me.
There are some important news about mp3riot / f2htmlpl. Please see the NEWS
for further details.
Mp3riot (formerly known as f2html.pl) is a command line utility that searches recursively through directories,
builds a file list (with additional file information), and generates html files, plylists, etc. The output can be controlled,
links can be corrected, and more. The script is mainly desigend to create Web pages, playlists, and databases
for mp3-files, but can also used for other purposes.
Read the manual for further details.
- supports playlists in m3u, pls, and xml format
- supports sql output
- creates html pages, templates can be used
- supports advanced grouping methods
- supports slection by date ranges, file extensions, and by random
- supports renaming of mp3 files using id3tag information, templates or guessing can be used
- advanced string manipulation methods
- and much more ...
Latest version: mp3riot-1.3.zip
Older versions of mp3riot / f2html.pl:
You can also download a windows executable compiled with perl2exe. Then you need not
to install perl. But I have not testet the functionality of the executable in detail. So it is best
to use perl and the source of mp3riot!
Windows binaries of mp3riot:
perl mp3riot [options]
You can use nearly all commands in a config file (and it is the best to do it this way!). The syntax then changes sligthly, so that, for example,
--dir changes to dir=
- -h, --help: Show this screen and exit
- -k, --mkconf:Use an assistant to write a config file
- -o, --os win/unix: Default "unix", otherwise windows
- -Q, --sortby value: Default is NAME (the filename). You can sort the filelist by the following criteria: URLNAME, SHOWNAME, DIR, NAME, TITLE, ARTIST, ALBUM, YEAR, COMMENT, GENRE, TRACKNUM, SIZE, MODTIME, VBR, BITRATE, FREQUENCY, MINUTES, SECONDS, FIRSTCHAR
- -n, --doublicates: Check for doublicates of files by their filename
- -D, --md5doublicates: Check for doublicates of files by their MD5 sum
- -V, --seekvalues <n,+-n,n>: Three values that have to be seperated by ",". This is an useful option for --md5doublicates.
The first one is the offset in bytes, the second is
the number of bytes to seek (and the direction), and
the last value tells the program where to start from (1 means to
start from the begining of a file, 2 means to start
from the end of a file. So, a combination of 1000,-1128,2
tells the programm to start 1128 bytes before the file ends
(id3v1 tag is 128 bytes long!) and use
1000 bytes for calculation of md5 sums.
- -b, --dbfile file: Write database to a file for searching it
- -m --m3u file: Write a m3u playlist file. Directory and filename or GROUPPATH for writing m3u files for groups.
- -X --xml file: Write a xml playlist file. Directory and filename or GROUPPATH for writing xml files for groups.
- -L --pls file: Write a pls playlist file. Directory and filename or GROUPPATH for writing pls files for groups.
- -W, --b4s file: Write a b4s playlist file. Directory and filename or GROUPPATH for writing b4s files for groups.
- -t, --html file: Write a html file. Directory and filename or GROUPPATH for writing html files for groups.
- -a, --http name: Define the http address for url
- -r, --remove: Remove id3tags (do you know what you are doing?)
- -i, --mp3info: Use mp3/ogg info for html output
- -e, --ext: Remove file extensions in html output
- -f, --filesize: Use filesize for html output
- -c, --check ext: Select files by their extension(s) (e.g. mp3). For every extension use a seperate flag!
- -z, --skip number: Skip n elements of mount/directories/names
- -p, --conf file: Use a config file
- -w, --utf8 file: File with UTF-8 code for replacements in links
- -q, --nocs: Do sorting not case sensitive
- -j, --statfile file: Write statistics to file
- -d, --dir directory: Define the (multiple) directory(ies) the mp3s are stored in. For every directory use a seperate flag!
- -g, --sql file: Filename to store sql table in (only for mp3 and ogg!)
- -y, --replace file: Name of replacement file; in the file use <string_1>=<string_2> to transform <string_1> into <string_2>;
special characters like a backslash have to be preceeded by a backslash "\\" (used for directories)
- -s, --seperate path: Write seperate html files for every character
- -R, --rename: Renames mp3 and ogg file using their id3tag. The use of rename_template in the configfile is optional. If rename_template is not used,
the program tries to create a filename like: ARTIST - ALBUM - TRACKNUMBER - TITLE by using the id3tag. It assumes, that the filenames have a similar format
and tries to guess, whether the id3tag has enough information to create a better filename. Old and new filenames are stored in RENAME.bak
- -B, --renameback: Renames files back using the file RENAME.bak
- -T, --templatesHtml templates are used. They have to be defined in the conmfig file using the commands html_head, html_change, html_body,
html_footer, html_sep_head. See the README for avalable templates!
- -G, --groupfile file: Filename for grouping information: <groupname1>=<TYPE>=<string1>,<string2>,...
Prossible types are: EQUAL, NAME, DIR, TITLE, ARTIST, ALBUM, YEAR, COMMENT, GENRE, TRACKNUM, SIZE, MODTIME, VBR, BITRATE, FREQUENCY, MM, SS, FIRSTCHAR
- -P, --grouppath path: The path, where to write the html files for group
- -O, --older number: Only files are selected, having a modification time higher than the specified days
- -Y, --younger number: Only files are selected, having a modification time less than the specified days
- -I, --id3tag: Use the id3 tag to get infos
- -S, --random number: Percentage of file to select randomly (e.g. 50 to select 50% of files/every second file)
Additionally, in the config file it is possible to use the commands:
- exec= param: Execute system command. This command can be used multiple times
- rename_template=string:string with templates for renaming files by their id3tag (to be used together with --rename)
The following rename templates are available: **TITLE**, **ARTIST**, **ALBUM**, **YEAR**, **COMMENT**, **GENRE**. **TRACKNUM**
- html_head= string: Html code for the head
- html_change= string: Html code if the first character between two file names change
- html_body= string: Html code for each filename
- html_footer= string: Html code for the foot
- html_sep_head= string: Html code for the head seperate html files by first character
The following html templates are available: **SUMOFFILES**, **SUMOFMEGS**, **DATE**, **URLNAME**, **SHOWNAME**, **DIR**, **NAME**, **TITLE**,
**ARTIST**, **ALBUM**, **YEAR**, **COMMENT**, **GENRE**, **TRACKNUM**, **SIZE**, **MODTIME**, **VBR**, **BITRATE**, **FREQUENCY**, **MINUTES**,
**SECONDS**, **HTMLINDEX**, **FIRSTCHAR**
- extended grouping fuction for all playlistfiles
- renaming of special characters for filenames og groups
- support of b4s playlistformat
- sorting of filelist by various criterias of id3tag, mp3 and
- file information (e.g. ARTIST, BITRATE etc.)
- extended output of doublicate function by diretory names
- added FIRSTCHAR as a value for grouping
- Fixed bug in sql output
- Flexible search for doublicate files using md5 sums
- search for doublicates by filenames seperated from search function
- fixed bug in xml output
- filesize in html output is now rouded
- replaced progress bar by counter in percentage
- added counter for collected files
- fixed bug in index in html output
- fixed bug in html output for grouping
- extended grouping function by new type EQUAL
- bugfix in pls output
- Renamed f2html.pl into mp3riot
- Fixed output of playlist in M3U format, so that the M3U file is now containing full information
- Fixed bug for retreaving the TITLE of an id3tag
- Added output of playlist in XML format
- Added output of playlist in PLS format
- Added random fileselection for random playlists
- Added the tracknumber for sql output
- Added **TRACKNUM** (tracknumber) and as a template variable for html output
- Added TRACKNUM (tracknumber) as a variable for groupings
- Added tracknumber and comment for db output
- Fixed bug in renaming function when special characters are present in the id3tag
- Added rename_template to do renaming of files using their id3tag in a flexible way
- Fixed a bug in renameback
- Fixed some smaller bugs
- Rebuild the internal data structure completely
- Removed option for fast sorting (not necessary any more)
- Implemented selection of files by their modification time (younger and/or older than days from now)
- Implemented grouping of files by string matching between group defninitions by various types
- Implemented variable html-code dsefinitions and templates
- Changed definition for string replacement
- f2html.pl now comes with a new version of Info.pm from MP3-Info-1.02 by Chris Nandor
- The use of the id3tag for sql and html output is now optional
- Manpage is not supported any more.
- Fixed a commandline parameter bug where the parameters were handled non case sensitive. Now there are handled case sensitive.
As a result the functions RENAME and RENAMEBACK did not work when called with the short command line argument.
- Fixed a commandline parameter bug that occured with Perl 5.8.0 and Getopt::Long 2.32. The -s flag in line 1 of the perl script
causes the program to count the command line parameters in an usual way, so that command line parameters got disturbed and did
not work any more.
- Some changes in the documentation.
- New option to rename files using their id3tag.
- New option to rename files back.
- Some code fixes.
- Usage of the replace option has changed.
- Bug for the option "check" in config file and configuration wizard fixed
- Bug for the check of the mp3 extension when mp3info was enabled fixed.
- Bug of sum of megs in html output fixed.
- Bug in mp3table.sql fixed.
- Basic ogg vorbis support implemented (thanks to Jens Burkal).
- New method (experimental) for faster sorting. Useful for indexing huge number of files or mp3 files
with additional information.
- New option for checking for dublicates of filenames.
- Now f2html.pl comes wioth a new version of Info.pm from MP3-Info-1.01 by Chris Nandor.
- Fixed problem with sql data output when files contain the charakter " ' ".
- Name of option "hex" changed to "utf8".
- Implemeted progress bar for prepating html files.
- More information about what the program is doing.
- Now f2html comes with a new version of Info.pm from MP3-Info-0.91 by Chris Nandor.
- Minor Bugfixes.
- New option to create sql database.
- New option to create a config file.
- Some checks and corrections for pathnames.
- Only existing characters are written out at the top of a html file.
- Rewrite of sum of files and sizes. Important for writing seperate html files for every character.
- The option -q has been implemented and allows for doing the procedures in a non case sensitive way.
- The option -j has been implemented. A html file with statistics can be written out.
- The manual has been updated.
- The option -c has been updated. Now this option can be used more
than only one time. So one is able to select file by different
back to top
| Whats New|
|[2005-02-18] mp3riot version 1.3 released|
|[2004-10-08] mp3riot version 1.2 is out.|
|[2004-04-30] Added section Bridging|
|[2004-01-09] working progress on mp3riot version 1.2|
|The 3.12.4, 3.10.23, and 3.4.73stable kernel updates are available.
These updates contain fewer patches than their immediate predecessors, but
they still have a lot of important fixes and updates.
|Stable kernel updates for the weekend|
|The third 3.13 prepatchis available for
testing. Linus says: "I'm still on a Friday release schedule,
although I hope that changes soon - the reason I didn't drag this one out
to Sunday is that it's already big enough, and I'll wait until things start
calming down. Which they really should, at this point. Hint hint."|
|Kernel prepatch 3.13-rc3|
|CentOShas updated kernel(information leak), nspr(multiple vulnerabilities), and nss(multiple vulnerabilities).
Gentoohas updated swi-prolog(multiple vulnerabilities).
Oraclehas updated kernel(O5: multiple vulnerabilities) and nss,
nspr(O5: multiple vulnerabilities).
Red Hathas updated kernel(RHEL5, information leak; RHEL6, multiple vulnerabilities) and nss, nspr(RHEL5: multiple vulnerabilities).
Slackwarehas updated hplip(code execution), mozilla-nss(multiple vulnerabilities), mozilla-thunderbird(multiple vulnerabilities), and seamonkey(multiple vulnerabilities).
SUSEhas updated ruby(multiple vulnerabilities).
Ubuntuhas updated curl(information disclosure).
|Friday's security updates|
|TorrentFreak writesabout a potentially troubling court decision in Germany. A company called Appwork has been threatened with a large fine for functionality committed to its open-source downloader (JDownloader2) repository by a non-employee: "?In our case, even when we didn?t even know about the functionality, which was part of an open source binary one of our open source developers used (rtmpdump), we were held liable anyway. Not from the moment on that we got notified about it, but even before,? he [Alex from Appwork] explains.
?This means that if any company or individual wants to use an open (or closed) source binary (commercial or not), they are liable for it if it contains any illegal functions. This practically means they are obligated to check every single line of code, which is almost impossible for smaller projects.?"(Thanks to Martin Jeppesen.)
|Court: Open Source Project Liable For 3rd Party DRM-Busting Coding (TorrentFreak)|
|Debianhas updated ruby1.8(three
vulnerabilities) and ruby1.9.1(code execution).
openSUSEhas updated horde5(12.3: privilege escalation) and ibus-pinyin(13.1: password disclosure).
|Thursday's security updates|
|Bill McCloskey has posted an
extensive writeupon the work to decompose Firefox into a multiprocess
application. "Multiprocess Firefox depends on a new Firefox feature
called off main thread compositing (OMTC). In brief, each Firefox window is
broken into a series of layers, somewhat similar to layers in
Photoshop. Each time Firefox draws, these layers are submitted to a
compositor thread that clips and translates the layers and combines them
together into a single image that is then drawn."|
|McCloskey: Multiprocess Firefox|
|The LWN.net Weekly Edition for December 5, 2013 is available.
|[$] LWN.net Weekly Edition for December 5, 2013|
|Greg KH has released stable kernels 3.12.3,
3.10.22, and 3.4.72. All contain the usual set of
|Stable kernel updates|
|Deadline scheduling was first covered herein 2009. Like much of the code in the realtime tree, though, deadline
scheduling appears not to be subject to deadlines when it comes to being
merged into the mainline. That said, it seems entirely possible that this
longstanding project will land in a stable kernel release fairly soon, so a
the status of this patch set, and the proposed ABI in particular, seems in
Click below (subscribers only) for the full article from this week's Kernel
|[$] Deadline scheduling: coming soon?|
|CentOShas updated gimp(C6; C5: code execution) and mod_nss(C6; C5: access with invalid client certificate).
Fedorahas updated monitorix(F18: unspecified vulnerability), python-keyring(F19: weak cryptography), and
ruby(F19: code execution).
Oraclehas updated gimp(OL6; OL5: code execution) and mod_nss(OL5; OL6: access with invalid client certificate).
Red Hathas updated gimp(RHEL5&6: code execution) and mod_nss(RHEL5&6: access with invalid client certificate).
Scientific Linuxhas updated 389-ds-base(SL6: denial of service), augeas(SL6: file overwrite and information
leak), glibc(SL6: multiple
vulnerabilities), libguestfs(SL6: insecure
temporary directory), luci(SL6: two
vulnerabilities), openssh(SL6: denial of
service), pacemaker(SL6: denial of
service), php(SL6: multiple
vulnerabilities), python(SL6: man in the
middle attack), ruby(SL6: code execution),
samba(SL6: multiple vulnerabilities), and
samba4(SL6: denial of service).
Ubuntuhas updated EC2 kernel(10.04 LTS: multiple vulnerabilities), kernel(10.04 LTS; 12.04 LTS; 12.10; 13.04:
multiple vulnerabilities), linux-lts-quantal(12.04 LTS: multiple
vulnerabilities), linux-lts-raring(12.04 LTS: multiple vulnerabilities), linux-lts-saucy(12.04 LTS: multiple vulnerabilities), linux-ti-omap4(12.04 LTS; 12.10; 13.04: multiple vulnerabilities), and pixman(denial of service).
|Security advisories for Wednesday|
|Matthew Garrett demonstrates how to use the
kexec()system callto change parameters in a running kernel.
"The beauty of this approach is that it doesn't rely on any kernel
bugs - it's using kernel functionality that was explicitly designed to let
you do this kind of thing (ie, run arbitrary code in ring 0). There's not
really any way to fix it beyond adding a new system call that has rather
tighter restrictions on the binaries that can be loaded. If you're using
signed modules but still permit kexec, you're not really adding any
|Garrett: Subverting security with kexec|
|Philip Herron has announced the availability of a GCC frontend allowing it
to compile programs in the Rust language. It is currently in an early
stage but is able to compile a number of programs. "There is still a lot of work but i would really like to share it and see what
people think. Personally i think rust will target GCC very well and be a good
addition (if / when it works)."|
|A Rust frontend for GCC|
|Debianhas updated openjpeg(multiple vulnerabilities).
Fedorahas updated 389-ds-base(F19: denial of service) and krb5(F19: two denial of service flaws).
Gentoohas updated busybox(multiple vulnerabilities, one from 2006), glibc(multiple vulnerabilities going back to
2009), libtheora(code execution, from
2009), and openssl(multiple
vulnerabilities going back to 2011).
SUSEhas updated mozilla-nspr, mozilla-nss(multiple vulnerabilities).
|Tuesday's security updates|
|The Symantec blog has a report
of a new Linux wormcapable of attacking a range of small,
Internet-enabled devices in addition to traditional computers. "The
worm, Linux.Darlloz, exploits a PHP vulnerability to propagate itself
in the wild. The worm utilizes the PHP 'php-cgi' Information Disclosure
Vulnerability (CVE-2012-1823), which is an old vulnerability that was
patched in May 2012. The attacker recently created the worm based on the
Proof of Concept (PoC) code released in late Oct 2013."|
|Linux Worm Targeting Hidden Devices|
|Dan Geer has posted the
transcript of his "Trends in cyber security"talkpresented to the US
National Reconnaissance Office in early November.
"The trendline in the number of critical
monocultures seems to be rising and many of these are embedded
systems both without a remote management interface and long lived.
That combination -- long lived and not reachable -- is the trend
that must be reversed. Whether to insist that embedded devices
self destruct at some age or that remote management of them be a
condition of deployment is the question. In either case, the
Internet of Things and the appearance of microcontrollers in seemingly
every computing device should raise hackles on every neck."|
|Geer: Trends in cyber security|