Package Details: ffmpeg-normalize 1.33.1-2

Git Clone URL: https://aur.archlinux.org/ffmpeg-normalize.git (read-only, click to copy)
Package Base: ffmpeg-normalize
Description: Normalize loudness of audio and video files using FFmpeg
Upstream URL: https://github.com/slhck/ffmpeg-normalize
Keywords: audio ffmpeg normalization
Licenses: MIT
Submitter: nicoulaj
Maintainer: willemw
Last Packager: willemw
Votes: 9
Popularity: 1.43
First Submitted: 2019-04-13 20:49 (UTC)
Last Updated: 2025-09-03 10:18 (UTC)

Latest Comments

1 2 3 4 Next › Last »

willemw commented on 2025-09-03 09:57 (UTC)

@npreining: Thanks. Will add it.

It would be nice if there are some official packaging guidelines around using "uv".

npreining commented on 2025-09-03 09:41 (UTC) (edited on 2025-09-03 09:43 (UTC) by npreining)

The package fails to build if uv has already some managed python packages installed.

You must call

uv venv --system-site-packages --no-managed-python

to ensure that the system provided python is used, otherwise the one in .local/share/uv/python/ is used.

Adding this --no-managed-python ensures that the system python is used for creating the venv, and then the tests run through.

brainmue commented on 2025-09-02 19:52 (UTC)

I can't confirm that at the moment. It worked for me with version 0.8.13-1. But I didn't have anything from ux installed beforehand. Neither the Python package nor the normal ux, and that was the whole problem for me. Now that it's there, it works with pamac and also with makepkg.

willemw commented on 2025-09-02 19:20 (UTC)

I can confirm. Does not build with the older "uv" 0.8.13-1. Does build with "uv" 0.8.14-1.

willemw commented on 2025-09-02 18:57 (UTC)

Also successfully built the package with pamac-cli. Although pamac-cli skipped running check(), which it should.

I think uv_build is built into "uv". Maybe with "uv" version 0.8.14 the package will build in Manjaro.

I have corrected the prepare() mentioned below, but I probably won't add it to the PKGBUILD file.

brainmue commented on 2025-09-02 16:46 (UTC)

@willemw

I tested a few things again and revisited my initial idea, because Python itself does not recognise uv_build on my system either.

$ python
Python 3.13.7 (main, Aug 15 2025, 12:34:02) [GCC 15.2.1 20250813] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import uv_build as backend
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    import uv_build as backend
ModuleNotFoundError: No module named 'uv_build'

After that, I have now actually entered the dependency python-uv-build in your current PKGBUILD.

And after that, the build worked without any problems.

So I would suggest that, if you have no objections, you add the dependency.

brainmue commented on 2025-09-02 16:28 (UTC)

@willemw

Thanks for trying so quickly and for your help The prepare led to a new error, but that doesn't matter because I also deleted my build directory and still get the same error.

==> Beginne prepare()...
Warnung: Fehler beim Löschen von ./: Das Argument ist ungültig
Lösche ./.all-contributorsrc
Lösche ./.editorconfig
Lösche ./.git-blame-ignore-revs
Lösche ./.gitchangelog.rc
Lösche ./.gitchangelog.tpl
Lösche ./.github
Lösche ./.gitignore
Lösche ./.pre-commit-config.yaml
Lösche ./CHANGELOG.md
Lösche ./CLAUDE.md
Lösche ./DEVELOPERS.md
Lösche ./Dockerfile
Lösche ./LICENSE.md
Lösche ./README.md
Lösche ./completions
Lösche ./docs-api
Lösche ./docs
Lösche ./mkdocs.yml
Lösche ./pyproject.toml
Lösche ./pytest.ini
Lösche ./src
Lösche ./tests
Lösche ./uv.lock
==> FEHLER: Ein Fehler geschah in prepare().
    Breche ab...

Perhaps importantly, I am using Manjaro, but updated to Sunday's version. I am also installing the package with pamac.

willemw commented on 2025-09-02 05:37 (UTC) (edited on 2025-09-02 17:57 (UTC) by willemw)

@brainmue, @asm0dey:

I cannot reproduce the errors. Tried it in a clean chroot build environment and on a fresh install. ffmppeg-normalize migrated to "uv", a newer Python package manager.

If you can, as a test, add this to the PKGBUILD file and then build again:

EDIT

prepare() {
  rm -rf $pkgname-$pkgver/dist                  
}

Otherwise, try to update the system and delete the build cache files (~/.cache/yay/ffmpeg-normalize or /var/tmp/pamac-build-weiller/ffmpeg-normalize).

asm0dey commented on 2025-09-01 22:01 (UTC)

For me it fails the following way:

❯ makepkg -f
==> Making package: ffmpeg-normalize 1.33.1-1 (2025-09-02T00:00:50 CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found ffmpeg-normalize-1.33.1.tar.gz
==> Validating source files with sha512sums...
    ffmpeg-normalize-1.33.1.tar.gz ... Passed
==> Extracting sources...
  -> Extracting ffmpeg-normalize-1.33.1.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
Building wheel (uv build backend)...
Successfully built dist/ffmpeg_normalize-1.33.1-py3-none-any.whl
==> Starting check()...
Using CPython 3.12.3
Creating virtual environment at: .venv
Activate with: source .venv/bin/activate
Resolved 1 package in 1ms
Prepared 1 package in 4ms
Installed 1 package in 2ms
 + ffmpeg-normalize==1.33.1 (from file:///home/finkel/.cache/yay/ffmpeg-normalize/src/ffmpeg-normalize-1.33.1/dist/ffmpeg_normalize-1.33.1-py3-none-any.whl)
/home/finkel/.cache/yay/ffmpeg-normalize/src/ffmpeg-normalize-1.33.1/.venv/bin/python: No module named pytest

brainmue commented on 2025-09-01 19:38 (UTC)

First of all, thank you for this great project. I use it very often and am completely satisfied with it. Thank you for all your hard work.

Unfortunately, the current version (1.33.1-1) causes an error when I compile it.

==> Beginne build()...
Building wheel...
Traceback (most recent call last):
  File "<string>", line 8, in <module>
    import uv_build as backend
ModuleNotFoundError: No module named 'uv_build'
  × Failed to build `/var/tmp/pamac-build-weiller/ffmpeg-normalize/src/ffmpeg-normalize-1.33.1`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `uv_build.build_wheel` failed (exit status: 1)

      hint: This error likely indicates that `ffmpeg-normalize@1.33.1` depends on `uv_build`, but doesn't declare it as a build
      dependency. If `ffmpeg-normalize` is a first-party package, consider adding `uv_build` to its `build-system.requires`. Otherwise,
      either add it to your `pyproject.toml` under:

      [tool.uv.extra-build-dependencies]
      ffmpeg-normalize = ["uv_build"]

      or `uv pip install uv_build` into the environment and re-run with `--no-build-isolation`.
==> FEHLER: Ein Fehler geschah in build().
    Breche ab...

Is it possible that the dependency on python-uv-build is missing here?