bug in video_processing.py