0

How does windows know the length of an mp3 file if it's not included in the mp3 metadata? I was searching through some files and they don't include length tagging information, but windows still knows the length. Is there a way to access the information windows knows about a file with python?

1 Answers1

0

You can calculate the length of the audio part with existing informations and a formula like this:

AudioLength = FileLength / (Sample Rate * Channels * Bits per sample / 8)

Maybe this articles will help you:

Community
  • 1
  • 1
PeterCo
  • 910
  • 2
  • 20
  • 36