Post Processing Script hangs
Posted: March 5th, 2014, 3:41 am
Hi, I am trying to run a post processing script which uses FFMpeg to remux .mkv files into .mp4 files. All it does is copy both the audio and video codecs and put the content in a new container then delete the .mkv version.
The script hangs, the SAB interface shows "Running script", ffmpeg is shown as still running but using no system resources and SAB will no longer process any more scripts on subsequent files. If I click on the Script Log button in the SAB interface it shows as blank.
I was wondering if anyone could show me the error that my script is causing or tell me where the log files for scripts are kept (or if there is a way of seeing script progress while the script is running). The script is as follows:
The script hangs, the SAB interface shows "Running script", ffmpeg is shown as still running but using no system resources and SAB will no longer process any more scripts on subsequent files. If I click on the Script Log button in the SAB interface it shows as blank.
I was wondering if anyone could show me the error that my script is causing or tell me where the log files for scripts are kept (or if there is a way of seeing script progress while the script is running). The script is as follows:
Code: Select all
set ffmpeg="C:\Program Files\FFMPEG\bin\ffmpeg.exe"
set name=%3
set name=%name:"=%
set dirname=%1
set dirname=%dirname:"=%
for /R "%dirname%" %%f in (*.mkv) do (
%ffmpeg% -i "%%f" -vcodec copy -acodec copy "%dirname%\%name%.mp4"
del "%%f")
exit