defrost
- split broken icecast recordings into separate mp3s
- MIT-Licensed, 2019-06-01, ed @ irc.rizon.net, github, pypi
features
- silence detection -- finds the best part to split at
- mp3 parser -- clean splits at frame boundaries
- icy-meta parser -- extract artist/title from inband metadata
- dynamic recalibration to recover from server glitches
- charset detection -- UTF8, latin-1, shift-jis and friends, all good
- ID3 tags -- uses mutagen to write aritst/title into the files
- timestamping -- the date/time that the song was played live
- support for other input formats:
- loopstream recording
installation
- get the latest release from pypi:
python3 -m pip install --user -U defrostir - or the latest commit from github:
python3 -m pip install --user -U https://github.com/9001/defrost/tarball/hovudstraum
usage
from an internet radio station:
wget -U MPlayer --header 'Icy-MetaData: 1' -St1 'https://stream.r-a-d.io/main.mp3'
# wait until the show is over, then abort the download
python3 -m defrostir main.mp3
from a loopstream recording:
python3 -m defrostir -i ls Loopstream-2021-10-02_22.53.44.mp3
notes
versions x.y.1 have chardet as a dependency, while x.y.2 have charset-normalizer (preferred) and are otherwise identical; setup.py rls will produce both to avoid a pypi package selection bug
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
defrostir-1.2.1.tar.gz
(19.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file defrostir-1.2.1.tar.gz.
File metadata
- Download URL: defrostir-1.2.1.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcd5f593a7b05c616618a325aa3336fc98d2a7288849670044c7fdf260280a0b
|
|
| MD5 |
75ab7eacbceb25299f57934dd8ae4882
|
|
| BLAKE2b-256 |
12b4d0640734c8b728e874112e0e95f246811530a19a23635981c960cfa02cbd
|
File details
Details for the file defrostir-1.2.1-py2.py3-none-any.whl.
File metadata
- Download URL: defrostir-1.2.1-py2.py3-none-any.whl
- Upload date:
- Size: 17.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.14.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
294a24979bfafa2f07eee6864da1cd0e2364b23a65664fd73b295f722d7a27b1
|
|
| MD5 |
b9aee244b4622e7a441f4a25221f953a
|
|
| BLAKE2b-256 |
cee4e4cd4074be86a5e67670fb78c75d83c74960d1006de37e2bbf59ee29f0f0
|