View Full Version : Write total frames
juGGaKNot
16th June 2009, 14:05
echo AVIsource("%mypath%\%mymovie%.avi",audio=false) >> "%mypath%\@tempX264\%mymovie%4.avs"
echo WriteFile("%mypath%\@tempX264\frame.txt", "Duration") >> "%mypath%\@tempX264\%mymovie%4.avs"
"%mypath%\bin\ffmpeg.exe" -i "%mypath%\@tempX264\%mymovie%4.avs"
set /p myframes=<"%mypath%\@tempX264\frame.txt"
What should i use there to get the total number of frames
I need to use it for grep
"%mypath%\bin\grep.exe" -U "encoded %myframes%" "%mypath%\@log\5.firstpass.txt" >> "%mypath%\Final_Movie_X264.rtf"
To find the last "encoded x frames at x bitrate" for logging.
THNX, cheers.
J_Darnley
16th June 2009, 14:51
WriteFileStart("file.txt", "framecount")
Couldn't you just grep for "encoded [0-9]\+ frames at [0-9]\+ bitrate" ?
juGGaKNot
16th June 2009, 14:56
WriteFileStart("file.txt", "framecount")
Couldn't you just grep for "encoded [0-9]\+ frames at [0-9]\+ bitrate" ?
Hmm i will
thnx.
juGGaKNot
17th June 2009, 07:37
Wow, it works great in all areas, thnx.
set hiecho=echo The PC WILL NOT Shutdown after encoding!
%hiecho% 2>&1 | "%myfiles%\tee.exe" "%mypath%\@tempX264\@log\1.shutdown.txt"
echo You will use %btrate% bitrate 2>&1 | "%myfiles%\tee.exe" "%mypath%\@tempX264\@log\2.bitrate.txt"
echo Encoding started at %now% and finished at %now2% 2>&1 | "%myfiles%\tee.exe" "%mypath%\@tempX264\@log\5.totaltime.txt"
echo.
"%myfiles%\grep.exe" -U "Encoding started at [0-9:0-9]\+ PM and finished at [0-9:0-9]\+ PM" "%mypath%\@tempX264\@log\5.totaltime.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\cpuz.exe" -txt=log
echo. >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo Hope you had fun encoding the juGGaKNot Way >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo This software is FREE, all apps used to make it are open source, do NOT pay for it. >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo Any donations are wellcomed, contact me for any reasons at : >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo juggaknot_X@yahoo.com >> "%mypath%\%movielog%.txt"
echo #HLAE, #AirWalk, #AirWalk-Media, #ddevils on quakenet >> "%mypath%\%movielog%.txt"
echo 389792458 on ICQ, juGGaKNot_X on Yahoo messanger >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo Visit Us At www.AdvancedFX.org, Visit Me At www.AirWalk-Media.com >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
echo Your system : >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Name" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Codename" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Specification" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Core Stepping" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Technology" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Stock frequency" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Core Speed" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Northbridge" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "^Southbridge" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Command Rate" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Memory Frequency" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Memory Type" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Memory Size" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Channels" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Windows Version" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
echo. >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Number of processors" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Number of threads" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "L2 cache" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
"%myfiles%\grep.exe" -U "Package" "%mypath%\log.txt" >> "%mypath%\%movielog%.txt"
close it.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.