taglib-sharp

Is it possible, using TagLibSharp, to remove a Lyrics3v2 tag from a MP3 file?

天涯浪子 提交于 2019-12-04 14:35:10
I wonder if it's possible to remove a Lyrics3v2 tag type from a MP3 file using TagLibSharp library. This documentation says that the block entry starts with word " LYRICSBEGIN " and ends with " LYRICS200 ", also it says that the ID3 tag should be present to let exists the Lyrics3v2 tag ...but it doesn't specifies if reffers to ID3v1 or ID3v2 tag, or any of them, anyways I don't understand that part, because Lyrics3v2 tag is a single tag type, is not part of an ID3v1/ID3v2 tag type, it has its own entry on the mp3 header so... I don't understand what it means about the ID3v1/ID3v2 "dependancy".

How do I use taglib-sharp?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 05:02:13
I'm having a bunch of troubles with this library (obviously because I'm a newbie). I'm using Microsoft Visual Studio 2015. First of all I have absolutely no idea on how to add this library to my project. I didn't find anything helpful on Google, either. And second, I've found two different libraries - taglib-sharp-master and taglib-sharp-2.1.0.0-windows . Which one should I use? There are a few things you'll want to do in order to get taglib-sharp working in your project. Firstly, you need to stick to a particular project type. Next, you are to install the suitable library version for that

How to read XingHeaders and VBRIHeaders from MP3 files using TagLib-Sharp

自作多情 提交于 2019-12-02 13:23:19
问题 I need to extract the information stored in the Xing and Fraunhofer VBRI headers of MP3 files using TagLib-Sharp. I've searched around the web for an example, looked at the source code, but it's not obvious how to use the XingHeader and VBRIHeader classes. They don't look to be part of the File/AudioFile properties for MPEG. The constructor needs a ByteVector class which is defined in the TagLib namespace. Can anybody provide an example of using the XingHeader and VBRIHeader classes? Any help

How to read XingHeaders and VBRIHeaders from MP3 files using TagLib-Sharp

假装没事ソ 提交于 2019-12-02 07:28:56
I need to extract the information stored in the Xing and Fraunhofer VBRI headers of MP3 files using TagLib-Sharp. I've searched around the web for an example, looked at the source code, but it's not obvious how to use the XingHeader and VBRIHeader classes. They don't look to be part of the File/AudioFile properties for MPEG. The constructor needs a ByteVector class which is defined in the TagLib namespace. Can anybody provide an example of using the XingHeader and VBRIHeader classes? Any help would be greatly appreciated. Something like the following should work: foreach(ICodec codec in file

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

How could you remove MP3 tags from an existing file

允我心安 提交于 2019-12-01 22:31:39
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. 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

Reading/Writing metadata of audio/video files

馋奶兔 提交于 2019-11-30 09:38:10
I need some help in reading/writing meta data inforamation of audio/vido file. I have searched alot but not find anything thing helpful. Taglib sharp is an open source library that provide help in reading/writing metadata. Using tag lib i'm able to edit some of values but not all like. TagLib.File videoFile = TagLib.File.Create("test.mp4"); videoFile.Tag.Title = "Test"; videoFile.Tag.Comment = "Nothing"; but i'm unable to edit following properties like Author url, producers etc. How i edit these properties ?? I've never done this for video files before but I have for mp3 files. You can get

Set Bitmap as cover art for MP3

删除回忆录丶 提交于 2019-11-29 05:21:32
I have been trying to set a bitmap as cover art for a MP3 but I can't seem to get it working. It isn't throwing any errors but when I play the MP3 the bitmap isn't showing. This is what I currently have: TagLib.File f = TagLib.File.Create("song.mp3"); Image currentImage = getAlbumArt(result.passedAlbumID); Picture pic = new Picture(); pic.Type = PictureType.FrontCover; pic.MimeType = System.Net.Mime.MediaTypeNames.Image.Jpeg; pic.Description = "Cover"; MemoryStream ms = new MemoryStream(); currentImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); ms.Position = 0; pic.Data = ByteVector

Set Bitmap as cover art for MP3

混江龙づ霸主 提交于 2019-11-27 22:49:32
问题 I have been trying to set a bitmap as cover art for a MP3 but I can't seem to get it working. It isn't throwing any errors but when I play the MP3 the bitmap isn't showing. This is what I currently have: TagLib.File f = TagLib.File.Create("song.mp3"); Image currentImage = getAlbumArt(result.passedAlbumID); Picture pic = new Picture(); pic.Type = PictureType.FrontCover; pic.MimeType = System.Net.Mime.MediaTypeNames.Image.Jpeg; pic.Description = "Cover"; MemoryStream ms = new MemoryStream();

Where can I find tag lib sharp examples?

有些话、适合烂在心里 提交于 2019-11-27 04:20:32
问题 I have been searching for ID3 editors for my music manager project. It seems that taglib sharp is the popular choice. I googled a lot and could not find any examples of using it. Can some one point me to some examples showing the library usage ? 回答1: Well without knowing exactly what you want to do all I can offer is my code. You create a TagLib File object from the actual mp3 file. This reads the file and extracts the tag data: TagLib.File tagFile = TagLib.File.Create(track); // track is the