{"id":44036045,"url":"https://github.com/sakuzypeng/macinmeter-dynamicrange-tool","last_synced_at":"2026-02-07T20:04:47.054Z","repository":{"id":322376250,"uuid":"1047419817","full_name":"SakuzyPeng/MacinMeter-DynamicRange-Tool","owner":"SakuzyPeng","description":"Rust-based dynamic range (DR) meter compatible with foobar2000. (双语 CLI, precise DR output.)","archived":false,"fork":false,"pushed_at":"2026-01-27T18:25:21.000Z","size":4602,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T03:51:30.611Z","etag":null,"topics":["audio-analysis","cli-tool","cross-platform","dr-meter","dynamic-range","foobar2000","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SakuzyPeng.png","metadata":{"files":{"readme":"README.md","changelog":"changelogs/CHANGELOG_v0.1.1_2025-11-08-14-20.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"docs/SUPPORTED_FORMATS.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2025-08-30T11:34:25.000Z","updated_at":"2026-01-27T18:25:39.000Z","dependencies_parsed_at":"2026-02-07T16:14:22.729Z","dependency_job_id":null,"html_url":"https://github.com/SakuzyPeng/MacinMeter-DynamicRange-Tool","commit_stats":null,"previous_names":["sakuzypeng/macinmeter-dynamicrange-tool"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/SakuzyPeng/MacinMeter-DynamicRange-Tool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SakuzyPeng%2FMacinMeter-DynamicRange-Tool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SakuzyPeng%2FMacinMeter-DynamicRange-Tool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SakuzyPeng%2FMacinMeter-DynamicRange-Tool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SakuzyPeng%2FMacinMeter-DynamicRange-Tool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SakuzyPeng","download_url":"https://codeload.github.com/SakuzyPeng/MacinMeter-DynamicRange-Tool/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SakuzyPeng%2FMacinMeter-DynamicRange-Tool/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29206894,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T17:44:10.191Z","status":"ssl_error","status_checked_at":"2026-02-07T17:44:07.936Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio-analysis","cli-tool","cross-platform","dr-meter","dynamic-range","foobar2000","rust"],"created_at":"2026-02-07T20:04:43.259Z","updated_at":"2026-02-07T20:04:47.049Z","avatar_url":"https://github.com/SakuzyPeng.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MacinMeter DR Tool — Quick Reference\n\n[English](README.md) | [中文](README_CN.md)\n\n![Rust](https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge\u0026logo=rust\u0026logoColor=white)\n![License](https://img.shields.io/badge/license-MIT-blue.svg?style=for-the-badge)\n![Branch](https://img.shields.io/badge/branch-main-green.svg?style=for-the-badge)\n\n**A foobar2000-compatible implementation aiming for better experience**\n\n*Tribute to Janne Hyvärinen's pioneering work*\n\nMacinMeter DR Tool learns and implements the algorithm principles of foobar2000 DR Meter 1.0.3 (foo_dr_meter, by Janne Hyvärinen), striving to provide **accurate DR analysis results** and **faster processing speed**. With streaming architecture design, we hope to bring convenience to users. Performance benchmarks are compared against Dynamic Range Meter 1.1.1 (foo_dynamic_range).\n\n---\n\n## Introduction\n\n- Follows the foobar2000 DR Meter specification, returning both Official DR (rounded) and Precise DR values with SIMD and parallel optimisations.\n- Supports 12+ mainstream audio formats (FLAC, WAV, AAC, MP3, Opus, etc.) with automatic fallback to FFmpeg when needed. See \"Supported Audio Formats\" section for details.\n- Precise DR typically differs from foobar2000 by ±0.02–0.05 dB (window selection \u0026 rounding). A few tracks may drift by ~0.1 dB (e.g., tail-window participation in the top-20% selection or masters with different leading/trailing samples). The tool surfaces boundary warnings so you can cross-check with foobar2000 when results matter.\n\n## Build \u0026 Run\n\n```bash\ncargo build --release                                              # Build\ncargo run --release -- \u003caudio-or-folder\u003e                           # Run directly\n./target/release/MacinMeter-DynamicRange-Tool-foo_dr \u003cpath\u003e        # Launch binary\ncargo test                                                         # Test\n```\n\n## Tauri GUI\n\nThe `tauri-app/` directory provides a Tauri 2 GUI that reuses the same DR engine. Select audio via system dialog and view Official/Precise DR, silence filtering and trim reports.\n\nRun with `cd tauri-app \u0026\u0026 npm install \u0026\u0026 npm run tauri dev`. Build release with `npm run tauri build`. See `docs/tauri_wrapper.md` for details.\n\n## Quick Start\n\n1. **Double-click launch**: Automatically scans the executable directory. Multiple files produce a batch summary, single files generate `\u003cname\u003e_DR_Analysis.txt`.\n\n2. **CLI examples**:\n   ```bash\n   ./target/release/MacinMeter-DynamicRange-Tool-foo_dr song.flac      # Single file\n   ./target/release/MacinMeter-DynamicRange-Tool-foo_dr album_dir      # Folder (4 concurrent files)\n   ```\n\n3. **Verbose logging**: Append `--verbose` to view detailed processing logs.\n\n## Key CLI Options\n\n**Parallel controls** (decode parallelism on by default; multi-file parallelism defaults to 4):\n- `--parallel-threads \u003cN\u003e`: number of decoding threads (default 4)\n- `--parallel-batch \u003cN\u003e`: decode batch size (default 64)\n- `--parallel-files \u003cN\u003e` / `--no-parallel-files`: concurrent files (default 4) / disable\n- `--serial`: disable decode parallelism\n\n**Output control**: `--output \u003cfile\u003e` for single-file reports; batch mode writes to target directory by default.\n\n**Experimental features** (disabled by default):\n- `--trim-edges[=\u003cDB\u003e]`: edge trimming, default −60 dBFS; `--trim-min-run \u003cMS\u003e` (default 60 ms)\n- `--filter-silence[=\u003cDB\u003e]`: window-level silence filtering, default −70 dBFS\n- `--exclude-lfe`: exclude LFE channels from final DR aggregation\n- `--show-rms-peak`: append RMS/Peak diagnostics table in single-file reports\n\n## Output Format\n\nReports list DR per channel, Official DR, Precise DR, plus audio metadata (sample rate, channels, bit depth, bitrate, codec).\n\n### Single File Example\n```markdown\nMacinMeter DR Tool vX.X.X | DR15 (15.51 dB)\naudio.flac | 7:02 | 48000 Hz | 2ch | FLAC\n\n| Channel | DR       | Peak     |\n|---------|----------|----------|\n|  Left   | 14.57 dB | -0.12 dB |\n|  Right  | 16.46 dB | -0.08 dB |\n\n\u003e Boundary Risk (High): 15.51 dB is 0.01 dB from DR15/DR16 boundary\n```\n\n### Batch Example\n```markdown\n## MacinMeter DR Batch Report\n\n**Generated**: 2025-01-29 12:00:00 | **Files**: 5 | **Directory**: /path/to/album\n\n| DR | Precise | File |\n|----|---------|------|\n| 11 | 10.71 | track01.flac |\n| 12 | 12.15 | track02.flac |\n| 13 | 12.64 | track03.flac * |\n| 16 | 15.51 | track04.flac |\n| 15 | 15.19 | track05.flac |\n\n*LFE excluded\n\n### Summary\n\n| Metric  | Value      |\n|---------|------------|\n| Total   | 5          |\n| Success | 5 (100%)   |\n\n---\n*MacinMeter DR Tool vX.X.X*\n```\n\n**Markers**: `*` = LFE excluded · `†` = Silent channels excluded\n\n## Accuracy \u0026 Compatibility\n\n- Multichannel (≥3 ch) supported; aggregation matches foobar2000: arithmetic mean of per-channel DR over all non-silent channels, rounded to nearest integer.\n- Optional LFE exclusion (`--exclude-lfe`): effective only with channel layout metadata. Per-channel DRs are still listed.\n- AAC converted from WAV often raises Precise DR by ≈0.01–0.05 dB; other lossy codecs generally decrease or match.\n\n## Performance Summary\n\nFor detailed benchmarks, see [docs/BENCHMARKS.md](docs/BENCHMARKS.md).\n\n| Platform | Dataset | Throughput |\n|----------|---------|----------:|\n| macOS · M4 Pro | 1.6 GB single file | ~725 MB/s |\n| macOS · M4 Pro | 69 FLACs (1.17 GB) | ~1168 MB/s |\n| Windows · i9-13900H | 69 FLACs (1.17 GB) | ~568 MB/s |\n\n**Tips**: Use release builds; tune `--parallel-threads` and `--parallel-batch` for large files.\n\n---\n\n## Supported Audio Formats\n\nFor details, see [docs/SUPPORTED_FORMATS.md](docs/SUPPORTED_FORMATS.md).\n\n| Category | Formats | Decoder |\n|----------|---------|---------|\n| Lossless | FLAC, ALAC, WAV, AIFF, PCM | Symphonia |\n| Lossy | AAC, OGG Vorbis, MP1, MP3, Opus | Symphonia / songbird |\n| Video Codec | AC-3, E-AC-3, DTS, DSD | FFmpeg (auto) |\n| Containers | MP4/M4A, MKV, WebM | Smart routing |\n\n**FFmpeg Installation**: macOS `brew install ffmpeg` · Windows `winget install Gyan.FFmpeg` · Linux package manager\n\n---\n\n## License \u0026 Acknowledgements\n\n**MIT License** - See [LICENSE](LICENSE) for details.\n\nFor legal compliance, third-party notices, and disclaimer, see [docs/LEGAL.md](docs/LEGAL.md).\n\n---\n\n## Related Links\n\n- **Reference Implementation**: foobar2000 DR Meter 1.0.3 (foo_dr_meter)\n  - **Author**: Janne Hyvärinen\n  - **Official**: https://foobar.hyv.fi/?view=foo_dr_meter\n- **Performance Benchmark**: Dynamic Range Meter 1.1.1 (foo_dynamic_range)\n  - **Based on**: TT Dynamic Range Offline Meter from the Pleasurize Music Foundation\n\n---\n\n**Built for Professional Audio Production**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakuzypeng%2Fmacinmeter-dynamicrange-tool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsakuzypeng%2Fmacinmeter-dynamicrange-tool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsakuzypeng%2Fmacinmeter-dynamicrange-tool/lists"}