View Single Post
Old 25th May 2018, 21:57   #3099  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,078
Quote:
Originally Posted by manolito View Post
For the FFmpeg stderr thing I think that it is not so important. I will add a quick batch command to my FFmpeg hack to disable and reenable the hack with one mouse click, so users can easily use the peak level check even when they have my plugins installed.

And here it is:

Toggle_Plugins.bat
Code:
@ECHO OFF

REM This batch file toggles the FFmpeg-Mod based plugins for AVStoDVD ON or OFF

REM Both the FFmpeg_VBR plugin and the Wavi_Mod plugin are affected at the same time.
REM To deactivate or activate the plugins separately you need to rename the files
REM "ff_vbr.bat" or "wavi_mod.bat" respectively.


REM You need to use this batch file to deactivate both plugins if you want to use 
REM the new "Audio Peak Level Check" within AVStoDVD.

REM ==================================================================================


REG QUERY HKEY_CURRENT_USER\Software\AVStoDVD /v AppPath >"%temp%\$temp.txt"
FOR /F "usebackq tokens=2,*" %%a IN ("%temp%\$temp.txt") DO SET AppPath=%%b
IF EXIST "%temp%\$temp.txt" DEL "%temp%\$temp.txt"
CLS

:toggleRename
	IF EXIST "%AppPath%\FFmpeg\ffmpeg.exe" IF EXIST "%AppPath%\FFmpeg\_ffmpeg.exe" GOTO deActivate
	GOTO Activate

:deActivate
	COLOR 4F
	IF EXIST "%AppPath%\FFmpeg\ffmpeg.exe.mod" DEL "%AppPath%\FFmpeg\ffmpeg.exe.mod"
	REN "%AppPath%\FFmpeg\ffmpeg.exe" ffmpeg.exe.mod
	REN "%AppPath%\FFmpeg\_ffmpeg.exe" ffmpeg.exe
	ECHO.
	ECHO  ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
	ECHO  Ż                                          ŚÄÄÄæŽ
	ECHO  Ż FFMPEG-MOD PLUGINS ARE NOW DE-ACTIVATED  ³ X ³Ž
	ECHO  Ż                                          ĄÄÄÄŁŽ
	ECHO  ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
	ECHO.
	ECHO  Both the FFmpeg_VBR and the Wavi_Mod plugins are 
	ECHO  now turned OFF...
	ECHO.
GOTO end

:Activate
	COLOR 1F
	IF NOT EXIST "%AppPath%\FFmpeg\ffmpeg.exe.mod" GOTO Notinstalled
	IF NOT EXIST "%AppPath%\FFmpeg\ffmpeg.exe" GOTO Notinstalled
	REN "%AppPath%\FFmpeg\ffmpeg.exe" _ffmpeg.exe
	REN "%AppPath%\FFmpeg\ffmpeg.exe.mod" ffmpeg.exe
	ECHO.
	ECHO  ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
	ECHO  Ż                                          ŚÄÄÄæŽ
	ECHO  Ż FFMPEG-MOD PLUGINS ARE NOW ACTIVATED     ³ ū ³Ž
	ECHO  Ż                                          ĄÄÄÄŁŽ
	ECHO  ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
	ECHO.
	ECHO  Both the FFmpeg_VBR and the Wavi_Mod plugins are
	ECHO  now turned ON...
	ECHO.
GOTO end

:Notinstalled
	CLS
	ECHO.
	ECHO  ÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜÜ
	ECHO  Ż                                          ŚÄÄÄæŽ
	ECHO  Ż ERROR FFMPEG-MOD PLUGINS NOT INSTALLED ! ³ ! ³Ž
	ECHO  Ż                                          ĄÄÄÄŁŽ
	ECHO  ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß
	ECHO.
	ECHO  You need to install the plugins first before you 
	ECHO  can toggle them ON or OFF...
	ECHO.	

:end
	PAUSE
	EXIT
The file can reside anywhere on the HDD, users who want to do an Audio Peak Level Check need to run it before doing so.


Cheers
manolito

Last edited by manolito; 27th May 2018 at 02:41. Reason: Added some safeguards to the batch file
manolito is offline   Reply With Quote