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:20] 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 6: Line 5:
 This method will ensure you normalize as much as possible the audio levels between your files. This method will ensure you normalize as much as possible the audio levels between your files.
  
-The tool is [[https://pypi.org/project/ffmpeg-normalize/|ffmpen 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. 
 + 
 +===== Installation ===== 
 + 
 +Create a dedicated user, make it part of the **media** group so that it can access your media library: 
 +<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 
 +</code> 
 + 
 +==== Usage ==== 
 + 
 +there! ready to go: 
 +<code> 
 +cd /data/Media/<your folder> 
 +ffmpeg-normalize *.mkv -c:a aac 
 +</code> 
 + 
 +check [[https://pypi.org/project/ffmpeg-normalize/#detailed-options|here]] and [[https://github.com/slhck/ffmpeg-normalize/wiki/examples|here]] for more information and examples. 
 + 
 +this will write all the normalized videos to a subfolder called **normalized** now check them carefully before replacing originals!
  
-TBD 

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