Dec 12, 2016 Dear Community. I had loaded a lot of obscure lectures and poetry readings into my music library using WAV. Little of it can be tagged using remote databases and now I wish to improve the tags but find myself blocked in every direction. When you buy a movie from the iTunes Store, it is displayed in your iTunes library with official artwork, plot summary, cast and crew information, and other relevant metadata. Basically you can spend years building up a library and adding the metadata to your Excel file and then when your files are done and mastered, you can just 'inject' them. Your DAW: Chances are, when exporting your file out of your DAW you will be able to add some metadata too. Quite painful though.
Active26 days ago
I'm trying to find out how to read/write to the extended file properties in C#e.g. Comment, Bit Rate, Date Accessed, Category etc that you can see in Windows explorer. Any ideas how to do this?EDIT: I'll mainly be reading/writing to video files (AVI/DIVX/..)
Mark Hurd
8,9731010 gold badges5656 silver badges8989 bronze badges
David HayesDavid Hayes
4,0401212 gold badges3838 silver badges6060 bronze badges
Meta Data Editor For Mac Download10 Answers
For those of not crazy about VB, here it is in c#:
Pdf editor for mac full version free download. Note, you have to add a reference to Microsoft Shell Controls and Automation from the COM tab of the References dialog.
Shimmy
53.2k108108 gold badges351351 silver badges558558 bronze badges
csharptest.netcsharptest.net
42.5k99 gold badges6262 silver badges8383 bronze badges
There's a CodeProject article for an ID3 reader. And a thread at kixtart.org that has more information for other properties. Basically, you need to call the Mark CidadeMark Cidade
GetDetailsOf() method on the folder shell object for shell32.dll .
86.9k2929 gold badges210210 silver badges227227 bronze badges
This sample in VB.NET reads all extended properties:
You have to add a reference to Microsoft Shell Controls and Automation from the COM tab of the References dialog.
Mp4 Metadata Editor WindowsShimmy
53.2k108108 gold badges351351 silver badges558558 bronze badges
Dirk VollmarDirk Vollmar
144k4949 gold badges234234 silver badges291291 bronze badges
Add following NuGet packages to your project:
Read and Write Properties
Important:
The file must be a valid one, created by the specific assigned software. Every file type has specific extended file properties and not all of them are writable.
If you right-click a file on desktop and cannot edit a property, you wont be able to edit it in code too.
Example:
So just make sure to use some
try catch
Further Topic:MSDN: Implementing Property Handlers
Martin SchneiderMartin Schneider
5,60611 gold badge3838 silver badges4848 bronze badges
Thank you guys for this thread! It helped me when I wanted to figure out an exe's file version. However, I needed to figure out the last bit myself of what is called Extended Properties.
If you open properties of an exe (or dll) file in Windows Explorer, you get a Version tab, and a view of Extended Properties of that file. I wanted to access one of those values.
The solution to this is the property indexer FolderItem.ExtendedProperty and if you drop all spaces in the property's name, you'll get the value. E.g. File Version goes FileVersion, and there you have it.
Hope this helps anyone else, just thought I'd add this info to this thread. Cheers!
JERKERJERKER
GetDetailsOf() Video editor for mac review. Method - Retrieves details about an item in a folder. For example, its size, type, or the time of its last modification. File Properties may vary based on the Windows-OS version.
5,26755 gold badges4747 silver badges7171 bronze badges
Jerker's answer is little simpler. Here's sample code which works from MS:
For those who can't reference shell32 statically, you can invoke it dynamically like this:
nawfalnawfal
46.4k3838 gold badges266266 silver badges315315 bronze badges
Use:
RohanRohan
I'm not sure what types of files you are trying to write the properties for but taglib-sharp is an excellent open source tagging library that wraps up all this functionality nicely. It has a lot of built in support for most of the popular media file types but also allows you to do more advanced tagging with pretty much any file.
EDIT: I've updated the link to taglib sharp. The old link no longer worked.
EDIT: Updated the link once again per kzu's comment.
mockobjectmockobject
Here is a solution for reading - not writing - the extended properties based on what I found on this page and at help with shell32 objects.
To be clear this is a hack. It looks like this code will still run on Windows 10 but will hit on some empty properties. Previous version of Windows should use:
On Windows 10 we assume that there are about 320 properties to read and simply skip the empty entries:
As mentioned you need to reference the Com assembly Interop.Shell32.
If you get an STA related exception, you will find the solution here:
I have no idea what those properties names would be like on a foreign system and couldn't find information about which localizable constants to use in order to access the dictionary. I also found that not all the properties from the Properties dialog were present in the dictionary returned.
BTW this is terribly slow and - at least on Windows 10 - parsing dates in the string retrieved would be a challenge so using this seems to be a bad idea to start with.
On Windows 10 you should definitely use the Windows.Storage library which contains the SystemPhotoProperties, SystemMusicProperties etc. https://docs.microsoft.com/en-us/windows/uwp/files/quickstart-getting-file-properties
And finally, I posted a much better solution that uses WindowsAPICodePack there
Movie Metadata Editor
pasxpasx
protected by WillSep 15 '10 at 17:57Metadata Editor Windows 10
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead? Photo Metadata EditorNot the answer you're looking for? Browse other questions tagged c#extended-properties or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |