the ffmpeg.py file, which contains the vidwriter function, tries to import ffmpeg. Further, many of the functions seem to refer to ffmpeg attributes, but there is no ffmpeg class defined anywhere, and so Python thinks I am trying to access an attribute of the module ffmpeg.