|
@@ -7,10 +7,15 @@ import tempfile |
|
|
|
|
|
|
|
|
class VideoProducer(ABC): |
|
|
class VideoProducer(ABC): |
|
|
"""Video producer interface.""" |
|
|
"""Video producer interface.""" |
|
|
|
|
|
class Producer(ABC): |
|
|
|
|
|
"""Generic producer interface.""" |
|
|
def __init__(self, features): |
|
|
def __init__(self, features): |
|
|
pass |
|
|
|
|
|
|
|
|
"""All producers should take a list of features as input""" |
|
|
def produce(self): |
|
|
def produce(self): |
|
|
pass |
|
|
|
|
|
|
|
|
"""All Producers should produce something!""" |
|
|
|
|
|
|
|
|
|
|
|
class VideoProducer(Producer): |
|
|
|
|
|
"""Video producer interface.""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class FfmpegVideoProducer(VideoProducer): |
|
|
class FfmpegVideoProducer(VideoProducer): |
|
|