-
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
Cover will removed by write data #11
Comments
I have the same problem - I am using ffmetadata to rewrite data to files which have cover images, but after writing, the cover no longer seems to be there. |
Same with me. |
The current ffmpeg option only copies the first stream from the input file: Line 143 in c6cb960
This will be just the audio stream and not any other data encoded in subsequent streams (e.g., cover art). To copy all streams from the input, the map option needs to be changed to This would have to be an option, as in my own workflow I like to strip all extra data out of audio file and re-attach my own cover art. |
Partial success! It worked for the mp3 file I chose, but not an m4a file. Here's the error that I received when trying the m4a:
And here's the code I have that invokes ffmetadata:
Finally, just to be certain that I modified the right code in the package, I now have inside |
Yep your change sounds right. Does that m4a file work without the change? I'm not sure what's going on and the ffmpeg output is not very helpful. Can you share your test file? If you want to keep it private my email is [email protected]. |
From this thread it sounds like ffmpeg may not support cover art for m4a files. https://trac.ffmpeg.org/ticket/2798
It's 3 years old though so I'm not sure if the status has changed since then. |
The issue for the covers on m4a seems to be fixed. |
The problem is, the tag "comment: Cover (front)" isn't (correctly) set. Don't know how to fix it tho. When I put in a metadata extractor, the value of the field "comment" is "Other". |
My mp3 has a cover and i run the code, the cover has removed.
ffmetadata.write(p, data, function(err) {
if (err) {
console.log(err);
} else {
ffmetadata.read(p, function(err, data) {
if (err) console.error("Error reading metadata", err);
else console.log(data);
});
}
});
The text was updated successfully, but these errors were encountered: