26th November 2022, 17:55
|
#196
| Link
|
FishmanMod Android Dev
Join Date: Apr 2004
Location: Somewhere else, maybe Arizona Bay
Posts: 1,143
|
Quote:
Originally Posted by manolito
Thanks Fishman for the kind words...
Maybe a short note about how I modified the original script to remove the default low cutoff frequeny of 14 kHz because I believe that the Fraunhofer codec handles HF up to 18 kHz just fine:
@ECHO off
REM Muss im Console Modus kompiliert werden
SET FF_DRIVE=%~d0
SET FF_PATH=%~p0
%FF_DRIVE%
CD "%FF_PATH%"
SET ORIGINAL=%*
ECHO.%ORIGINAL% | %SYSTEMROOT%\system32\FIND /C "libfdk_aac" /I
IF ERRORLEVEL 1 goto quit
SET ORIGINAL=%ORIGINAL:!=_$$§§$$_%
SETLOCAL EnableDelayedExpansion
FOR /L %%a IN (0,1,9) DO SET ORIGINAL=!ORIGINAL: -vbr:a:%%a 4 = -vbr:a:%%a 4 -cutoff 18000 !
FOR /L %%a IN (0,1,9) DO (
FOR %%b IN (128 160 192 224 256 320 384 448 512 576 640 768 960 1152 1344 1536) DO (
SET ORIGINAL=!ORIGINAL: -b:a:%%a %%bk = -b:a:%%a %%bk -cutoff 18000 !
)
)
Setlocal DisableDelayedExpansion
SET ORIGINAL=%ORIGINAL:_$$§§$$_=!%
:quit
_ffmpeg.exe %ORIGINAL% 2>&1
From the FFmpeg Wiki: https://trac.ffmpeg.org/wiki/Encode/AAC
Note: libfdk_aac defaults to a low-pass filter of around 14kHz (?details). If you want to preserve higher frequencies, use -cutoff 18000. Adjust the number to the upper frequency limit only if you need to; keeping in mind that a higher limit may audibly reduce the overall quality.
I use this setting for some time now without ever experiencing any problms.
Cheers
manolito
|
Thank You kind sir....
__________________
"Cinderella story, out of nowhere,
former greenskeeper, now about
to become the Masters champion.
It looks like a mirac- it's in the hole!"
|
|
|