losslessaudiocut
Cut audio recordings without re-encoding them: what you keep decodes to exactly the same samples as the original. No quality loss, no generation loss, and it is fast because nothing is decoded and encoded again.
pip install losslessaudiocut
The wheels contain everything, including the FFmpeg decoders the analysis uses; nothing else needs to be installed.
Supported: WAV, AIFF, FLAC, Ogg Vorbis/Opus/Speex, MP3, MP4/M4A/3GP/MOV (AAC, ALAC, Opus, AMR, PCM), AC-3 and Matroska/WebM (Opus). The format is detected from the content, and the output has the format of the input.
Command line
The package installs the lac command (also python -m losslessaudiocut):
lac info talk.mp3
lac cut talk.mp3 -o short.mp3 --delete 0..12.5 --delete 29:00..
lac cut talk.mp3 -o part2.mp3 --keep 10:00..20:00 --tag title="Part 2" --tag track=2
lac detect talk.mp3 # suggests pauses to delete and track starts
lac --help
Python
import losslessaudiocut as lac
info = lac.info("talk.mp3")
print(info.format, info.duration, info.tags)
# Delete ranges and join the rest ...
lac.cut("talk.mp3", "short.mp3", delete=["0..12.5", "29:00.."])
# ... or keep ranges, joined in the given order, and set tags.
result = lac.cut("talk.mp3", "part2.mp3", keep=[(600, 1200)],
tags={"title": "Part 2", "track": "2"})
print(result.exact, result.kept)
# Remove every suggested pause.
pauses = lac.detect("talk.mp3").pauses
lac.cut("talk.mp3", "tight.mp3", delete=[p.range for p in pauses])
Times are seconds (90, 90.5) or strings ("1:30", "1:02:03.5",
"@44100" for sample frame 44100). A range is (start, end) or
"START..END"; leave a side out (None, "5:00..") for the start or end
of the file. Results give positions in sample frames of the source, plus
seconds.
Lossy formats can only be cut at frame boundaries (MP3: 1152 samples).
Where a requested range does not fall on one, it is widened, never
shortened; result.kept tells exactly what the file contains and
result.exact whether that is what you asked for.
lac.decode(path, range) returns the decoded samples (32-bit float), with
the same decoders and timeline as cutting, e.g. to check a cut:
lac.decode("part2.mp3") against lac.decode("talk.mp3", (600, 1200)).
Errors: ValueError for malformed or out-of-range arguments,
losslessaudiocut.Error when a file cannot be read or written.
FFmpeg and security updates
The wheels link a minimal FFmpeg statically (Windows: next to the module):
only the audio decoders, no demuxers, network or other parts. When FFmpeg
publishes a new point release, usually with security fixes, a new package
version with it follows within a week. pip install -U losslessaudiocut
picks it up; lac.ffmpeg_version() shows the bundled version.
More
The program, its desktop GUI and the design: see the
repository.
License: GPL-3.0-or-later; the bundled FFmpeg is LGPL-2.1-or-later (its
license and the source link are inside the wheel, in
losslessaudiocut/ffmpeg/).
Metadata
Release files for losslessaudiocut 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 87.3 MB
Release files / losslessaudiocut-1.2.0-cp310-abi3-win_arm64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-win_arm64.whl |
|---|---|
| Size | 27.2 MB |
| Tags | CPython 3.10 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c756729eba0790eacbfa123dbc85fed7bfe23b68ebb1a02835ab34a69e0bbc25
|
|
BLAKE2b-256 checksum How to use checksums |
cc5abc522e2d3cbe40bd6036b6347673ab8c66ef1b909189187d2297a4baf81d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / losslessaudiocut-1.2.0-cp310-abi3-win_amd64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-win_amd64.whl |
|---|---|
| Size | 50.2 MB |
| Tags | CPython 3.10 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
be2f136073f98ed3a55c1a4ab408f75a779b0118ad343b9ed8309d90143b319b
|
|
BLAKE2b-256 checksum How to use checksums |
a20dd5047392caa2696c6a008976e880b1787a9fdff0ed47f58689fec5eac30a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / losslessaudiocut-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 2.7 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e4fd5a2097cab45c56b2165682e3e4809f5d517981085391a39e3fdc9215c1e7
|
|
BLAKE2b-256 checksum How to use checksums |
5a87325a37277faf1c831aa250725e164ab2b46165e8e19ea82d9249286de3ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / losslessaudiocut-1.2.0-cp310-abi3-manylinux_2_28_aarch64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 2.6 MB |
| Tags | CPython 3.10 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
887f096f6b4c7df350afbb7fe1179b2a5fbf1c6fee44b9aa147a31087793ccce
|
|
BLAKE2b-256 checksum How to use checksums |
5d80643402af7f58cd17e7915c6a1e2fc2022895ab912877f47389e9a8537a6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / losslessaudiocut-1.2.0-cp310-abi3-macosx_11_0_x86_64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 2.4 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
089867e7f3a9722fd84b77ccd9b277b3fd5957f2a21fdca66bece1d5f1c59d01
|
|
BLAKE2b-256 checksum How to use checksums |
ddabd7075377ace6af7ce27b96f2c4cd7b2e2604e0bed0fcec2106eb0342ff4a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / losslessaudiocut-1.2.0-cp310-abi3-macosx_11_0_arm64.whl
| Download URL | losslessaudiocut-1.2.0-cp310-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 2.2 MB |
| Tags | CPython 3.10 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
40df2905d1c0a78b4608b01a1bc4019ed7670f714c4b8afc4fefb004efbfbe74
|
|
BLAKE2b-256 checksum How to use checksums |
c55dda122f6fc451d9d76743479aafd31e759659e835cefef524f3d7f9269a4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for losslessaudiocut 1.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 6 files in this release have been uploaded with provenance metadata.
Attestation for losslessaudiocut-1.2.0-cp310-abi3-win_arm64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.