Comments (15)
Both files worked ok for me:
from musicmetadata.
I'm sorry for the very late response. Can I see your code? Also do you know if force saving a png buffer to a jpg would have any effects on the final image file?
from musicmetadata.
@Kirasagi did you solve this problem?
from musicmetadata.
I think I may have seen this same bug or maybe a bit different one that is likely related. For me it only happens when musicmetadata is handling two requests simultaneously. It is causing the first few and last few characters in the picture buffer to be corrupt. I was able to work around it by scheduling one file at a time to the parser.
from musicmetadata.
@mavericken that's interesting, do you have some code that I could run to try and reproduce?
from musicmetadata.
@mavericken I just pushed version 0.4.0 out, can you try that?
from musicmetadata.
Thanks for your efforts. It didn't solve it. I have tried to make some simple reproduction code, but so far I can't reproduce with the simple code. It could be a problem with my code, but it still looks very much like its coming from musicmetadata. If/when I find what the problem is or reproduce with simple code, I will let you know.
from musicmetadata.
I'm late to the party on this one but I think I've been able to reproduce this. I've been testing with ~8 files with embedded data (including Song 1 above), I notice that the image parsing randomly fails when I pass a {duration: true} argument to the mm function. If I don't calculate duration then I can get the image data correctly consistently.
from musicmetadata.
I would LOVE if we could somehow get a reproducible test case.
from musicmetadata.
Okay I have build an reproducible test case, run index.js and at least one (or even 2 :O) of the six images are corrupt. you can download it here (be aware it contains speedcore and other obnoxious music)
from musicmetadata.
Thanks @Eaterofcode, I can reproduce this. Let me see if I can figure out what is going on.
from musicmetadata.
I hope you can because it has been a PITA. I wish you success music metadata lord
from musicmetadata.
Your statement
it will theoretically effect other container types.
is incorrect because all data turns into immutable objects except images
from musicmetadata.
I meant picture data within other container types (flac, ogg) etc. Good point though.
from musicmetadata.
Ah I see, sorry for the misunderstanding
from musicmetadata.
Related Issues (20)
- 'Could not find metadata header' with some mp3s HOT 5
- No metadata in file that has metadata HOT 2
- Webpack, fs and HTML 5 File object HOT 1
- Misleading examples: the Readable Stream should be closed HOT 3
- error when extract image HOT 3
- Error: expected frame header but was not found. FLAC files parsed with id3v2 parser? HOT 2
- Dump complete metadata? HOT 1
- Rating tag support HOT 3
- Chapter Addendum? HOT 1
- Warning: Possible EventEmitter memory leak detected. HOT 1
- [Question] Is there a way to not parse / load the picture buffer HOT 3
- Chrome freezes/locks up while loading FLAC metadata from arraybuffer HOT 2
- Completion callback invoked twice HOT 1
- Callback is never called HOT 4
- Webpack with electron-renderer target imports non-browser-wrapped version
- using file upload control HOT 1
- Doesn't support OGG. HOT 2
- Do not provide duration of audio HOT 5
- File's picture
- Metadata output doesn't include composer tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from musicmetadata.