split broken icecast recordings into separate mp3s
Project description
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
Project details
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.1.2.tar.gz
(18.5 kB
view details)
Built Distribution
File details
Details for the file defrostir-1.1.2.tar.gz
.
File metadata
- Download URL: defrostir-1.1.2.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3fbf6d35aa74128ec9ec740c8d546442f6ee1a7faf642fe6e5f4ed290fae0b8 |
|
MD5 | f70268e25671242b07e54e541adcaf17 |
|
BLAKE2b-256 | 5434079b3d943d789446086709a2ca88e420df46b06168416e405d0aa4a6b9e7 |
File details
Details for the file defrostir-1.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: defrostir-1.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 17.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd9fc526cb197121d9b9991d246a7d5ae97761e01356c5dd551515d3e5a9d759 |
|
MD5 | 58cffedc694b7f072e3d4d479f3f75b0 |
|
BLAKE2b-256 | 3e9df58c84ab4b0d2a8ea36a53237d8c3abb4b65a897118b349676fd28829faa |