Questions tagged [taglib-sharp]

TagLib# (or TagLib-Sharp) is a C# library for reading and writing most common formats of metadata (both "tags" and media properties) for audio, video, and picture formats.

130 questions
1
vote
1 answer

Is there a way to check what tags are in a file using taglib-sharp? Something like TagTypes.Id3v1.Exists?

I've been using taglib-sharp to remove ID3 tags from MP3 files. Everything seems pretty straight forward besides knowing what tags there is in the file.
1
vote
1 answer

Setting Explicit tag for Apple .m4a file with TagLib#

I'm using this method to add the ITUNESADVISORY tag: static void SetExplicit(string file) { var f = TagLib.File.Create(file); TagLib.Mpeg4.AppleTag customTag = (TagLib.Mpeg4.AppleTag)f.GetTag(TagLib.TagTypes.Apple, true); var vector =…
Reynevan
  • 1,475
  • 1
  • 18
  • 35
1
vote
0 answers

c# taglibs edit mp4 file rating and subtitle

i am trying to edit an mp4 files Title, subtitle, rating, tags and comments. So far this code works for editing the title: file.Tag.Title = TheVars.Title; but there is no .Subtitle option.also for rating i can make this work with…
Stan
  • 13
  • 5
1
vote
1 answer

Explorer MP3 thumbnail not updating when saved with TagLib#

I am using TagLib# to edit some MP3 tags. To set the album art for the track, I use the following simple line: file.Tag.Pictures = new TagLib.IPicture[] { new TagLib.Picture(filepath) }; It works and sets the image as expected. When I save the…
tryashtar
  • 278
  • 3
  • 13
1
vote
0 answers

iTunes not showing cover art

I'm using the Spotify API to fetch the cover for a specific song. I'm settings this cover to the song as shown here: using (var file = TagLib.File.Create(SavePath)) { file.Tag.Title = information.Name; file.Tag.Performers = new[]…
Christian Klemm
  • 1,455
  • 5
  • 28
  • 49
1
vote
2 answers

How to use dynamically linked dll in c#

I imported the taglib-sharp dll (that had been copied to the bin/debug folder of my project) in my C# application and then used types and methods from the library in the following way: using TagLib; private void method() { TagLib.File file =…
Fill Freeman
  • 189
  • 9
1
vote
0 answers

MP3 TagLib search and copy issue

Greetings to all of you. My problem is: I need to search through user selected folder that contains MP3 files and check which file(s) has or contains specified tag. If it does, i will copy it to specified folder. I have managed to do something,…
leroy
  • 63
  • 1
  • 8
1
vote
1 answer

Reading ID3 tags from the web with C#

I've seen the TagLib Sharp example of how they read from a Gnome VFS, but does anyone know how or have sample code on how I can read an MP3 file from a website and get the ID3 info? So say i have some MP3's and the link is like this:…
phteven
  • 1,383
  • 2
  • 16
  • 29
1
vote
1 answer

Is there any more efficient way to code this?

Start: if(fileName.Contains("$track")) if(musicInfo.Tag.Track.ToString() != "") { fileName.Replace("$track", musicInfo.Tag.Track.ToString()); } else { …
kenyunot
  • 86
  • 7
1
vote
1 answer

How to remove Lyrics3 v2 tag from id3?

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…
PeterCo
  • 910
  • 2
  • 20
  • 36
1
vote
2 answers

TagLib# Exception on File.Create

I am trying to use Taglib# to add id3v2 tags to a file. I have it working on some files - however, on certain files it will fail. (Possibly due to file corruption). if (ext == ".aiff" || ext==".aif"){ //force reading of aiff files file =…
Scott Moniz
  • 650
  • 11
  • 20
1
vote
3 answers

TagLib# Windows distribution? Or another good ID3 reader?

I wanted to write a quick program to get the file organization of my MP3 files back into sync with the info in my ID3 tags... I had tried to get the Windows Media Format SDK, but when I go to install it says it can only run on WinXP. I found…
eidylon
  • 7,068
  • 20
  • 75
  • 118
1
vote
2 answers

How to get the rating tag of a .m4a file in C#

I work with TagLib# to get the ratings of my .mp3 files this part is working so far, but I have absolutely no idea how to get the rating of a m4a file. This is how i get the rating of a .mp3 file, but it doesn't work for m4a: TagLib.File file =…
Dennis Rieke
  • 201
  • 4
  • 18
1
vote
0 answers

In Powershell with Taglib#, how get xiph Rating value for Flac file?

OK, I have exhausted my (somewhat limited) abilities in Powershell to try to do this. I am hoping someone can help. I am happily using taglib-sharp for various tags - getting and setting - for Flac and MP3. But, I cannot figure out how to get or…
macq
  • 19
  • 1
  • 4
1
vote
1 answer

Taglib sharp not editing rating

I have encountered a very strange problem while using Taglib sharp. I am changes the rating of video file by using code shown below. TagLib.File file = TagLib.File.Create(FULLFILEPATH); TagLib.Tag Tag = file.GetTag(TagTypes.Id3v2); …
Muhammad Umar
  • 3,761
  • 1
  • 24
  • 36
1 2 3
8 9