Hate resurrecting an old thread, but I am trying to use the following batch file to create my thumbnails on my windows system, and I am getting empty tbn images with mkv files and tbn images that are hundreds of mb with avi files:
Code:
setlocal
set FFMPEG=C:\Users\Kevin\Stuff\ffmpeg\ffmpeg.exe
set THUMB="%%~di%%~pi%%~ni.tbn"
set MAKETHUMB=%FFMPEG% -i "%%i" -f mjpeg -t 0.001 -ss 10 -y %THUMB%
set FILES="*.mkv" "*.avi"
for /r %1 %%i in ( %FILES% ) do if not exist %THUMB% %MAKETHUMB%
endlocal
I am passing "F:\Test" as the %1 parameter in the above file
I have even tried just using the following and I am still get empty tbn files for mkv an huge tbn files for avi:
Code:
for %i in (*.avi) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 5 -y "%~ni.tbn"
Code:
for %i in (*.mkv) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 5 -y "%~ni.tbn"
Any ideas?
::EDIT:: Well I just upgraded to the latest static build of ffmpeg for windows and my avi problem is fixed, but the mkv tbn is still coming up as zero.