pixop / video-compare

Split screen video comparison tool using FFmpeg and SDL2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hi I Created Multi File Comparer Without Command :)

DarkFrost1989 opened this issue · comments

Hi Firstly Thank You For Created Awsome Comparer, I Also Wanted To Contribute This Good Project,And I Created Multi File Comparer Without Any Command Just Create video-compare.exe Folder, Folder Named "Input" And Put 2 Video Files Here
Like This
HEIZ4Qn.md.png
After Paste This Command For Batch File And Start Batch This Command Automatically Get File And Compare 2 Video
This Code Tested Win 11 22H2 22621.819
Code İs Here And Share For Free :

@echo off
setlocal EnableDelayedExpansion
echo --------------------------------------------------------------
echo               �[1m�[5m�[32mDark Frost \ Dark Blade�[0m
echo --------------------------------------------------------------
set CompareOptions=-m split
set CompareWindowsize=-w 1920x1080
set Supportedformat="*.*"
set InputFolder="Input\"
set InputFolderCD=%cd%\Input\
echo --------------------------------------------------------------
echo            �[1m�[5m�[34mStart File Checking Please Wait�[0m
echo --------------------------------------------------------------
:: commandA && commandB Run commandA, if it succeeds then run commandB
:: commandA || commandB Run commandA, if it fails then run commandB
dir /b /s "Input\" | findstr .>nul && (goto :Compare)
dir /b /s "Input\" | findstr .>nul || (goto :Error)
::::: -------------------------------------------------------------
:Compare
echo --------------------------------------------------------------
echo            �[1m�[5m�[31mStart Video Compare Please Wait�[0m
echo --------------------------------------------------------------
:: Thanks "jeb" For Folder Line Reader "https://stackoverflow.com/questions/31035636/batch-store-command-output-to-a-variable-multiple-lines"
@echo on 
set "output_cnt=0"
for /F "delims=" %%f in ('dir /b "%InputFolder%\%Supportedformat%"') do (
    set /a output_cnt+=1
    set "output[!output_cnt!]=%%f"
)
for /L %%n in (1 1 !output_cnt!) DO echo !output[%%n]!
set Out1=!output[1]!
set Out2=!output[2]!
video-compare %CompareWindowsize% %CompareOptions% "%InputFolderCD%%Out1%" "%InputFolderCD%%Out2%"
@echo off
echo --------------------------------------------------------------
echo            �[1m�[5m�[32mVideo Compare Complete�[0m
echo --------------------------------------------------------------
Goto :Finish
:Error
echo --------------------------------------------------------------
echo      �[1m�[5m�[31mFile Not Found Please Put File "Input" Folder�[0m
echo --------------------------------------------------------------
Goto :Finish
:Finish
Pause

Best Regards
Fatih Çakır