          Full path to the video to return the frame count from.
  
      Returns
      -------
      int: The number of frames in the given video file.
      """
      assert isinstance(filename, str), "Video path must be a string"
  
      cmd = [im_ffm.get_ffmpeg_exe(), "-i", filename, "-map", "0:v:0", "-f", "null", "-"]
      logger.debug("FFMPEG Command: '%s'", " ".join(cmd))
 
</s> remove     cmd = [im_ffm.get_ffmpeg_exe(), "-i", filename, "-map", "0:v:0", "-f", "null", "-"]
 </s> add     cmd = [im_ffm.get_ffmpeg_exe(), "-i", filename, "-map", "0:v:0"]
    if fast:
        cmd.extend(["-c", "copy"])
    cmd.extend(["-f", "null", "-"])
 </s> remove     This counts the frames, displaying a progress bar to keep the user abreast of progress
 </s> add     :func:`count_frames` can return an accurate count (albeit fairly slowly) or a possibly less
    accurate count, depending on the :attr:`fast` parameter. A progress bar is displayed. </s> remove     Unfortunately there is no guaranteed accurate way to get a count of video frames
    without iterating through the video.
 </s> add     There is no guaranteed accurate way to get a count of video frames without iterating through
    a video and decoding every frame. </s> remove def count_frames(filename):
 </s> add def count_frames(filename, fast=False):
    int:
        The number of frames in the given video file.

    Example
    -------
    >>> filename = "/path/to/video.mp4"
    >>> frame_count = count_frames(filename)
          Full path to the video to return the frame count from.
  
      Returns
      -------
    int:
        The number of frames in the given video file.

    Example
    -------
    >>> filename = "/path/to/video.mp4"
    >>> frame_count = count_frames(filename)
      """
      assert isinstance(filename, str), "Video path must be a string"
  
      cmd = [im_ffm.get_ffmpeg_exe(), "-i", filename, "-map", "0:v:0", "-f", "null", "-"]
      logger.debug("FFMPEG Command: '%s'", " ".join(cmd))
keep keep keep keep replace keep keep keep keep keep
 lib.logger - Remove newlines from log messages 
lib/image.py