trent
26.09.05, 15:56
Huhu,
wie der Titel schon sagt gehts hier um das Umwandeln von .ogg ins Mp3 Format.
Ich hab hier 5 Ordner voller .ogg Dateien, die ich gerne alle auf einmal nach Mp3 umwandeln möchte. Zu dem Zweck hab ich mir mal dieses Pearl Script angeschaut:
http://marginalhacks.com/bin/ogg2mp3
Das Umwandeln klappt wunderbar, allerdings werden die Tags (Künstler, Titelnummer, Jahr) nicht übernommen wie es das Script eigentlich tun sollte.
Hier die Ausgabe, ich habe zum Testen erstmal eine einzelne Datei benutzt:
/mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.ogg -> /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3
Audio Device: WAV file output
Playing: /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: Smoke Gets In Your Eyes
Artist: Kiri Te Kanawa
Album: Jazz History Vol.5 - Now As Then-Revival
Track number: 10
Genre: Jazz
Date: 2003
Comment: Encoded by http://oggkorea.net - Partizan;
Done.
LAME version 3.96.1 (http://lame.sourceforge.net/)
Using polyphase lowpass filter, transition band: 19383 Hz - 19916 Hz
Encoding /tmp/ogg2mp3.5323.wav
to /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3
Encoding as 44.1 kHz 192 kbps j-stereo MPEG-1 Layer III (7.3x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
6685/6687 (100%)| 0:32/ 0:32| 0:42/ 0:42| 5.4031x| 0:00
average: 192.0 kbps LR: 2044 (30.56%) MS: 4644 (69.44%)
Writing LAME Tag...done
ReplayGain: -4.0dB
Use of uninitialized value in pattern match (m//) at /home/andy/Desktop/ogg2mp3 line 138.
[ogg2mp3] No tag info for [/mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3]
Zeile 138 ist für die Date Information im Tag zuständig. Wieso es an dieser Stelle hapert ist mir allerdings schleierhaft.
Hier ein Auszug aus dem Script:
sub set_mp3info {
my ($mp3,$info) = @_;
my $set;
$set .= " -t \Q$info->{title}\E" if $info->{title};
$set .= " -a \Q$info->{album}\E" if $info->{album};
$set .= " -r \Q$info->{artist}\E" if $info->{artist};
$set .= " -n \Q$info->{comment}\E" if $info->{comment};
my $genre = get_genre($info->{genre});
$set .= " -G \Q$genre\E" if $genre;
$set .= " -y \Q$info->{date}\E" if $info->{date} =~ /^\d+$/;
return print STDERR "[$PROGNAME] No tag info for [$mp3]\n" unless $set;
system("$MP3INFO $set \Q$mp3\E");
print STDERR "[$PROGNAME] Errors from:\n $MP3INFO $set $mp3\n $!\n" if $?;
}
id3tool scheint auch richtig benutzt zu werden:
usage:
id3tool [<options>] <filename>
-y, --set-year=YEAR Sets the year to YEAR [4 digits]
ogginfo sowie id3tool funktionieren wie sie sollen wenn ich sie direkt an einer Datei ausprobiere.
Noch ein paar Informationen :)
Debian, Kernel 2.6
notlame 3.96.1
ogginfo 1.0.1
id3tool 1.2
Ich hoffe jemand kann mir einen guten Ratschlag geben. Vielleicht ein besseres Script, zur Not nehme ich auch Windows Programme. *g*
wie der Titel schon sagt gehts hier um das Umwandeln von .ogg ins Mp3 Format.
Ich hab hier 5 Ordner voller .ogg Dateien, die ich gerne alle auf einmal nach Mp3 umwandeln möchte. Zu dem Zweck hab ich mir mal dieses Pearl Script angeschaut:
http://marginalhacks.com/bin/ogg2mp3
Das Umwandeln klappt wunderbar, allerdings werden die Tags (Künstler, Titelnummer, Jahr) nicht übernommen wie es das Script eigentlich tun sollte.
Hier die Ausgabe, ich habe zum Testen erstmal eine einzelne Datei benutzt:
/mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.ogg -> /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3
Audio Device: WAV file output
Playing: /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.ogg
Ogg Vorbis stream: 2 channel, 44100 Hz
Title: Smoke Gets In Your Eyes
Artist: Kiri Te Kanawa
Album: Jazz History Vol.5 - Now As Then-Revival
Track number: 10
Genre: Jazz
Date: 2003
Comment: Encoded by http://oggkorea.net - Partizan;
Done.
LAME version 3.96.1 (http://lame.sourceforge.net/)
Using polyphase lowpass filter, transition band: 19383 Hz - 19916 Hz
Encoding /tmp/ogg2mp3.5323.wav
to /mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3
Encoding as 44.1 kHz 192 kbps j-stereo MPEG-1 Layer III (7.3x) qval=3
Frame | CPU time/estim | REAL time/estim | play/CPU | ETA
6685/6687 (100%)| 0:32/ 0:32| 0:42/ 0:42| 5.4031x| 0:00
average: 192.0 kbps LR: 2044 (30.56%) MS: 4644 (69.44%)
Writing LAME Tag...done
ReplayGain: -4.0dB
Use of uninitialized value in pattern match (m//) at /home/andy/Desktop/ogg2mp3 line 138.
[ogg2mp3] No tag info for [/mnt/hda5/jazz/jazz history vol.5 - now as then-revival/jazz history vol.5 - now as then-revival (cd2) [q6] - 10 smoke gets in your eyes - kiri te kanawa.mp3]
Zeile 138 ist für die Date Information im Tag zuständig. Wieso es an dieser Stelle hapert ist mir allerdings schleierhaft.
Hier ein Auszug aus dem Script:
sub set_mp3info {
my ($mp3,$info) = @_;
my $set;
$set .= " -t \Q$info->{title}\E" if $info->{title};
$set .= " -a \Q$info->{album}\E" if $info->{album};
$set .= " -r \Q$info->{artist}\E" if $info->{artist};
$set .= " -n \Q$info->{comment}\E" if $info->{comment};
my $genre = get_genre($info->{genre});
$set .= " -G \Q$genre\E" if $genre;
$set .= " -y \Q$info->{date}\E" if $info->{date} =~ /^\d+$/;
return print STDERR "[$PROGNAME] No tag info for [$mp3]\n" unless $set;
system("$MP3INFO $set \Q$mp3\E");
print STDERR "[$PROGNAME] Errors from:\n $MP3INFO $set $mp3\n $!\n" if $?;
}
id3tool scheint auch richtig benutzt zu werden:
usage:
id3tool [<options>] <filename>
-y, --set-year=YEAR Sets the year to YEAR [4 digits]
ogginfo sowie id3tool funktionieren wie sie sollen wenn ich sie direkt an einer Datei ausprobiere.
Noch ein paar Informationen :)
Debian, Kernel 2.6
notlame 3.96.1
ogginfo 1.0.1
id3tool 1.2
Ich hoffe jemand kann mir einen guten Ratschlag geben. Vielleicht ein besseres Script, zur Not nehme ich auch Windows Programme. *g*