Powershell und MP3 Tags

Auf http://www.powershell.nu/2009/09/04/scripting-mp3-metadata-through-powershell/ habe ich heute einen interessanten Artikel gefunden, der das Auslesen von MP3-Tags mit Powershell beschreibt.

Edit: Hier findet man die fertige DLL: http://download.banshee.fm/taglib-sharp/.

$TagLib = "C:\taglib\Libraries\taglib-sharp.dll"
 
[System.Reflection.Assembly]::LoadFile($TagLib)
 
$Media  =  [TagLib.File]::Create("C:/nemo.mp3")
 
$Media
 
$Media.Tag

GAC    Version        Location                                                                                                                                       
---    -------        --------                                                                                                                                       
False  v2.0.50727     C:\taglib\Libraries\taglib-sharp.dll                                                                                                           

Tag                    : TagLib.NonContainer.Tag
Properties             : TagLib.Properties
TagTypesOnDisk         : Id3v1, Id3v2
TagTypes               : Id3v1, Id3v2
Name                   : C:/nemo.mp3
MimeType               : taglib/mp3
Tell                   : 0
Length                 : 0
InvariantStartPosition : 644
InvariantEndPosition   : 6508416
Mode                   : Closed




GAC    Version        Location                                                                                                                                       
---    -------        --------                                                                                                                                       
False  v2.0.50727     C:\taglib\Libraries\taglib-sharp.dll                                                                                                           

Tag                    : TagLib.NonContainer.Tag
Properties             : TagLib.Properties
TagTypesOnDisk         : Id3v1, Id3v2
TagTypes               : Id3v1, Id3v2
Name                   : C:/nemo.mp3
MimeType               : taglib/mp3
Tell                   : 0
Length                 : 0
InvariantStartPosition : 644
InvariantEndPosition   : 6508416
Mode                   : Closed


StartTag                   : TagLib.NonContainer.StartTag
EndTag                     : TagLib.NonContainer.EndTag
TagTypes                   : Id3v1, Id3v2
Tags                       : {, }
Title                      : Nemo
Performers                 : {Nightwish}
PerformersSort             : {}
AlbumArtistsSort           : {}
AlbumArtists               : {}
Composers                  : {}
ComposersSort              : {}
TitleSort                  : 
AlbumSort                  : 
Album                      : Once
Comment                    : 
Genres                     : {Other}
Year                       : 2004
Track                      : 0
TrackCount                 : 0
Disc                       : 0
DiscCount                  : 0
Lyrics                     : 
Grouping                   : 
BeatsPerMinute             : 0
Conductor                  : 
Copyright                  : 
MusicBrainzArtistId        : 
MusicBrainzReleaseId       : 
MusicBrainzReleaseArtistId : 
MusicBrainzTrackId         : 
MusicBrainzDiscId          : 
MusicIpId                  : 
AmazonId                   : 
MusicBrainzReleaseStatus   : 
MusicBrainzReleaseType     : 
MusicBrainzReleaseCountry  : 
Pictures                   : {}
IsEmpty                    : False
Artists                    : {Nightwish}
FirstArtist                : Nightwish
FirstAlbumArtist           : 
FirstAlbumArtistSort       : 
FirstPerformer             : Nightwish
FirstPerformerSort         : 
FirstComposerSort          : 
FirstComposer              : 
FirstGenre                 : Other
JoinedArtists              : Nightwish
JoinedAlbumArtists         : 
JoinedPerformers           : Nightwish
JoinedPerformersSort       : 
JoinedComposers            : 
JoinedGenres               : Other

Uwe

Uwe Ziegenhagen likes LaTeX and Python, sometimes even combined. Do you like my content and would like to thank me for it? Consider making a small donation to my local fablab, the Dingfabrik Köln. Details on how to donate can be found here Spenden für die Dingfabrik.

More Posts - Website