@requires_executable('<STR_LIT>')<EOL>def cut_video(in_file,<EOL>out_file,<EOL>start=None,<EOL>end=None,<EOL>vcodec=None,<EOL>acodec=None,<EOL>log_level='<STR_LIT:info>',<EOL>print_cmd=False,<EOL>**kwargs):
options = {'<STR_LIT>': log_level}<EOL>if vcodec is None:<EOL><INDENT>options['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if acodec is None:<EOL><INDENT>options['<STR_LIT>'] = '<STR_LIT>'<EOL><DEDENT>if start:<EOL><INDENT>options['<STR_LIT>'] = start<EOL><DEDENT>else:<EOL><INDENT>start = <NUM_LIT:0><EOL><DEDENT>if end:<EOL><INDENT>options['<STR_LIT:t>'] = end - start<EOL><DEDENT>convert_video(in_file, out_file, print_cmd, **options)<EOL>
Cut a clip from a video.

    Args:
        in_file (str): Input video filename.
        out_file (str): Output video filename.
        start (None or float): Start time (in seconds).
        end (None or float): End time (in seconds).
        vcodec (None or str): Output video codec, None for unchanged.
        acodec (None or str): Output audio codec, None for unchanged.
        log_level (str): Logging level of ffmpeg.
        print_cmd (bool): Whether to print the final ffmpeg command.