From 1acab165419bf34fc7b3b57548dc5d461a5a6e31 Mon Sep 17 00:00:00 2001 From: Rob Hallam <0504004h@student.gla.ac.uk> Date: Sun, 11 Aug 2024 16:42:35 +0100 Subject: [PATCH] feat: add Producer superclass above VideoProducer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This pvaes the way for parts of the pipeline that do not produce videos, such as JSON, images, clips etc TODO: rename module video_producers → producers --- pipeline/video_producers.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pipeline/video_producers.py b/pipeline/video_producers.py index 338816d..fb02c0e 100644 --- a/pipeline/video_producers.py +++ b/pipeline/video_producers.py @@ -7,10 +7,15 @@ import tempfile class VideoProducer(ABC): """Video producer interface.""" +class Producer(ABC): + """Generic producer interface.""" def __init__(self, features): - pass + """All producers should take a list of features as input""" def produce(self): - pass + """All Producers should produce something!""" + +class VideoProducer(Producer): + """Video producer interface.""" class FfmpegVideoProducer(VideoProducer):