⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lameid3.pl

📁 音频编码
💻 PL
字号:
##  From: Per Bolmstedt <tomten@kol14.com># #   AC> If someone has scripts that read input ID3 tags and convert#   AC> them to args for lame (which then encodes the tags into the#   AC> output files), let me know, too!##  This is easy peasy using Perl.  Especially using Chris Nandor's excellent#  MP3::Info package (available on CPAN).  Here's a program I just wrote that#  I think does what you want.  Invoke it with "<program> <file> [options]"#  (where the options can include an output filename), like for example:##          lameid3.pl HQ.mp3 LQ.mp3 -fv##  (Note how the syntax differs from that of Lame's.)  The program will#  extract ID3 tags from the input file and invoke Lame with arguments for#  including them.  (This program has not undergone any real testing..)use MP3::Info;use strict;my %flds = ( 	TITLE => 'tt',	ARTIST => 'ta',	ALBUM => 'tl',	YEAR => 'ty',	COMMENT => 'tc',	GENRE => 'tg',	TRACKNUM => 'tn'	);my $f = shift @ARGV;my $s = "lame ${f} " . &makeid3args( $f ) . join ' ', @ARGV;print STDERR "[${s}]\n";system( $s );sub makeid3args( $ ){	my $s;	if ( my $tag = get_mp3tag( @_->[ 0 ] ) )	{		for ( keys %flds )		{			if ( $tag->{ $_ } )			{				$s .= sprintf(					"--%s \"%s\" ",					%flds->{ $_ },					$tag->{ $_ } );			}		}	}	return $s || "";}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -