Open MaddPenguin opened 2 years ago
I am having the same problem. I am going to try using an earlier version.
The same for me! The last version doesn't work on Linux!
@Hutsaliuk
The same for me! The last version doesn't work on Linux!
I tried using an earlier version, but Even an earlier version isn't working on linux
Currently using id3 for MP3 files.
@omegaui Thanks for suggesting, but in that package unclear how to retrieve the cover image... Unfortunately, it has a very poor description... :(
@Hutsaliuk You can access the artwork like below
MP3Instance mp3instance = MP3Instance(File(track.path).readAsBytesSync());
if(mp3instance.parseTagsSync()){
dataMap = mp3instance.getMetaTags();
if(dataMap != null) {
dynamic apicMap = dataMap?['APIC'];
if(apicMap != null) {
artworkBytes = base64Decode(apicMap['base64']);
}
}
}
Yes, it wasn't mention anywhere how to do this, I just took a look at a sample json of id3's README.md!
You can then use
Image.memory(artworkBytes)
To display it as you want
@Hutsaliuk You can access the artwork like below
MP3Instance mp3instance = MP3Instance(File(track.path).readAsBytesSync()); if(mp3instance.parseTagsSync()){ dataMap = mp3instance.getMetaTags(); if(dataMap != null) { dynamic apicMap = dataMap?['APIC']; if(apicMap != null) { artworkBytes = base64Decode(apicMap['base64']); } } }
Yes, it wasn't mention anywhere how to do this, I just took a look at a sample json of id3's README.md!
Thanks! You've really helped me! I will try it! =)
I could resolve the warnings in my forked repo.
but it still has linker command error.
[ +10 ms] /usr/bin/ld: cannot find -lmediainfo: No such file or directory [ +14 ms] clang: error: linker command failed with exit code 1 (use -v to see invocation) [ +804 ms] [3/6] Building CXX object CMakeFiles/flutter_media_metadata_example.dir/my_application.cc.o [ +6 ms] [4/6] Building CXX object CMakeFiles/flutter_media_metadata_example.dir/flutter/generated_plugin_registrant.cc.o [ ] ninja: build stopped: subcommand failed. [ +26 ms] Building Linux application... (completed in 4.0s) [ +5 ms] "flutter linux" took 5,020ms. [ +9 ms] Build process failed
I've read the following comment, installed libstdc++-12-dev
, and reinstalled the other required dependencies but the error is still there.
https://github.com/flutter/flutter/issues/115909#issuecomment-1330332515
The following error seems to cause the problem but I don't know how to solve it.
/usr/bin/ld: cannot find -lmediainfo: No such file or directory
I know its been a while but worth saying, I had this problem too and man I was very frustrated and after some research I found nothing and decided to look into it myself though I don't know anything about literally anything I did these steps to solve it:
Anybody still messing with this, just install mediainfo and libmediainfo-devel. Thanks
Fedora users can install like this:
sudo dnf install mediainfo libmediainfo-devel
Cannot build my project on Linux.
flutter run -d linux:
flutter doctor:
tried as per #23, still not working
mediainfo --version