/usr/bin/mp32vclt is in vclt-tools 0.1.4-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | #!/usr/bin/perl
# Copyright (C) Philipp 'ph3-der-loewe' Schafft - 2009-2011
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3
# as published by the Free Software Foundation.
#
# It is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY 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 software; see the file COPYING.gplv3. If not, write to
# the Free Software Foundation, 51 Franklin Street, Fifth Floor,
# Boston, MA 02110-1301, USA.
use strict;
use MP3::Info;
my $no_del = 0;
foreach (@ARGV) {
if ( $_ eq '--no-del' ) {
$no_del = 1;
} else {
proc_file($_);
print "==\n" unless $no_del;
}
}
sub proc_file {
my $c = get_mp3info($_[0]);
my %tags = ();
my ($h, $m, $s);
local $_;
$tags{'audioinfo'} .= ' rate:'.($c->{'FREQUENCY'}*1000).'Hz';
if ( $c->{'STEREO'} ) {
$tags{'audioinfo'} .= ' channels:2';
} else {
$tags{'audioinfo'} .= ' channels:1';
}
$s = $c->{'SECS'};
$h = int($s / 3600);
$s -= $h * 3600;
$m = int($s / 60);
$s -= $m * 60;
$tags{'length'} = sprintf('%.2i:%.2i:%2f', $h, $m, $s);
foreach (keys %tags) {
$tags{$_} =~ s/^\s+//;
$tags{$_} =~ s/\s+$//;
print uc($_), '=', $tags{$_}, "\n" if $tags{$_} ne '';
}
}
#ll
|