-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to save cover image with options.coverPath #19
Conversation
Thanks for the contribution! I'm confused what this is doing exactly though. Is this saving a cover image from e.g., a .mp3 file to a separate file? Could you add some usage documentation to the readme? |
Forgot to set -codec -copy parameter for output cover image, so it can be saved without re-encoding. I will make commit later. |
This looks great! Thanks for the docs and the multi-line fix. I'm happy to merge this once you're done. |
Hey! By the way, You probably have also done ffmetadata for some project where you need it and maybe you will find interesting, i have some thoughts on music metadata libs for node. I needed a lib, which could read all meta tags from audio files, even custom, and images and write certain tags like lyrics. I found your lib first and started with it. And i started this pull request, because reading images was not supported, and because reading other fields is fine. I found https://github.com/vankasteelj/mediainfo-wrapper. It reads all the same tags as ffmetadata, but also reads images in base64, and also size of static binary for Mediainfo is a lot smaller, around 7Mb, because it don't need all these crazy video converting features. So i think for reading tags mediainfo-wrapper is superior. But it cannot write anything. Finally i found node-taglib2 (https://github.com/voltraco/node-taglib2). It's a node native binding to C++ library taglib2. Unfortunately, in it's master state it cannot read or write any custom tags (like lyrics). Reading and writing was done implicitly for each field in a code, and only common tags like artist were supported. On the other hand it works fine with reading-writing images. If something of it helps, i'd be glad, maybe some of my findings can spare some time for anyone. |
Thanks @xidb! Your comments make a lot of sense. Yes, I created node-ffmetadata for a music organizer app. I remember coming across node-taglib and finding it promising, but incomplete. Eventually I too ended up on a taglib-based solution, going through the Python bindings via a child process call instead. Pretty roundabout, but it worked at the time. I would be happy to add your findings to the readme so users can find the best tool for their needs. Edit: Done. |
No description provided.