Fails to analyze some m4a files
See original GitHub issueBug description
Some m4a files return Error message: End-Of-Stream
. Even though the file plays just file. I tried different methods like parseFile
, parseBuffer
and parseStream
. But they all fail at the readBuffer
function inside the strtok3
library.
I am running 7.13.0
common js version in node env.
Expected behavior Any m4a file should work.
Audio file demonstrating the problem If applicable, please drag and drop the zipped audio file(s) which caused the problem into the bug report. Please create additional issues if you experience different problems for each file.
Here is the error stack.
at FileTokenizer.readBuffer (../../node_modules/strtok3/lib/FileTokenizer.js:25:13)
at FileTokenizer.readToken (../../node_modules/strtok3/lib/AbstractTokenizer.js:25:17)
at Function.readAtom (../../node_modules/music-metadata/lib/mp4/Atom.js:19:20)
at Atom.readAtoms (../../node_modules/music-metadata/lib/mp4/Atom.js:38:24)
at Function.readAtom (../../node_modules/music-metadata/lib/mp4/Atom.js:27:5)
at MP4Parser.parse (../../node_modules/music-metadata/lib/mp4/MP4Parser.js:237:24)
at parse (../../node_modules/music-metadata/lib/ParserFactory.js:38:3)
at parseFile (../../node_modules/music-metadata/lib/index.js:46:12)
For some reason bytesRead
at this line was 0. Not sure why.
If it helps, here is the file metadata that was generated via ffmpeg
in terminal
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2022-10-28T11:44:43.000000Z
com.android.version: 10
Duration: 00:02:04.80, start: 0.000000, bitrate: 150 kb/s
Stream #0:0[0x1](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 148 kb/s (default)
Metadata:
creation_time : 2022-10-28T11:44:43.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
Issue Analytics
- State:
- Created a year ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Tag reading failure for some M4A files #151 - GitHub
Hi, I wonder why this M4A file fails to read tag completely? Tested also in iTunes, Windows Explorer, Windows Media Player, MediaMonkey, ...
Read more >Analyze volume fails with M4A / M4P files - MediaMonkey forum
I just discovered that volume analysis fails on all of my M4P files, but does seem to work on the M4A files. My...
Read more >.m4a Files Not Playing in Apple Music - Apple Community
As an example, an album that I imported from CD using Apple Lossless encoding will now only import and play two of the...
Read more >windows media player m4a files (reconizes some but not all?)
hey thier i was searching through my music files on my windows media player and i realized some of my mlp music got...
Read more >Automated Malware Analysis Report for voicemail-311.m4a
General Information ; Cookbook Comments: Adjust boot time; Found application associated with file extension: .m4a; Unable to launch sample, stop analysis.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Understood @sam-serenade, posting it to myGitHubUserName@xs4all.nl will do the trick.
@Borewit Apologies for the late response! It looks like your workaround works! Thanks so much!