optimize getting video screenshot