V
V
veydlin2015-11-19 22:30:38
PHP
veydlin, 2015-11-19 22:30:38

How to check mp3 for validity?

I use this class: code.re/970
The problem is that I record and convert to mp3 directly from the browser
Sometimes (50 to 50) a bitrate error (94 lines of code) crashes, but the file is valid, I play it in the system and that's it fine. As far as I understand - the error depends on the recording time.
Maybe someone will tell you another class (the main thing is not universal, which checks everything, from mp3 to my cat. And not a library, the hoster does not allow this) or notice an error in the class that I threw off? I only need to know the duration (so that the truth checks, and not conditionally) and whether the file is
mp3

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2015-11-20
@Nc_Soft

php.net/manual/en/book.id3.php
getid3.sourceforge.net

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question