Sign in to follow this  
Tinhorn

this Batch File will make Movie's Sound Louder

1 post in this topic

Is the sound too low?  my Primos has that problem

You might try this, this Batch File will make Movie's Sound Louder, it don't  hurt the original file

It's need a file off the Internet called "ffmpeg.exe"  
https://ffmpeg.zeranoe.com/builds/

You can guestimate the boost value or there is a way to get the right value with too ffmpeg but right now, just guess


1st
create a folder on the Desktop, maybe called LOUD

2nd
<Copy> the code below and <Paste> it into NotePad (not wordpad or Word, it has to be only TEXT)

NOTE THIS:
The below 3 variables can be changed if needed, see notes below

    set ExtToChange=avi
    set NewExt=mp4
    set Loud=40dB

ExtToChange = the Original movie EXTENSION (e.g. AVI, Mov, mpg, etc)
NewExt      = the Converted movie EXTENSION (e.g. mp4, mpg, mov, etc)
loud        = increase volume (10db is double sound)


3rd
save it in the folder called "VolumeBoost.bat"
(change .txt to .bat)

4th
put ffmpeg.exe in the Folder

5th
copy some movies into the Folder

6th
Double Click "VolumeBoost.bat"
and play the movies and see if the sound is louder


Batch Code is Below:

@ECHO OFF
rem *************************************************************************************
rem *************************************************************************************
rem *************************************************************************************

rem       NOTE   NOTE    NOTE

rem       if you make changes to the settings.....
rem       make sure there are NO SPACES after these 4 variable settings  
rem              ( e.g.   "mp4    "   not allowed )

rem *************************************************************************************
rem *************************************************************************************
rem *************************************************************************************

Rem     The below 3 variables can be changed if needed, see notes below

    set ExtToChange=avi
    set NewExt=mp4
    set Loud=40dB

rem   ExtToChange = the Original movie EXTENSION (e.g. AVI, Mov, mpg, etc)
rem   NewExt      = the Converted movie EXTENSION (e.g. mp4, mpg, mov, etc)
rem   loud        = increase volume (10db is double sound)

rem *************************************************************************************
rem *************************************************************************************
rem ***********      Main Code      *****************************************************
rem *************************************************************************************
rem *************************************************************************************
rem *************************************************************************************

    set start=%date% %time%


    For %%X in (*.%ExtToChange%) do (

        cls
        @Echo.
        @Echo.
             
        ffmpeg  -nostats -i "%%X"  -af "volume=%Loud%" -vcodec copy  "%%X.%NewExt%"


    )

    @Echo Done, deleting temporary files

    if exist "null.%NewExt%" del "null.%NewExt%"
    if exist ffmpeg2pass-0.log del ffmpeg2pass-0.log


    @echo off
        setlocal enabledelayedexpansion
        for %%j in (*.%NewExt%) do (
            set filename=%%~nj
            set filename=!filename:.%ExtToChange%=!

        rem    if not "!filename!"=="%%~nj" ren "%%j" "!filename!%%~xj"
    )


    @Echo.

    @Echo Start: %start%
    @Echo.
    @Echo End  : %date% %time%
    @Echo.
    @Echo.
    @Echo.

pause

 

Share this post


Link to post
Share on other sites
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this