wapmorgan / Mp3Info

The fastest PHP library to extract mp3 meta information (duration, bitrate, samplerate and so on) and tags (id3v1, id3v2).
https://wapmorgan.github.io/Mp3Info/
GNU Lesser General Public License v3.0
139 stars 41 forks source link

Can't retrieve metadata #33

Closed Lecodeurenretard closed 7 months ago

Lecodeurenretard commented 8 months ago

Hello, I am working on a server and I wrote a script that fetch tags of a mp3 file, the issue is once the new Mp3Info($path); , the properties: 'tags', 'tags1' and 'tags2' are empty arrays ( I know it fromvar_dump()).

I tried to switch from the URL to the path on the server but it doesn't change anything.

edit: I also checked the metadatas with the cmd line.

wapmorgan commented 7 months ago

Provide a sample file to investigate

Lecodeurenretard commented 7 months ago

The music file: You-May-Call-Me-Father.zip

The command line result: Screenshot cmd line

The var_dump() result: Screenshot var dump

wapmorgan commented 7 months ago
// If you need parse tags, you should set 2nd argument this way:
$audio = new Mp3Info('./audio.mp3', true);
Lecodeurenretard commented 7 months ago

Oh thank you! English is not my first language so I didn't understood the doc well.