Était-ce utile?

La solution 2

le figuré.

C'est ce que j'essayais d'accomplir:

# load the TagLib# assembly into PowerShell
[Reflection.Assembly]::LoadFrom("C:\taglib-sharp.dll")

$media = [TagLib.MPEG.File]::Create("C:\1812 Overture.mp3")
[TagLib.Id3v2.Tag] $currId3v2 = $media.GetTag([TagLib.TagTypes]::Id3v2)

$commentFrames = $currId3v2.GetFrames("COMM")
...

Désolé si je n'étais pas assez descriptif.

et merci pour la volonté d'aider.

Autres conseils

Cela semble fonctionner pour moi - pourriez-vous clarifier votre question avec ce qui ne fonctionne pas?

# load the TagLib# assembly into PowerShell
[Reflection.Assembly]::LoadFrom("C:\taglib-sharp.dll")

# grab the MP3 file with TagLib
$file = [TagLib.File]::Create("C:\overture.mp3")

# read the COMMENT tag field
$file.Tag.Comment

Pour moi au moins, cette sortie la ligne suivante:

Amazon.com Song ID: 123456789

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top