def export_video(clip, op):
    """ Export the clip to a file.

        clip   - clip to export
        out    - absolute path to the resulting file
        fps    - frames per second for the video
        codec  - codec to use for encoding
    """
    clip.write_videofile(op.out, fps=op.fps, codec=op.codec, preset=op.
        preset, threads=op.threads, ffmpeg_params=op.params)
