Commit Graph
64 Commits
Author SHA1 Message Date
Samad 3d197ee024 replaygain: use a yaml code-block for the docs config example 2026-07-15 22:22:07 +01:00
Samad 4ccdcc90c9 replaygain: add metaflac backend
Add a MetaflacBackend that computes ReplayGain for FLAC files with metaflac --add-replay-gain and reads the values back with --show-tag. Only FLAC is supported. Includes docs, a changelog entry, and tests.
2026-07-15 22:22:07 +01:00
Šarūnas Nejus ae3a2e5729 Fix redirect URLs 2026-03-06 11:28:29 +00:00
Šarūnas Nejus 441c838387 Fix broken URLs 2026-03-06 11:28:29 +00:00
Šarūnas Nejus 3d0d032987 Replace http URLs with https 2026-03-06 11:28:29 +00:00
m_igashi 545e7eb0b6 refactor: simplify CommandBackend and improve documentation
- Remove auto-detection of command tools, require explicit command config
- Simplify __init__ method by removing redundant else branch
- Reorganize docs with separate sections for mp3gain, aacgain, mp3rgain
- Fix CVE reference (CVE-2021-34085 is fixed in mp3gain 1.6.2)
- Update command option description per review feedback
2026-01-18 10:52:41 +01:00
m_igashi 683da049a0 style: format replaygain.rst with docstrfmt 2026-01-16 16:20:45 +01:00
m_igashi ebd0e70012 Add mp3rgain support to ReplayGain command backend
mp3rgain is a modern Rust rewrite of mp3gain that provides:
- CLI-compatible drop-in replacement for mp3gain
- Support for both MP3 and AAC/M4A formats (like aacgain)
- Fixes for CVE-2021-34085 (Critical, CVSS 9.8) and CVE-2019-18359 (Medium)
- Memory-safe implementation in Rust
- Works on modern systems (Windows 11, macOS Apple Silicon)

Changes:
- Add mp3rgain to the command search list (prioritized first)
- Update format_supported() with more robust command name detection
  using os.path.basename() and startswith() instead of substring matching
- Update documentation with installation instructions

See: https://github.com/M-Igashi/mp3rgain
2026-01-14 01:47:45 +01:00
Šarūnas Nejus ab5acaabb3 Reformat all docs using docstrfmt 2025-08-10 16:25:05 +01:00
Šarūnas Nejus 769dcdc88a Docs: fix linting issues 2025-08-10 16:16:02 +01:00
Šarūnas Nejus 7bbd215efc Update all docs with Poetry 2024-06-10 13:10:16 +01:00
luzpaz 8419149c7a Fix various typos 2023-08-09 21:26:15 -04:00
wisp3rwind 3eb49fca2e replaygain: clarify docs for overwrite/force and actually respect it correctly
The code used to always check the 'overwrite' config value, while that
should only apply during imports. The manual 'replaygain' command has it's
own '-f' flag.

The logic for this flag was changed quite a few times recently, see

https://github.com/beetbox/beets/pull/3816
https://github.com/beetbox/beets/issues/3872
https://github.com/beetbox/beets/pull/3890

but apparently we (me and @ybnd) never really got it right...
If it is some comfort, the logic was never correct in the first place.
2022-01-22 14:00:32 +01:00
ybnd 93101e7ea6 Disable replaygain parallelism during import 2020-12-21 19:19:20 +01:00
ybnd b39df01d35 Add to documentation 2020-01-30 20:31:12 +01:00
Samuel Nilsson 60c174101f ffmpeg replaygain backend: Only calculate replaygain for audio stream. Fixed documentation for backend option. 2019-07-29 10:32:19 +02:00
Zsin Skri a9f70f8151 apply suggested improvements
Apply improvements suggested in GitHub PullRequest #3065:
- be idiomatic
  - 0 is falsy
  - check enum equality, not identity
  - mutate list by constructing a new one
- improve documentation
  - fix a typo
  - do not mention deprecation of a config option
2019-07-26 01:02:03 +02:00
Zsin Skri fbc8cc484d update replaygain target level documentation
- document `r128_targetlevel`
- explain difference between `targetlevel` and `r128_targetlevel`
- deprecate `method` option: use `targetlevel` instead.
2019-07-22 13:42:26 +02:00
Zsin Skri f9ff56f496 improve wording in the ffmpeg replaygain backend
This commit mostly addresses feedback:
- remove some unused parenthesis
- fix a typo
- expand some docstrings
- document that ffmpeg is usually easy to install
2019-07-21 01:18:49 +02:00
Zsin Skri c3af5b3763 replaygain: add ffmpeg backend
Add replaygain backend using ffmpeg's ebur128 filter.

The album gain is calculated as the mean of all BS.1770 gating block powers.
Besides differences in gating block offset, this should be equivalent to a
BS.1770 analysis of a proper concatenation of all tracks.

Just calculating the mean of all track gains (as implemented by the bs1770gain
backend) yields incorrect results as that would:
- completely ignore track lengths
  - just using length in seconds won't work either (e.g. BS.1770 ignores
    passages below a threshold)
- take the mean of track loudness, not power

When using the ffmpeg replaygain backend to create R128_*_GAIN tags, the
targetlevel will be set to -23 LUFS. GitHub PullRequest #3065 will make this
configurable.
It will also skip peak calculation, as there is no R128_*_PEAK tag.

It is checked if the libavfilter library supports replaygain calculation. Before
version 6.67.100 that did require the `--enable-libebur128` compile-time-option,
after that the ebur128 library is included in libavfilter itself. Thus we
require either a recent enough libavfilter version or the `--enable-libebur128`
option.
2019-07-19 21:54:47 +02:00
Samuel Nilsson b8b99d9396 Merge branch 'master' into replaygain 2019-06-08 16:15:27 +02:00
FichteFoll aa31fea037 Update a lot of URLs to use HTTPS
*All* URLs were checked manually, but only once per domain!

I mostly concerned myself with URLs in documentation rather than source
code because the latter may or may not have impactful changes, while the
former should be straight forward.

Changes in addition to simply adding an s:

- changed pip and pypi references as their location has changed
- MPoD (iOS app) url redirects to Regelian, so I replaced those
- updated homebrew references

Notable observations:

- beets.io does have HTTPS set up properly (via gh-pages)
- beatport.py uses the old HTTP url for beatport
- as does lyrics.py for lyrics.wikia.com
- https://tomahawk-player.org/ expired long ago, but the http page
  redirects to https regardless
- none of the sourceforge subdomains have https (in 2019!)
2019-06-05 03:11:49 +02:00
Carl Suster 2e0230789f docs: fix some markup issues and typos 2019-04-27 12:43:13 +10:00
Samuel Nilsson 1619761bd6 Updated docs with per_disc ReplayGain configuration. 2019-02-06 09:38:03 +01:00
nichobi 37d918a19e docs: restore replaygain option for ffmpeg backend 2019-01-25 15:48:49 +01:00
nichobi b7f75878b0 docs: remove references to bs1770gain for #3127 2019-01-24 16:07:44 +01:00
Jack Wilsdon 5ad16983d4 Fix miscellaneous typos 2018-10-09 01:11:06 +01:00
Adrian Sampson b28e0b43ff Merge pull request #2778 from ylep/replaygain-options
Add --force, --write and --nowrite options to replaygain plugin
2018-01-02 14:50:27 -05:00
Yann Leprince 1b247dffff Document new options to the replaygain sub-command 2018-01-02 12:34:34 +01:00
Yann Leprince 8975234cd8 Add version requirement for bs1770gain to the documentation 2018-01-02 10:54:13 +01:00
Michal Koutenský 8168a88a7f update replaygain docs with info about r128 2017-05-17 21:58:41 +02:00
Fabrice Laporte 53029a0ed6 edit docs for replaygain audio tools backend 2016-02-08 00:48:00 +01:00
Adrian Sampson 821c5bf3df Documentation pass for #1398 2015-04-09 17:06:35 -07:00
jmwatte f1f7094938 fix bs1770gain for windows and exceptionally big albums 2015-04-09 17:18:26 +02:00
jmwatte da4a5d0797 fix bs1770gain link 2015-03-06 22:28:59 +01:00
jean-marie winters f376d3c2a8 Merge branch 'bs1770gainsupport' of https://github.com/jmwatte/beets into bs1770gainsupport 2015-03-06 22:05:45 +01:00
jmwatte 0d70db3966 Update replaygain.rst 2015-03-06 20:36:06 +01:00
Adrian Sampson 8113c7ba85 Roll back whitespace changes from #1343 2015-03-03 10:41:30 -08:00
jean-marie winters 5bc8ef7009 fix some formating 2015-03-02 22:11:33 +01:00
jean-marie winters 72c5db8876 add doc, clean-up code 2015-03-02 15:38:33 +01:00
Arturo R 60b1819db0 Stop applying mp3gain directly to files. Fixes #1316
Update docs to remove non-existent `apply` option.
2015-02-09 12:51:27 -08:00
Adrian Sampson d77ac45fef Fix up docs, changelog for #1070 2014-11-09 18:49:56 -08:00
Francesco Rubino e4dfd23092 Fix to documentation after merge of upstream repo 2014-11-09 14:50:26 +00:00
Francesco Rubino be43f629bf Merge branch 'master' of https://github.com/sampsyo/beets
Conflicts:
	docs/plugins/replaygain.rst
2014-11-09 14:48:32 +00:00
Francesco Rubino 4bf17486eb Fixed line lengths, typo in documentation. 2014-11-09 10:29:46 +00:00
Fabrice Laporte f7ecb9cbae doc: emphasize options names by using bold font instead of fixed width 2014-11-07 22:13:25 +01:00
Francesco Rubino 8af5b0e6c3 Added backed audiotools to replaygain module and updated documentation 2014-11-07 18:14:56 +00:00
Adrian Sampson 930581ac99 Finish the pass over all plugin docs 2014-10-30 22:42:11 -07:00
Fabrice Laporte b922abef06 docs: remove space before colon 2014-10-28 23:23:44 +01:00
Fabrice Laporte 2cd76b6714 docs: add plugin name in "how to configure" sentences 2014-10-28 23:23:10 +01:00