taglib-sharp

How to Convert IPicture to Image - .NET 4.5 TagLib Sharp

ⅰ亾dé卋堺 提交于 2019-12-10 06:26:52
问题 I am wanting to display the album artwork of a song (accessed via the taglib-sharp library) within a Windows Forms picture box. The problem I'm running into is that the taglib-library returns an image of type TagLib.IPicture whereas the picture box requires an object of type System.Drawing.Image . I have scoured the internet for many hours now, looking for a way to convert from an IPicture to Image , but to no avail. The best lead I have is this: http://msdn.microsoft.com/en-us/library/system

Taglib-sharp: how to use the IFileAbstraction to allow reading metadata from stream?

我怕爱的太早我们不能终老 提交于 2019-12-08 09:54:24
问题 I'm trying to read the metadata of a mp3 file stored in IsolatedStorage using TagLib. I know TagLib normally only take a file path as input but as WP uses a sandbox environment I need to use a stream. Following this tutorial (http://www.geekchamp.com/articles/reading-and-writing-metadata-tags-with-taglib) I created a iFileAbstraction interface: public class SimpleFile { public SimpleFile(string Name, Stream Stream) { this.Name = Name; this.Stream = Stream; } public string Name { get; set; }

Trouble playing mp3s after id3 image edit

故事扮演 提交于 2019-12-08 01:57:22
问题 Due to hardware restrictions, the software we produce tries to ensure that any audio file it imports into it's library (ready to be copied onto the hardware) is an acceptable bit rate. Recently we've started using FFmpeg to convert a number of different audio types to mp3 to allow them to be imported and used on our hardware. Whilst the conversion works fine and the mp3 files work on our hardware afterwards, we're having issues specifically when adding an album art to the ID3 tags of the mp3.

TagLib-sharp: Reading metadata from HttpPostedFile object

爱⌒轻易说出口 提交于 2019-12-07 03:19:46
问题 User post their MP3s to my site and I would like to read the metadata from the files before they are stored in the CDN. TagLib-Sharp seems to be library to go for this, but I can't see any way to open a HttPostedFile, which I don't not want to save to disk, and retrieve the metadata. Anybody have an example on how to do this with taglib-sharp? Edit: It seems that IFileAbstraction can solve this. Anybody know how to use IFileAbstraction? 回答1: You would want to do something as follows. The

TagLib# Windows distribution? Or another good ID3 reader?

偶尔善良 提交于 2019-12-06 15:16:14
问题 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 someone on here suggest TagLib#, which looked REALLY good, from the code examples. Problem is it seems the official site is gone, and the other links I've found to a hosting on Novell's servers is also down. Anyone know where I can still get a distro of

Reading id3v2 frames with TagLib in Powershell

醉酒当歌 提交于 2019-12-06 07:35: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. This seems to work for me - could you please clarify your question with what isn't working? # load the TagLib# assembly into PowerShell [Reflection.Assembly]::LoadFrom("C:\taglib-sharp.dll") # grab the MP3 file with TagLib $file

Trouble playing mp3s after id3 image edit

六眼飞鱼酱① 提交于 2019-12-06 05:07:25
Due to hardware restrictions, the software we produce tries to ensure that any audio file it imports into it's library (ready to be copied onto the hardware) is an acceptable bit rate. Recently we've started using FFmpeg to convert a number of different audio types to mp3 to allow them to be imported and used on our hardware. Whilst the conversion works fine and the mp3 files work on our hardware afterwards, we're having issues specifically when adding an album art to the ID3 tags of the mp3. The track will not play audio in our software. It also seems that Windows cannot pick up the values of

How to Convert IPicture to Image - .NET 4.5 TagLib Sharp

和自甴很熟 提交于 2019-12-05 10:05:51
I am wanting to display the album artwork of a song (accessed via the taglib-sharp library) within a Windows Forms picture box. The problem I'm running into is that the taglib-library returns an image of type TagLib.IPicture whereas the picture box requires an object of type System.Drawing.Image . I have scoured the internet for many hours now, looking for a way to convert from an IPicture to Image , but to no avail. The best lead I have is this: http://msdn.microsoft.com/en-us/library/system.windows.forms.axhost.getpicturefromipicture.aspx , but I have yet to see a successful example of how

TagLib-sharp: Reading metadata from HttpPostedFile object

谁都会走 提交于 2019-12-05 06:16:55
User post their MP3s to my site and I would like to read the metadata from the files before they are stored in the CDN. TagLib-Sharp seems to be library to go for this, but I can't see any way to open a HttPostedFile, which I don't not want to save to disk, and retrieve the metadata. Anybody have an example on how to do this with taglib-sharp? Edit: It seems that IFileAbstraction can solve this. Anybody know how to use IFileAbstraction? You would want to do something as follows. The caveat is that the steam has to be seekable an I do not know if HttpPostedFile.InputStream is. TagLib.File

TagLib# Windows distribution? Or another good ID3 reader?

天涯浪子 提交于 2019-12-04 20:09:42
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 someone on here suggest TagLib#, which looked REALLY good, from the code examples. Problem is it seems the official site is gone, and the other links I've found to a hosting on Novell's servers is also down. Anyone know where I can still get a distro of TagLib# for C#/VB.NET for Windows? Or another good ID3 tag reader? You can download the source and DLL