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:
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%
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:
for %i in (*.avi) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 5 -y "%~ni.tbn"
for %i in (*.mkv) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 5 -y "%~ni.tbn"
::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.