  
  def count_frames(filename):
      """ Count the number of frames in a video file
  
      Unfortunately there is no guaranteed accurate way to get a count of video frames
      without iterating through the video.
  
      This counts the frames, displaying a progress bar to keep the user abreast of progress
  
      Parameters
      ----------
 
</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 def count_frames(filename):
 </s> add def count_frames(filename, fast=False): </s> remove     int: The number of frames in the given video file.
 </s> add     int:
        The number of frames in the given video file.

    Example
    -------
    >>> filename = "/path/to/video.mp4"
    >>> frame_count = count_frames(filename) </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", "-"])

    There is no guaranteed accurate way to get a count of video frames without iterating through
    a video and decoding every frame.
  
  def count_frames(filename):
      """ Count the number of frames in a video file
  
    There is no guaranteed accurate way to get a count of video frames without iterating through
    a video and decoding every frame.
    There is no guaranteed accurate way to get a count of video frames without iterating through
    a video and decoding every frame.
  
      This counts the frames, displaying a progress bar to keep the user abreast of progress
  
      Parameters
      ----------
keep keep keep keep replace replace keep keep keep keep keep
 lib.logger - Remove newlines from log messages 
lib/image.py