merge common services to videoutils.py, update quality strategy for synophoto