The default thumbnail command not worked very well for me in some cases, and was slower than my current one.
I recommend to use these parameters:
-y -ss @thumbtime -i @input -f mjpeg -an -r 1 -vframes 1 -s "@thumbsize" @output