开发者

How to add a user defined tag in an MP3 file?

开发者 https://www.devze.com 2023-02-07 11:14 出处:网络
Can anyone explain to me how to add a user defined tag in an MP3 file using the MP3::Tag module in Perl? I have done some sample programs.

Can anyone explain to me how to add a user defined tag in an MP3 file using the MP3::Tag module in Perl? I have done some sample programs.

# Created开发者_StackOverflow社区 an object
$mp3 = MP3::Tag->new($filename);

# Getting the already defined tags for the file
@tags = $mp3->get_tags();

My question is: how to add a user defined tag, for example the tag Name?


Slightly edited from the module's synopsis

$mp3->update_tags({name => 'blah blah'});    # Edit in-memory, and commit to file
0

精彩评论

暂无评论...
验证码 换一张
取 消