taglib-sharp

TagLib.Sharp on a website (vb.net) (Type 'TagLib.File' is not defined)

无人久伴 提交于 2021-02-18 19:35:56
问题 (Coding for VB.NET) I am working with the TagLib-Sharp. I really enjoy how it works. Very simple and straight forward. Well, within VS, it is, anyway. I took the files and placed them on my web server, of which included the BIN folder that VS created with the DLL files when I referenced the TagLib-Sharp.dll file. When I run the site through my browser, I get the following error. Type 'TagLib.File' is not defined I was told that I had to create a Namespace for it, so I did that. I also

TagLib.Sharp on a website (vb.net) (Type 'TagLib.File' is not defined)

北城余情 提交于 2021-02-18 19:34:58
问题 (Coding for VB.NET) I am working with the TagLib-Sharp. I really enjoy how it works. Very simple and straight forward. Well, within VS, it is, anyway. I took the files and placed them on my web server, of which included the BIN folder that VS created with the DLL files when I referenced the TagLib-Sharp.dll file. When I run the site through my browser, I get the following error. Type 'TagLib.File' is not defined I was told that I had to create a Namespace for it, so I did that. I also

TagLib sharp not editing artist

自古美人都是妖i 提交于 2021-01-27 05:46:23
问题 I'm trying to save new artist and title id3 tags into tracks. Loading tags from tracks working good, also editing title for track is working fine. But when i try to edit performer (artist) it didn't change anything. Here is the code public void renameID3(string artist,string title) { using (TagLib.File f = TagLib.File.Create(FInfo.FullName)) { f.Tag.Artists[0] = artist; //Both of them are not ... f.Tag.Performers[0] = artist; //working f.Tag.Title = title; //This works fine f.Save(); } } Plus

How to read Bit rate of .wav file in C#

喜你入骨 提交于 2019-12-30 09:44:07
问题 given that I have a .wav file, what would be best way to read its Bit rate property in C#. I have tried Shell, and asked a question Is "Bit rate" property fixed in index 28? with no asnwers so for. Also I now believe Shell is not the best way to read audio file properties. I have researched on different open source media libraries, cant find much. TagLib#: This one works alright but have two issues. it does not reflect actual bit rate in some cases where bit rate is very low (like less than

How to remove Lyrics3 v2 tag from id3?

三世轮回 提交于 2019-12-24 12:31:05
问题 I use the taglib sharp library to remove all tags from my songs with the command Track = TagLib.File.Create("C:\test\Super Trouper.mp3") Track.RemoveTags(TagLib.TagTypes.AllTags) Track.Save() Track.Dispose() Unfortunately, the .RemoveTags doesn't remove a Lyrics3 v2.0 tag (specified here: http://id3.org/Lyrics3v2). Such a tag can be detected with a tool like "Mp3 Diags" (http://mp3diags.sourceforge.net/) How can I completely remove ALL tags and ALL frames from my song? Or how can I remove

Powershell - Set 'title' in photo file using Taglib-sharp not working

不打扰是莪最后的温柔 提交于 2019-12-24 11:57:58
问题 I'm trying to change the 'title' (extended file attribute) in multiple photos using Taglib-Sharp in Powershell. While it works fine for most, it doesn't for certain photos. So far from my initial testing it appears to not work with Olympus produced JPEG's or JPEG's without any EXIF info in them at all. I'm using TagLib-Sharp 2.1.0.0, I've tried older version's too. This is my code: [Reflection.Assembly]::LoadFrom( ("c:\taglib-sharp.dll") ) $media = [TagLib.File]::Create("C:\temp\photo.jpg")

Determine the length (in milliseconds) of an mp3 file in VB.net

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-23 06:07:33
问题 Is there a way to get the time length of an mp3 in VB.net? I have TagLib, but it doesn't seem to have any functionality for it. 回答1: I think you are looking for the TagLib.File.Properties.Duration, which returns a TimeSpan object. From there you can use TotalSeconds to get the length of the mp3 in seconds. 回答2: add this to timer of track bar and dont forgot to add label in Label4.Text = AxWindowsMediaPlayer1.Ctlcontrols.currentItem.durationString player 来源: https://stackoverflow.com/questions

How do I use TagLib-Sharp to write custom (PRIV) ID3 frames?

扶醉桌前 提交于 2019-12-23 01:52:50
问题 Specifically, I'd like to write the Windows Media Player frames, such as the WM/MediaClassPrimaryID , WM/MediaClassSecondaryID and WM/WMCollectionGroupID frames. I'm using PowerShell, but C# would be good too. 回答1: I'm a bit rusty, but the following should be mostly correct. I remember these tags being UTF-16 but you'll probably want to get an existing tag and try decoding its value with the Unicode encoder to be sure. // Get or create the ID3v2 tag. TagLib.Id3v2.Tag id3v2_tag = file.GetTag

Reading id3v2 frames with TagLib in Powershell

送分小仙女□ 提交于 2019-12-22 18:18:05
问题 I'm trying to read a file's id3v2 tag information using the TagLib# library with Powershell. Reading the standard tag properties is not a problem (artist, title etc.), but I'm having difficulty figuring out how to read the ID3v2 frames (specifically the COMMENT). Can anyone provide a simple example as to how to accomplish this? Documentation on this is scarce it seems. 回答1: This seems to work for me - could you please clarify your question with what isn't working? # load the TagLib# assembly

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

本秂侑毒 提交于 2019-12-21 20:29:22
问题 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