\mp3gain.exe ".\%%~nI_audio_only.mp3" > "working\%%~nI.bat"Įcho echo Reconstructing normalized video from component parts. \ffmpeg.exe -v 0 -i ".\%%I" -q:a 0 -map a ".\%%~nI_audio_only.mp3" -vcodec copy -map 0:v ".\%%~nI_video_only.mp4" > "working\%%~nI.bat"Įcho echo Normalizing extracted audio with Mp3Gain. Setlocal enableextensions enabledelayedexpansionĮcho echo Unpacking audio and video from %%I. I'm using the following: C:\Vids\ffmpeg.exe ( ffmpeg version git-ccc7120 )Ĭ:\Vids\mp3gain.exe ( mp3gain version 1.4.6 )Ĭreate a C:\Vids\normalize.bat and put this in there: echo off C:\Vidsĭownload the latest - they're free as of that I've checked. I find I can process 5 concurrent normalizations, but it's subject to the available hard disk space if you want to try more at once.Ĭreate the folders - C:\Vids can be anywhere, but have the original, working and completed folders inside. I extract the audio as mp3 VBR and let mp3gain do its magic on it and then put it back. Rather it can be a springboard for someone to tune/tweak for their own purposes. I do this because I can specifically control ffmpeg and mp3gain every step of the way and do things that mp4gain or ffmpeg-normalize might not be able to.īy all means, it's not fool-proof, nor is it optimized. This one will process much quicker than MP4GAIN, I found out. (I tried MP4GAIN, but the trial period ended in like 1 hour). I've written a DOS batch script in my Windows 10 that can take multiple *mp4 files (and yes - with spaces in the name) and normalize the volume using mp3gain. ![]() ![]() I'd like to share this with anyone and everyone who are interested as this site has helped me a lot to get me to this point. ![]() I've resorted to writing my own from scratch to handle MP4's. I've seen a Windows solution like what I've produced here, created by someone else many years ago - but I don't know what it was called, nor where to get it anymore.
0 Comments
Leave a Reply. |