(C#) Wie kann man den Bewertungs-Tag von .m4a lesen?

worsty

Newbie
Registriert
Jan. 2014
Beiträge
2
Hi Leute,
Ich arbeite gerade mit Taglib# an ein Programm, mit dem ich Die Bewertung von Liedern auslesen kann. Bei .mp3 Dateien hab ich das Problem bereits gelöst:

Code:
TagLib.File file = TagLib.File.Create(Dateipfad);
Tag tag = file.GetTag(TagLib.TagTypes.Id3v2);
TagLib.Id3v2.PopularimeterFrame rating = TagLib.Id3v2.PopularimeterFrame.Get((TagLib.Id3v2.Tag)tag, "Windows Media Player 9 Series", true);
byte rate = rating.Rating;

Jedoch funktionert das nicht bei .m4a Dateien.
Ich hoffe ihr könnt mir da weiter helfen
 
Wird wohl nicht funktionieren laut Beschreibung:
Currently it supports both ID3v1 and ID3v2 for MP3 files, Ogg Vorbis comments and ID3 tags and Vorbis comments in FLAC, MPC, Speex, WavPack TrueAudio, WAV, AIFF, MP4 and ASF files.
ID3 Tags und Vorbis Comments sind in MP4 aber nicht üblich, zumal MP4/M4A keinen wirklichen Standard besitzt.
http://www.jiscdigitalmedia.ac.uk/guide/aac-audio-and-the-mp4-media-format schrieb:
Metadata

MP4 does not have a standardized metadata schema like the ID3 system used by MP3s, but rather stores its descriptive metadata as MPEG-4 metadata atoms. While this makes it difficult to specify a standard set of descriptive parameters for audio MP4s it gives immense flexibility to the data which the producer or user can choose to package with the audio.

Your choice of encoder/library tool (iTunes, Foobar etc) will influence the viewable and writeable fields offered to you, as each can theoretically implement its own set of tags; in practice, Apple's M4A tag set from iTunes offers a flexible and popular schema readable by the greatest range of devices and software, and iTunes is a good tool for tagging your AAC audio MP4s.

Alternatively, the open-source and cross-platform metadata parser Atomic Parsley offers low-level inspection of MP4 metadata.
Wenn du keine passende Lib findest, musst du dir halt selbst was schreiben.
 
Mit TagLib# kann man die meisten Informationen von m4a auslesen, wie zum Beispiel: Autor, Titel und Album und so weiter nur ich komm nicht weiter um die Bewertung zu finden
 
Zurück
Oben