LINUXsecure_LOGO
Issues on Linux and Security
 
-->
 
 
 
 
 
 
 
home
button Other --> F2html.pl
 

mp3riot (formerly known as f2html.pl)

News:

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.

About:

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.

Main Features:

  • 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 ...

Download:

Latest version: mp3riot-1.3.zip

Older versions of mp3riot / f2html.pl:

For Windows-Users:

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:

Usage:

perl mp3riot [options]
Options:

  • -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)
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=
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**

History:

mp3riot 1.3-20041220

  • 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

mp3riot 1.2-20041007

  • 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

mp3riot 1.1-20030728

  • 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

f2html.pl 1.0-20030319

  • 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.

f2html.pl 0.9-20030313

  • 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.

f2html.pl 0.8-20021105

  • 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.

f2html.pl 0.7-20021016

  • 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).

f2html.pl 0.6-20020718

  • 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.

f2html.pl 0.5-20020626

  • 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.

f2html.pl 0.4-20011127

  • 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.

f2html.pl 0.3-20010628

  • 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.

f2html.pl 0.2-20010117

  • 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 extensions.

f2html.pl 0.1-20001127

  • Initial release.


back to top

button 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
Opensource.com follows upwith the Dronecode Foundation, which was founded in October 2014. "In the past year, Dronecode's developer community has grown from 1,200 to more than 2000 contributors, with more than 12,000 commits in the codebase. The rate of development is rapid with 1,000 commits being reviewed a month, with well over 2 million lines of code across the various Dronecode projects. Developers from Qualcomm, Intel, Parrot, Yuneec and many others are actively engaged in the development of the Dronecode technology stack. As a result, updates, new releases and project milestones are in motion all the time. For example, in late May, the APM project released version 3.3 of its flight code, and the PX4 project reached a milestone with the first RC candidate for release 1.0."
The Dronecode Foundation aims to keep UAVs open (Opensource.com)

Here is an article on the "Threatpost"siteabout a set of remotely exploitable media-library vulnerabilities present on vast numbers of Android devices. "An attacker in possession of their target?s phone number could send an MMS or even a Google Hangouts message to an affected device that triggers the vulnerability before the victim has a chance to open the message. In some cases, the attack would delete the MMS in question, leaving behind only a notification that a message was sent."
The Android "Stagefright"vulnerability

Debianhas updated expat(code execution), lxc(two vulnerabilities), and openjdk-7(multiple vulnerabilities). Debian-LTShas updated expat(code execution), ghostscript(buffer overflow), and lighttpd(man-in-the-middle attack). Mageiahas updated apache(MG4,5: two vulnerabilities), java-1.8.0-openjdk(MG5: multiple vulnerabilities), libuser(MG4,5: two vulnerabilities), and mariadb(MG4,5: multiple vulnerabilities). openSUSEhas updated cacti(13.2, 13.1: SQL injection), Chromium(13.2, 13.1: multiple vulnerabilities), java-1_7_0-openjdk(13.2, 13.1: multiple vulnerabilities), and java-1_8_0-openjdk(13.2: multiple vulnerabilities). Red Hathas updated chromium-browser(RHEL6: multiple vulnerabilities) and qemu-kvm(RHEL7: two vulnerabilities).
Security advisories for Monday

The fourth 4.2 prepatchis out for testing. Linus says: "I really wish that things were calming down, but it hasn't happened quite yet. It's not like this is particularly big or scary, but it's also not at the stage where it's really starting to get quiet and the bugs are really small and esoteric."
Kernel prepatch 4.2-rc4

Here is the announcement for Plasma Mobile, a KDE-based platform for smartphones. "The goal for Plasma Mobile is to give the user full use of the device. It is designed as an inclusive system, intended to support all kinds of apps. Native apps are developed using Qt; it will also support apps written in GTK, Android apps, Ubuntu apps, and many others, if the license allows and the app can be made to work at a technical level."There is a prototype build available for Nexus 5 phones.
Plasma Mobile launched

The etcd 2.1 releaseis out. "For a quick overview, etcd is an open source, distributed, consistent key value store for shared configuration, service discovery, and scheduler coordination. By using etcd, applications can ensure that even in the face of individual servers failing, the application will continue to work. "New features include a new authentication/authorization API, various robustness improvements, better logging, and a new metrics API.
etcd 2.1 released

The GNUnet blog has this storyabout recent resistance from the IETF toward the standardization of "special use"domain names (such as .onion or .gnu) "to reduce the likelihood of ICANN accidentally creating a conflicting gTLD assignment."Despite the provisions made in RFC 6761, the article notes that "there are also a number of DNS-centric people with a totally lack of alacrity in the dnsop WG to continue to stall the process by repeating arguments that were exchanged dozens of times in hundreds of e-mails."Among those offering resistance, it reports, is Internet Architecture Board Chair Andrew Sullivan, who "says the IETF should not support special use domain names threatening the DNS business model."
GNUnet: IETF getting cold feet about P2P Names?

The first development releaseof the upcoming openSUSE 42.1 distribution is now available. "Milestone is being used to avoid the term Alpha because the milestone is able to be deployed without the additional future items and subsystems that will become available when Leap is officially released."As reportedin June, openSUSE 42.1 is a new version of the distribution based on the SUSE Linux Enterprise core.
OpenSUSE Leap 42.1 milestone 1 released

Arch Linuxhas updated chromium(multiple vulnerabilities), crypto++(private key recovery), libuser(multiple vulnerabilities), and openssh(authentication limits bypass). CentOShas updated libuser(C7: multiple vulnerabilities). Debianhas updated chromium-browser(multiple vulnerabilities). Gentoohas updated e2fsprogs(code execution). Oraclehas updated libuser(O7: multiple vulnerabilities). Red Hathas updated java-1.7.0-ibm(RHEL 5: multiple vulnerabilities) and libuser(RHEL 6; RHEL 7: multiple vulnerabilities). Scientific Linuxhas updated libuser(SL7: multiple vulnerabilities). Ubuntuhas updated kernel(12.04; 14.04; 14.10; 15.04: multiple vulnerabilities), linux-lts-trusty(12.04: multiple vulnerabilities), linux-lts-utopic(14.04: multiple vulnerabilities), linux-lts-vivid(14.04: multiple vulnerabilities), and linux-ti-omap4(12.04: multiple vulnerabilities).
Friday's security updates

At his blog, Allan Day announcesthe first major update to the GNOME Human Interface Guidelinessince the first GNOME 3 version (released in 2014). Day notes that the GNOME 3 HIG is structured around design patterns, in the hopes that it can be updated regularly to reflect current practices. "These new guidelines are the direct result of design work that has happened in the past year. They attempt to distill everything we?ve learned through our own process of trial and error."Furthermore, "the HIG now links to the relevant GTK+ API reference documentation for each design component. This is nice for knowing which widget does what; and makes the design guidelines a more effective accompaniment to the toolkit."
Day: HIG updates

Debianhas updated kernel(multiple vulnerabilities). Fedorahas updated hostapd(F21; F22: denial of service) and python-django(F22: multiple vulnerabilities). Gentoohas updated libXfont(multiple vulnerabilities). Mageiahas updated java-1.7.0-openjdk(M4: multiple vulnerabilities) and php(M4: multiple vulnerabilities). Red Hathas updated java-1.6.0-ibm(RHEL 5,6: multiple vulnerabilities) and java-1.7.1-ibm(RHEL 6,7: multiple vulnerabilities). Ubuntuhas updated nbd(multiple vulnerabilities).
Thursday's security updates

The LWN.net Weekly Edition for July 23, 2015 is available.
[$] LWN.net Weekly Edition for July 23, 2015

Though it got a bit of a late start due to some registration woes, the first day of EuroPython 2015began with an engaging and well-received keynote. It recounted the history of a project that got its start just a year ago when the first Django Girlsworkshop was held at EuroPython 2014 in Berlin. The two women who started the project, Ola Sitarska and Ola Sendecka, spoke about how the workshop to teach women about Python and the Django web frameworkall came together?and the amazing progress that has been made by the organization in its first year.
[$] Django Girls one year later

Red Hat has announced the general availabilityof RHEL 6.7. "As the basis for large, complex IT deployments, Red Hat Enterprise Linux 6.7 offers enterprise IT teams new capabilities to bolster system security, proactively identify and resolve business-critical IT issues, and confidently embrace some of the latest open source technologies, such as Linux containers, without sacrificing operational stability."The release notescontain details.
Red Hat Enterprise Linux 6.7 released

Arch Linuxhas updated jre7-openjdk(multiple vulnerabilities). Debianhas updated cacti(SQL injection). Debian-LTShas updated python-tornado(side-channel attack). openSUSEhas updated ansible(13.2: two vulnerabilities), libressl(13.2: multiple vulnerabilities), pdns(13.2, 13.1: denial of service), and rubygem-activesupport-3_2(13.2, 13.1: denial of service). Red Hathas updated autofs(RHEL6: privilege escalation), bind(RHEL6: denial of service), curl(RHEL6: multiple vulnerabilities), freeradius(RHEL6: buffer overflow), gnutls(RHEL6: multiple vulnerabilities), grep(RHEL6: two vulnerabilities), hivex(RHEL6: code execution), httpd(RHEL6: access restriction bypass), ipa(RHEL6: cross-site scripting), kernel(RHEL6: multiple vulnerabilities), libreoffice(RHEL6: code execution), libxml2(RHEL6: denial of service), mailman(RHEL6: two vulnerabilities), net-snmp(RHEL6: denial of service), ntp(RHEL6: multiple vulnerabilities), pacemaker(RHEL6: privilege escalation), pki-core(RHEL6: cross-site scripting), ppc64-diag(RHEL6: two vulnerabilities), python(RHEL6: multiple vulnerabilities), sudo(RHEL6: information disclosure), wireshark(RHEL6: multiple vulnerabilities), and wpa_supplicant(RHEL6: denial of service). Ubuntuhas updated lxc(15.04, 14.10, 14.04: two vulnerabilities) and mysql-5.5, mysql-5.6(15.04, 14.10, 14.04, 12.04: multiple vulnerabilities).
Wednesday's security advisories

redcarpet CVE-2015-5147 Stack Buffer Overflow Vulnerability
Vuln: redcarpet CVE-2015-5147 Stack Buffer Overflow Vulnerability

Novius OS 'tab' parameter Local File Include Vulnerability
Vuln: Novius OS 'tab' parameter Local File Include Vulnerability

OpenSSL 'pk7_doit.c' NULL Pointer Dereference Denial of Service Vulnerability
Vuln: OpenSSL 'pk7_doit.c' NULL Pointer Dereference Denial of Service Vulnerability

OpenSSL Certificate Fingerprints CVE-2014-8275 Local Security Bypass Vulnerability
Vuln: OpenSSL Certificate Fingerprints CVE-2014-8275 Local Security Bypass Vulnerability

Apple iTunes & AppStore - Filter Bypass & Persistent Invoice Vulnerability
Bugtraq: Apple iTunes &AppStore - Filter Bypass &Persistent Invoice Vulnerability

[SECURITY] [DSA 3318-1] expat security update
Bugtraq: [SECURITY] [DSA 3318-1] expat security update

[SECURITY] [DSA 3317-1] lxc security update
Bugtraq: [SECURITY] [DSA 3317-1] lxc security update

[SECURITY] [DSA 3316-1] openjdk-7 security update
Bugtraq: [SECURITY] [DSA 3316-1] openjdk-7 security update

News, Infocus, Columns, Vulnerabilities, Bugtraq ...
More rss feeds from SecurityFocus

-->