Skip to main content

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

defrostir-1.2.1-py2.py3-none-any.whl (17.8 kB view details)

Uploaded Python 2Python 3

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

Hashes for defrostir-1.2.1.tar.gz
Algorithm Hash digest
SHA256 bcd5f593a7b05c616618a325aa3336fc98d2a7288849670044c7fdf260280a0b
MD5 75ab7eacbceb25299f57934dd8ae4882
BLAKE2b-256 12b4d0640734c8b728e874112e0e95f246811530a19a23635981c960cfa02cbd

See more details on using hashes here.

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

Hashes for defrostir-1.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 294a24979bfafa2f07eee6864da1cd0e2364b23a65664fd73b295f722d7a27b1
MD5 b9aee244b4622e7a441f4a25221f953a
BLAKE2b-256 cee4e4cd4074be86a5e67670fb78c75d83c74960d1006de37e2bbf59ee29f0f0

See more details on using hashes here.

Release history Release notifications | RSS feed

1.2.2

2 files

This release

1.2.1 This release

2 files

1.1.2

2 files

1.1.1

2 files

1.0.2

2 files

1.0.1

2 files

0.15.2

2 files

0.15.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page