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.2.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.2.tar.gz.
File metadata
- Download URL: defrostir-1.2.2.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 |
3597ec0e9f234a43432f89c9d2c98b10aa43d1a7e82489a7baba74b62401bb6c
|
|
| MD5 |
fb094fd5f31ada286ad393faff0c0e7f
|
|
| BLAKE2b-256 |
102137a8dec823c502b00b03a478e9d644f37b7da6e5ff2b4b5d5f64ad574839
|
File details
Details for the file defrostir-1.2.2-py2.py3-none-any.whl.
File metadata
- Download URL: defrostir-1.2.2-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 |
0f68ccd75a302180e7f39318a5d964c4e9be8571d2e1e6d14025f50dfeabdb94
|
|
| MD5 |
019778ebf55b53f192c8bb755598bdfe
|
|
| BLAKE2b-256 |
46cdbff2b40d457a14ad9980f446920c0d195f76f5d531705c0eb2227aee7da6
|