thread for ffmpeg and temp dir cleaner