Media Library Assistant and Legacy Media Rescuser for Apple Ecosystem
Project description
Audiotown: The High-Performance Media Rescuer
A lightweight, "Shokunin" grade CLI for standardizing your media library. Optimized for moving legacy files into a high-integrity, Apple-compatible collection.
Performance & Core Features
- Rapid Library Auditing: Built for scale. Scans ~13,000 files in under 60 seconds.
- Lossless Audio Migration: Batch-converts .flac to Apple-friendly .m4a using either ALAC (Lossless) or AAC (High Quality).
- Metadata Integrity: Preserves tags (Artist, Album, Track) and ensures high-resolution artwork is embedded directly into the converted files.
- Smart Deduplication: Avoids redundant processing by identifying existing compliant files.
What’s New v1.11.4: The Video Upgrade
The new --to-video flag transforms Audiotown from an audio tool into a full-scale Media Library Assistant.
-
Video "Upgrade" Capabilities
- Format Normalization: Transcodes legacy AVI, RMVB, and MKV into standardized Apple-safe MP4 containers.
- Intelligent Encoding: Uses H.264/AAC or H.265/AAC configurations.
- Smart Remuxing: If the source streams are already compliant, Audiotown performs a "Lightning Fast" remux (copy) instead of a full transcode to preserve 100% quality.
- 10-bit to 8-bit Correction: Automatically handles the "10-bit H.264" problem by transcoding incompatible yuv420p10le streams to standard 8-bit yuv420p for hardware compatibility.
- Legacy Hardware Support: Optimized for maximum compatibility with iPhone 5s and later.
- Subtitle Preservation: Detects and converts compatible subtitle streams to mov_text for native playback on Apple devices.
-
🛠 Improved UX
- Polished Terminal Output: Enhanced progress tracking and error reporting.
- Refined CLI Logic: Improved handling of edge cases and path-based batching.
-
Quck Start
# audios audiotown convert '/path/to/audio_folder/' --report-path=/another/path/ # videos audiotown convert '/path/to/video_folder/' --to-video=mp4
Prefer a Native macOS Experience?
-
If you want the power of this workflow in a dedicated desktop environment, check out Audiotown Pro. It is a rugged media rescuer designed specifically for the Apple ecosystem.
-
Why use the Pro version?
- Deep Library Auditing: Scan your video and audio collections for actionable metrics: health scores, "Direct Play" readiness, codec compliance, and metadata gaps (languages, release years, etc.).
- Lossless Audio Integrity: Batch-convert FLAC to Apple-compatible M4A using ALAC (Lossless) or AAC. Includes automated high-res artwork embedding.
- Legacy Video Recovery: Seamlessly move AVI, RMVB, MKV, and MP4 files into Apple-safe formats. Features intelligent subtitle handling (including OCR-ready text conversion) to ensure your legacy media actually plays on modern hardware.
- Built for Stamina: Designed to handle thousands of files with the same technical rigor you expect from high-end financial or engineering tools.
-
Get Audiotown Pro on Gumroad
CLI Commands
audiotowncontains three commands:check,statsandconvert. This package requiresffmepginstalled in the system.- To run them, type
auditown checkoraudio statsoraudio convert. - Type
audiotown checkto runcheck. - The command checks if
ffmpegis installed.
- To run them, type
statsacts as an executive assisant for audio media management. Personal media library are often messy. This command starts by searching thefolderrecursively and laser focus ONLY on audio files (filtered by file suffix). It then prints out to the terminal a summary report based on what it finds:- numbers of songs by formats, by encoder types,
- storage usage details,
- what top artists, genres, albums are to me ,
- are they lossless or lossy, and
- detect potential unreadable or corrupt files.
statscan export scanned records into a JSON via--report-pathflag. Default value is.(current directory).convert. It converts all.flacfiles in a folder into lossless (alac) or lossy (aac) versions. An apple lossless encoded.m4afile can be recognized in Apple eco system but not usually for.flacfiles.--report-pathis available inconverttoo. To run itaudiocheck convert /path/to/flacs --encoder=alac --report-path=.. The converted will be exported to a new folderaudiotown_exportin the same folderpath/to/flacs.convertalso supports--dry-runas a tool to preview changes made in a conversion.convertsearches files recursively so I can specify a high-levelfolderlikeMediaormyMediaHub. Try with one ablum folder first.convertsupports--bitratewhen the--encoder=aacis specified. the default bitrate kbps is256k.128kand320kare the other valid inputs.convertby default tries to add artwork into files when converting. It searches forcover.jpgorlibrary.jpgat the root of the folder. if the source file does not contain an artwork, the command attempts to find such file and embed it into the output whenever possible.
convertnow supports a new video transcode flag--to-video=mp4. It tranforms the old AVI files into Apple ready MP4. Output files will be saved under a new subfolder namedaudiotown_exported.
Demos
Installation
- Ensure I have FFmpeg installed on the system. It is the powerhouse that does the conversion and other heavy work like probing
ffprobe. Will need it installed and working. MacOS users can install it via homebrew:brew install ffmpeg. >=3.10.
- Requires
clickandwcwidthlibaries.
# [optional but recommended] set up a virutal env named `my_env`.
python3 -m venv my_env
source my_env/bin/activate
# check python version 3.10+
python --version
# udpate pip
pip install --upgrade pip
pip install audiotown
# help
audiotown
🛠 Usage
Usage: audiotown [OPTIONS] COMMAND [ARGS]...
Options:
--version Show the version and exit.
-h, --help Show this message and exit.
Commands:
check Verify that FFmpeg and dependencies are correctly installed.
convert Convert FLACs in FOLDER to Apple-friendly formats.
stats Stats Dashboard & Insight tool.
Examples
- The simplest way to use
AudioTownis to run it in a folder containing FLAC files:audiotown convert /path/to/album/folder --codec=alac --report-path=/path/to/report/folder --dry-run. The search is recursive.[=po-iu9o0[]\ - . the output files from
audio convertare under the subfolderaudiotown_export/within/path/to/album/folder. - The
/path/to/report/foldercan be.or any specified directories. - use
--dry-runto preview any perceived changes. - The
converttakes onlyflacfiles. It supports:flac --> alacorflac --> aac.--bitratecan be specified forflac --> aac(default:256k)
# 1. show additional help
audiotown
audiotown -h
audiotown --help
# 2. check ffmpeg installation
audiotown check
# 3. show stats of a media folder
cd /path/to/media/folder
audiotown stats .
# alternatively
audiotown stats /path/to/media/folder
audiotown stats /path/to/media/folder --report-path=.
# enable duplicating searching
audiotown stats /path/to/media/folder --find-duplicate --report-path=.
# 4. convert all flac files to alac (default) or aac based formats. logging is controlled by `--report-path`
# . means current directory
audiotown convert . --report-path=.
audiotown convert . --codec=alac --report-path=. --dry-run
audiotown convert . --codec=aac --bitrate=256k --report-path=. --dry-run
# 5. video upgrade. source formats: AVI, RMVB
audiotown convert '/my/path/to/video_folder/' --to-video=mp4 --report-path
Advanced Options
- overview
| Option | Description | Default |
|---|---|---|
--codec |
alac or aac. used with convert. |
alac |
--bitrate |
Bitrate for AAC (128k, 256k, 320k). only useful when --codec=aac |
256k |
--dry-run |
Preview conversion without writing files. used with convert |
disabled |
--find-duplicate |
finds potential duplicate files by parallel comparisions via arist, title and file_name. |
|
| disabled | ||
--report-path |
generates a full log, including a json. work with both convert and stats. |
disabled |
-
Examples
- Run a preview to see what would be converted:
# preview the conversion that will be done to any flac files in `AlbumFolder`. audiotown convert ./AlbumFolder --dry-run
- use
codecand--bitrate. It means the desired codec used for the output.
audiotown convert . --codec=alac audiotown convert . --codec=aac --bitrate=256k audiotown convert . --codec=aac --bitrate=128k
- It does not make sense to specify
bitratefor losslessalacsobitratewill be ignored.
cd /my/media/folder audiotown convert . --codec=alac --bitrate=128k
- find duplicates. the command looks at the metadata like aritst, title, file size and file name. it tries to find a unique key to create duplicate groups/sets.
cd /my/media/folder audiotown stats . --find-duplicate
- video transcoding
🤝 Contributing
Audiotown is a labor of love built to handle my own 100GB+ library. If you find a file that crashes the scan, or if you have an idea to make the Apple-conversion even smoother, I’d love your input!
How to Help:
- Report Bugs: Open an Issue if a specific audio format causes a hiccup. Please include the output of your
meta.txt! - Feature Requests: Want a specific target bitrate or a new "Theme" for the progress bar? Let me know in the Issues.
- Code: Pull Requests are welcome!
- Fork the repo.
- Create a feature branch (
git checkout -b feature/AmazingFeature). - Commit your changes.
- Push to the branch and open a PR.
LICENSE
Licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 audiotown-1.11.5.tar.gz.
File metadata
- Download URL: audiotown-1.11.5.tar.gz
- Upload date:
- Size: 77.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc8c2a4a99ea2eb0c80dc54cbc4e24a267262570feda74947f270780c8da9b4b
|
|
| MD5 |
269138a074c2542ff46b2204f64ced41
|
|
| BLAKE2b-256 |
b455f8cab32d73c3486ad8f55f88a7cf356ca9e6057dc12a59cb559d8ef2c966
|
File details
Details for the file audiotown-1.11.5-py3-none-any.whl.
File metadata
- Download URL: audiotown-1.11.5-py3-none-any.whl
- Upload date:
- Size: 98.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e179d1e90be62e1c05e026f95c65d2db22dc976503a6838e53b42f1721b94e6e
|
|
| MD5 |
9eadf5d862fd6ceb2e06a7b25f9513e4
|
|
| BLAKE2b-256 |
8f124b01f788394477c3fe067179b9305a9c454318707e650c85413833eb9686
|