Skip to main content

No project description provided

Project description

YAACS


Convert your audiobooks to .opus for smaller files at equivalent quality.

Features

  • Automatic bitrate selection
  • (opt-in) Automatic audiobook discovery
  • Automatic cover image discovery
  • Automatic chapter discovery
  • (opt-in) Automatic deletion of input files
  • Multiprocessing to increase conversion throughput

Installation

YAACS depends on the following packages for conversion:

  • mkvtoolnix for CUE file chapter parsing
  • FFmpeg for metadata detection and conversion
  • opustags for cover image insertion.

However, YAACS does not depend on any python packages. As such, it can be installed via your preferred Python package manager, or simply run directly without installation.

Usage

$ yaacs -h
usage: yaacs [-h] [-v] [-t THREADS] [(-i INPUT [INPUT ...] | -a LOCATION [LOCATION ...]) [-x] [-o OUTPUT] [-m METADATA | -M METADATACHAPTER] [-b BITRATE] [-c CUESHEET] [-I COVER]]+

A Script to convert audiobooks to .opus

options:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -t THREADS, --threads THREADS
                        Number of subprocesses to spawn to convert books. Not specifying or 0 will default to core count.
  -i INPUT [INPUT ...], --input INPUT [INPUT ...]
                        Locations of files for conversion. If this is a directory, all audio files recursively contained will be merged into one file.
  -a LOCATION [LOCATION ...], --auto LOCATION [LOCATION ...]
                        Locations to auto-convert. Will recursively search for subfolders which contain no other directories and contain audio file(s). These files will be converted/merged.
  -x, --delete          Delete input files after conversion. DO NOT USE THIS IF YOU DON'T HAVE COMPLETE CONFIDENCE IN THIS TOOL.
  -o OUTPUT, --output OUTPUT
                        Set output file name. Defaults to the name of the first input file with a .opus extension
  -m METADATA, --metadata METADATA
                        FFMETADATA file containing desired final metadata. Use -M if the metadata also contains chapter information
  -M METADATACHAPTER, --metadatachapter METADATACHAPTER
                        FFMETADATA file containing desired final metadata along with chapter data. Use -m to preserve automatic chapter detection.
  -b BITRATE, --bitrate BITRATE
                        Set bitrate for output file. Defaults to 32kbps for inputs under 192kbps, and 192kbps for inputs above that threshold.
  -c CUESHEET, --cuesheet CUESHEET
                        Set location for cuesheet file to read for chapter data. Only works if the input is a singular file.
  -I COVER, --cover COVER
                        Explicitly set final cover file. Will attempt to autodiscover cover if not set.
$ yaacs -a ~/Audiobooks -x # Automatically detect all audiobooks (folders with no subfolders containing audio files) in ~/Audiobooks and convert them. Delete after conversion.
$ yaacs -i Warbreaker -m warbreaker.ffmeta -b 64k # Convert the audiobook within the Warbreaker folder at a bitrate of 64kbps. Use the warbreaker.ffmeta file for metadata, but still auto-detect chapters.

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

yaacs-1.3.2.tar.gz (12.6 kB view details)

Uploaded Source

Built Distribution

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

yaacs-1.3.2-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file yaacs-1.3.2.tar.gz.

File metadata

  • Download URL: yaacs-1.3.2.tar.gz
  • Upload date:
  • Size: 12.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for yaacs-1.3.2.tar.gz
Algorithm Hash digest
SHA256 4d6b61420eb7df911473bc258ecdf6aa8b7dbf589cf628f29bffd0f0a73d25f0
MD5 526ac4fafcfd5e941de57a93d077de6e
BLAKE2b-256 6e3e182bc42fbb8f826303373e1dfdc81b32f77df26f60a708a8b5d5332ea10d

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaacs-1.3.2.tar.gz:

Publisher: python-publish.yml on rgarber11/YetAnotherAudiobookConverterScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yaacs-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: yaacs-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for yaacs-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f273ba368134c9e5ab5dc9c73c85f270abe14c1a18bb3418b29f9edfdf83a4bb
MD5 e74e0828426cf634992ecc7014e20c20
BLAKE2b-256 d15594d68434d9f14f08fec48864b4427dbb244e8096900aa3231ff69fe7b567

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaacs-1.3.2-py3-none-any.whl:

Publisher: python-publish.yml on rgarber11/YetAnotherAudiobookConverterScript

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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