old_contents: # -*- coding: utf8 -*-
  
  from __future__ import absolute_import, division, print_function
  
  import sys
  import time
  
  from .detectors import CommonDetector
  from .features.extractors import VectorBased
  from .features.extractors.colours import LumaExtractor, RgbExtractor
  from .plotters.event import (
      BaseEventPlotter,
      BillsDtrEventPlotter,
      MeanDiffEventPlotter,
      BillsMeanEventPlotter,
      MeanAngleEventPlotter,
      SadEventPlotter,
      FfmpegLikeEventPlotter,
      SadFfmpegEventPlotter,
  
  
      SigmaThresholdEventPlotter,
     # StaticThresholdVoteEventPlotter
  )
  
  
  class SimpleDetector(
          SadFfmpegEventPlotter,
          RgbExtractor,
          # LumaExtractor,
          # Histogram,
          # RgbBwExtractor,
          VectorBased,
          CommonDetector,
  ):
      pass
  
  
  FILE_NAME_BASE = '/run/media/w495/A2CAE41FCAE3ED8B/home/w495/Videos/'
  #
  DEFAULT_FILE_NAME = FILE_NAME_BASE + \
                      'Djadja_Stepa Milicioner_96.hi.und.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'Chelovek-amfibaya_96.lw.und.mp4'
  
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'drones/paris.mp4'
  
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'drones/tulum.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'victoria-global-otsu-256x256.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'Bolshie_Glaza_96.lw.und.mp4'
  
  #
  if __name__ == '__main__':
      detector = SimpleDetector()
  
      # # Получаем имя видео-файла.
      video_file_name = sys.argv[1] if len(sys.argv) > 1 else DEFAULT_FILE_NAME
  
      t1 = time.time()
  
      detector.detect(video_file_name)
  
      t2 = time.time()
      print(t2 - t1)
  
new_contents: # -*- coding: utf8 -*-
  
  from __future__ import absolute_import, division, print_function
  
  import sys
  import time
  
  from .detectors import CommonDetector
  from .features.extractors import VectorBased
  from .features.extractors.colours import LumaExtractor, RgbExtractor
  from .plotters.event import (
      BaseEventPlotter,
      BillsDtrEventPlotter,
      MeanDiffEventPlotter,
      BillsMeanEventPlotter,
      MeanAngleEventPlotter,
      SadEventPlotter,
      FfmpegLikeEventPlotter,
      SadFfmpegEventPlotter,
  
  
      SigmaThresholdEventPlotter,
     # StaticThresholdVoteEventPlotter
  )
  
  
  class SimpleDetector(
          SadFfmpegEventPlotter,
          RgbExtractor,
          # LumaExtractor,
          # Histogram,
          # RgbBwExtractor,
          VectorBased,
          CommonDetector,
  ):
      pass
  
  
  FILE_NAME_BASE = '/run/media/w495/A2CAE41FCAE3ED8B/home/w495/Videos/'
  #
  DEFAULT_FILE_NAME = FILE_NAME_BASE + \
                      'Djadja_Stepa Milicioner_96.hi.und.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'Chelovek-amfibaya_96.lw.und.mp4'
  
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'drones/paris.mp4'
  
  
  DEFAULT_FILE_NAME = FILE_NAME_BASE + \
                      'drones/tulum.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'victoria-global-otsu-256x256.mp4'
  
  # DEFAULT_FILE_NAME = FILE_NAME_BASE + \
  #                     'Bolshie_Glaza_96.lw.und.mp4'
  
  #
  if __name__ == '__main__':
      detector = SimpleDetector()
  
      # # Получаем имя видео-файла.
      video_file_name = sys.argv[1] if len(sys.argv) > 1 else DEFAULT_FILE_NAME
  
      t1 = time.time()
  
      detector.detect(video_file_name)
  
      t2 = time.time()
      print(t2 - t1)
  
subject: fix sad_ffmpeg_event_plotter.