Makaveli84
3rd October 2023, 17:20
I am trying to extract the cover art (or multiple pieces) with MediaInfo DLL v23.09 in C#/.NET (using the provided wrapper).
I have tried the following but it didn't work:
MediaInfo mi = new MediaInfo();
mi.Open(filePath);
mi.Option("Complete"); // Or same result even with mi.Option("Complete", "1");
string base64data = mi.Get(StreamKind.General, 0, "Cover_Data");
Returned stream is empty.
EDIT: Querying the container for existing cover art with: mi.Get(StreamKind.General, 0, "Cover") actually returns "Yes / Yes", which is correct because the file (MPEG-4/M4A) does indeed contain 2 embedded covers.
I have tried the following but it didn't work:
MediaInfo mi = new MediaInfo();
mi.Open(filePath);
mi.Option("Complete"); // Or same result even with mi.Option("Complete", "1");
string base64data = mi.Get(StreamKind.General, 0, "Cover_Data");
Returned stream is empty.
EDIT: Querying the container for existing cover art with: mi.Get(StreamKind.General, 0, "Cover") actually returns "Yes / Yes", which is correct because the file (MPEG-4/M4A) does indeed contain 2 embedded covers.