https://github.com/igorskyflyer/python-mp3size
🎶 Mp3Size - calculates an estimated file size of Mp3 files, now in Python! 🎯
https://github.com/igorskyflyer/python-mp3size
audio back-end bitrate file filesize igorskyflyer mp3size music python size storage
Last synced: about 1 year ago
JSON representation
🎶 Mp3Size - calculates an estimated file size of Mp3 files, now in Python! 🎯
- Host: GitHub
- URL: https://github.com/igorskyflyer/python-mp3size
- Owner: igorskyflyer
- License: mit
- Created: 2022-08-14T14:39:53.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-05-03T23:08:26.000Z (about 3 years ago)
- Last Synced: 2025-04-12T15:06:47.440Z (about 1 year ago)
- Topics: audio, back-end, bitrate, file, filesize, igorskyflyer, mp3size, music, python, size, storage
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# mp3size - Python
🎶 `Mp3Size` - calculates an estimated file size of Mp3 files, now in Python! 🎯
🧮 Calculates an estimated file size of Mp3 files. 🎶
Usage
A simple usage example:
```python
import mp3size
def main():
print(mp3size.getFileSize("03:30")) # returns 4200
print(mp3size.getFileSize("03:18", 320)) # returns 7920
print(mp3size.getAudioDuration(6474, 306)) # returns 00:02:49
print(mp3size.getAudioBitrate("03:42", 5346)) # returns 192
```