View Single Post
Old 23rd December 2015, 15:26   #17  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
DOS GURU assistance needed for above script, [EDIT: Oops CLI GURU, if Groucho2004 is watching {I dont wanna be bitch slapped again} ]

this BAT batch template, need to detect and return ERRORLEVEL from ffmpeg call
Code:
BAT_TMPT=("""
    "C:\BIN\ffmpeg.exe" -i "___AVS___"   "___OUT_FILE___.MP4"    
    Pause                   REM Comment out if required (Precede Pause with REM)
""")
I just cannot remember anything about that stuff, any suggestions ?

Could synthesize error by using either RT_FileDelete(AVI) or RT_FileDelete(AVS) immediately before RT_Call line.

EDIT: Above not so much necessary as I forgot that RT_Call can only return SUCCESS status whether process started, and
not any return value from that process (we can only return a single item to avisynth, not 2 or more).
I shall try to find a way to access returned value, and try to complete RT_Stats mods and publish v2.0 RT_Stats soon.
Would still be helpful though if someone can post above ERRORLEVEL solution.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 23rd December 2015 at 16:30.
StainlessS is offline   Reply With Quote