User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
selfhost:audionormalize [2024/02/27 14:25] – [Audio Normalization] willyselfhost:audionormalize [2025/03/19 14:07] (current) – [Audio Normalization] willy
Line 1: Line 1:
- +====== K) Audio Normalization ======
-====== Audio Normalization ======+
  
 It may happen that you have downloaded different episodes of the same serie from different sources for various reasons and that the audio levels are not consistent. It may happen that you have downloaded different episodes of the same serie from different sources for various reasons and that the audio levels are not consistent.
Line 8: Line 7:
 The tool is [[https://pypi.org/project/ffmpeg-normalize/|ffmpeg normalize]] a python script capable of leveraging ffmpeg filters capability. The tool is [[https://pypi.org/project/ffmpeg-normalize/|ffmpeg normalize]] a python script capable of leveraging ffmpeg filters capability.
  
-enable PIP in gentoo for your user ([[gentoo:pip|here]]) then install the tool:+===== Installation ===== 
 + 
 +Create a dedicated user, make it part of the **media** group so that it can access your media library:
 <code> <code>
 + useradd -d /data/daemons/ffmpeg-normalize -m ffmpeg-normalize -g media
 +</code>
 +
 +Now, set **umask 0002** in the //.bashrc// of the user 
 +<file - .bashrc>
 +umask 0002
 +export PATH=/data/daemons/ffmpeg-normalize/.local/bin:$PATH
 +</file>
 +so that any created files are accessible by the //media// groups, and also you add the bin path for the installation later on.
 +
 +enable PIP in gentoo for your user ([[gentoo:pip|here]]), put the following file under **/data/daemons/ffmpeg-normalize/.confg/pip/pip.conf**:
 +<file - pip.conf>
 +[global]
 +break-system-packages = true
 +user = true
 +</file>
 +
 +Then you can install the tool:
 +<code>
 +su - ffmpeg-normalize
 pip install ffmpeg-normalize pip install ffmpeg-normalize
 </code> </code>
 +
 +==== Usage ====
  
 there! ready to go: there! ready to go:
 <code> <code>
 +cd /data/Media/<your folder>
 ffmpeg-normalize *.mkv -c:a aac ffmpeg-normalize *.mkv -c:a aac
 </code> </code>

This website uses technical cookies only. No information is shared with anybody or used in any way but provide the website in your browser.

More information