python - Finding the length of an mp3 file - Stack Overflow

PHOTO EMBED

Tue Feb 22 2022 04:01:38 GMT+0000 (Coordinated Universal Time)

Saved by @baha_dev #python

    args=("ffprobe","-show_entries", "format=duration","-i",filename)
    popen = subprocess.Popen(args, stdout = subprocess.PIPE)
    popen.wait()
    output = popen.stdout.read()
content_copyCOPY

https://stackoverflow.com/questions/6037826/finding-the-length-of-an-mp3-file