video_to_slomo.py
def extract_frames(video, outDir):
    """
    Converts the `video` to images.

    Parameters
    ----------
        video : string
            full path to the video file.
        outDir : string
            path to directory to output the extracted images.

    Returns
    -------
        error : string
            Error message if error occurs otherwise blank string.
    """


    error = ""
    print('{} -i {} -vsync 0 {}/%06d.png'.format(os.path.join(args.ffmpeg_dir, "ffmpeg"), video, outDir))
    retn = os.system('{} -i "{}" -vsync 0 {}/%06d.png'.format(os.path.join(args.ffmpeg_dir, "ffmpeg"), video, outDir))
    if retn:
        error = "Error converting file:{}. Exiting.".format(video)
    return error

    Converts the `video` to images.

    Parameters
    ----------
        video : string
            full path to the video file.
        outDir : string
            path to directory to output the extracted images.

    Returns
    -------
        error : string
            Error message if error occurs otherwise blank string.
    
Converts the `video` to images.
Parameters

video : string
full path to the video file.
outDir : string
path to directory to output the extracted images.

Returns

error : string
Error message if error occurs otherwise blank string.
Converts the ` video ` to images . Parameters video : string full path to the video file . outDir : string path to directory to output the extracted images . Returns error : string Error message if error occurs otherwise blank string .
def extract_frames(video, outDir):
    error = ""
    print('{} -i {} -vsync 0 {}/%06d.png'.format(os.path.join(args.ffmpeg_dir, "ffmpeg"), video, outDir))
    retn = os.system('{} -i "{}" -vsync 0 {}/%06d.png'.format(os.path.join(args.ffmpeg_dir, "ffmpeg"), video, outDir))
    if retn:
        error = "Error converting file:{}. Exiting.".format(video)
    return error
def extract_frames ( video , outDir ) : error = "" print ( '{} -i {} -vsync 0 {}/%06d.png' . format ( os . path . join ( args . ffmpeg_dir , "ffmpeg" ) , video , outDir ) ) retn = os . system ( '{} -i "{}" -vsync 0 {}/%06d.png' . format ( os . path . join ( args . ffmpeg_dir , "ffmpeg" ) , video , outDir ) ) if retn : error = "Error converting file:{}. Exiting." . format ( video ) return error
Converts the `video` to images.
Converts the ` video ` to images .
"""
    Converts the `video` to images.

    Parameters
    ----------
        video : string
            full path to the video file.
        outDir : string
            path to directory to output the extracted images.

    Returns
    -------
        error : string
            Error message if error occurs otherwise blank string.
    """
video
outDir