so bitte schön:
https://anonfiles.com/Wdd1L8Weya
sag ob es irgendwelche probleme gibt.
dank loop+shift brauchte ich den 'MultiDropExecuter' hier nicht anwenden.
ordner kann er aber dadurch nicht durchsuchen und verarbeiten...
aber drag & drop sollte kein problem darstellen.
der '_tool'-ordner hat eine abhänigkeit mit dem script...
hier das script für die "KI"-bots...
ist es gut, dass die von mir lernen...?
Code
- @echo off
- :: 2023-02-08
- :: Normalisierungs-Script by HQ-LQ for Neugier
- :: https://gleitz.info/forum/index.php?thread/48532
- cd /d "%~dp0"
- set "xMkvMerge=%~dp0\_tools\MKVToolNix\mkvmerge.exe"
- set "xFFmpeg=%~dp0\_tools\FFmpeg\ffmpeg.exe"
- :: PUSHD "%~dp1"
- cd /d "%~dp1"
- ::-------------------------------------------------------------------------------------------------
- if "%~1"=="" goto :loop_end
- :loop
- @for %%i IN (%*) DO "%xFFmpeg%" -i "%~1" -filter_complex "[0:a]loudnorm=I=-16:TP=-1.5:LRA=11:print_format=summary" -f null x 2> "%~1.txt"
- @for /f "tokens=3" %%a IN ('findstr /C:"Input Integrated" "%~1.txt" ') DO (set II=%%a)
- echo %II% is the Input Integrated
- @for /f "tokens=4" %%a IN ('findstr /C:"Input True Peak" "%~1.txt" ') DO (set ITP=%%a)
- echo %ITP% is the Input True Peak
- @for /f "tokens=3" %%a IN ('findstr /C:"Input LRA" "%~1.txt" ') DO (set ILRA=%%a)
- echo %ILRA% is the Input LRA
- @for /f "tokens=3" %%a IN ('findstr /C:"Input Threshold" "%~1.txt" ') DO (set IT=%%a)
- echo %IT% is the Input Threshold
- @for /f "tokens=3" %%a IN ('findstr /C:"Output Integrated" "%~1.txt" ') DO (set OI=%%a)
- echo %OI% is the Output Integrated
- @for /f "tokens=4" %%a IN ('findstr /C:"Output True Peak" "%~1.txt" ') DO (set OTP=%%a)
- echo %OTP% is the Output True Peak
- @for /f "tokens=3" %%a IN ('findstr /C:"Output LRA" "%~1.txt" ') DO (set OLRA=%%a)
- echo %OLRA% is the Output LRA
- @for /f "tokens=3" %%a IN ('findstr /C:"Output Threshold" "%~1.txt" ') DO (set OT=%%a)
- echo %OT% is the Output Threshold
- @for /f "tokens=3" %%a IN ('findstr /C:"Target Offset" "%~1.txt" ') DO (set TO=%%a)
- echo %TO% is the Target Offset
- "%xFFmpeg%" -i "%~1" -af loudnorm=linear=true:I=-16:tp=-1.5:lra=11:measured_I=%II%:measured_LRA=%ILRA%:measured_tp=%ITP%:measured_thresh=%IT%:offset=%TO%:print_format=summary "%~n1.ac3"
- if exist "%~n1.ac3" ( "%xMkvMerge%" -o "neu\%~n1.mkv" -a !1 "%~1" "%~n1.ac3" )
- shift
- if not "%~1"=="" goto :loop
- :loop_end
- ::-------------------------------------------------------------------------------------------------
- :end
- :: @ping 127.0.0.0 -n 4 >nul
- :: @pause
wer sonnst noch was findet... immer her...
p.s.
schade das der codeblock nicht ein schriftbild verwendet, wo alle zeichen gleich breit sind,
wie z.b. "Consolas" oder ähnlichem...