S
S
svetlov972017-05-03 03:21:19
PHP
svetlov97, 2017-05-03 03:21:19

How to get and edit ID3 tags in JS or PHP?

Guys, the question is, I need to get ID3 tags and change them if necessary. it is possible to use PHP\JS but not NodeJS, with what or what libraries can this be implemented?
That is, for example, the user uploads an MP3 via , get ID3 tags and allow the user to edit them.
Help who faced similar!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DevMan, 2017-05-05
@svetlov97

for puff, there is an actual fork of the id3 extension with support for version 7.
but whether the hoster wants to install it, this is another question.

S
sasha, 2017-05-03
@madmages

php.net/manual/ru/function.id3-get-tag.php

D
Dmitry, 2017-05-04
@AaAAxzz

If you have ffmpeg on your hosting - use it.
Example taken from here

use Arhitector\Transcoder\Audio;

$audio = new Audio('file.mp3');

$format = $audio->getFormat();
$format['artist'] = 'Новый артист';

$auiod->save($format, 'new-file.mp3');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question