VideoHelp Forum




+ Reply to Thread
Results 1 to 2 of 2
  1. Hi, please help the cat thanks

    Code:
            for /f "tokens=1,2 delims=^=" %%g in ('ffprobe64bit333.exe -hide_banner -loglevel fatal -pretty -select_streams v:0 -show_streams     "%cd%\avsInput.avs"') DO (
    	if "%%~g"=="duration_ts" set "NumberOfFrame=%%~h")
            
           set /a "NumerOfTotalFrames=%NumberOfFrame%/2"
    the output of my NumberOfFrame is 3531, but 3531 / 2 = 1765,5 that set /a round to 1765

    I wonder: is there a way to tell to the set /a that have to be round "over" so that the final result is 1766 [and not 1765, I need 1766] ? tHANKS
    Quote Quote  
  2. Add 1 before dividing by 2.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!