Is there a simple way (without installing a huge library etc.) using PHP to get the duration (in seconds) from .ogg and .mp3 files? (average bitrate would be great, too, but not as important)
I’ve been searching, but everything I found so far is about doing more complicated stuff like encoding etc.
It’s total overkill for what I need, but since it’s only called when new files are being scanned for (not every time they are listed) I think I can live with that.