Closed anthonywebb closed 11 years ago
Hello,
I don't know why the rating is not in the metadata object, this may be some limitation of avcodec, but with the latest version of navcodec (0.3.4), this works to extract the album art:
navcodec.open('assets/robots.mp3', function(err, media){
media.addOutput('art.jpg');
media.transcode(function(err, progress, finished, time){
if(finished){
console.log("Finished");
}
});
});
Bummer, I must have tried 5 different libraries last night trying to get at the rating. The only one I found that can easily get at all the meta info (including coverart, genre, duration, rating, among a plethora of other useful meta info) is this one: https://code.google.com/p/mp4v2/
Do you know if genre is somewhere in avcodec?
It seems that avcodec is not so good for video metadata, for audio it works fine I think.
Love this lib, I am able to get at most of the data, however I am not seeing the album art being returned, or the movie rating? I know the rating and the album art are in there as I see them in other tools that read metadata, any idea how to get at that data?
Outputs: