How could you remove MP3 tags from an existing file

随声附和 提交于 2019-12-01 23:31:01

问题


I am looking to strip out ID3v1, ID3v2.x tags from an .mp3 file using C#. I would rather not implement it myself - but use something tried and tested.

TagLibSharp looks really good for creating tags - but how could it be used to remove them? If there's any other library more suited to this I'd use it.


回答1:


Use the TagLibSharp RemoveTags() method.

file.RemoveTags(tagtypes);

where tagtypes is a TagType bitmask for the tags you want to remove. For Id3v1 and Id3v2, try

file.RemoveTags(TagTypes.Id3v1 && TagTypes.Id3v2);


来源:https://stackoverflow.com/questions/16750002/how-could-you-remove-mp3-tags-from-an-existing-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!