What is the simplest way to determine the length (in seconds) of a given mp3 file, without using outside libraries? (python source highly appreciated)
simply use mutagen
mutagen
$pip install mutagen
use it in python shell:
from mutagen.mp3 import MP3 audio = MP3(file_path) print audio.info.length