Closed shouvick closed 3 years ago
Can you attach the mp3?
here is the file welcome-to-the-jungle.zip
and also please attach any workable mp3 here in which all metadata are coming.
This file has id3v2.4.0 tag, which has not been implemented. Right now I've updated mp3info to read this tag version.
Check out dev-master
version and try again.
Most popular tag version is 2.3.0, so a lot of mp3-files are readable. Yours is different, so I didn't read properly
Hi @shouvick and @wapmorgan, I forked and adapted a class that can handle ID3V2.2 and V2.4 mp3 files: https://gist.github.com/sjardim/32f182be2ab11a53b07633798ada7f04
It is based on Philip Norton's originals post and gist: https://www.hashbangcode.com/article/extracting-data-mp3-php
Let me know if this is useful somehow.
Cheers, Sergio
Check out 0.0.6
after executing this : new Mp3Info($path); output is
+codecVersion: 1 +layerVersion: 3 +audioSize: 2184462 +duration: 274.33795918367 +bitRate: 64000 +sampleRate: 44100 +isVbr: false +vbrProperties: [] +channel: "stereo" +tags: [] +tags1: [] +tags2: [] +id3v2MajorVersion: null +id3v2MinorVersion: null +id3v2Flags: [] +id3v2TagsFlags: [] +_fileName: "D:\laragon\www\add-music-cms\public\images/922883200.mp3" +_fileSize: 2188626 +_framesCount: 10503.0 +_parsingTime: 0.0057120323181152 -_cbrFrameSize: 208.0 +_id3Size: 4164
But the problem is I am not getting the tags value I need song and artist information ?