video accurate analyse with ffmpeg in thread