From dbd8ba6051a83b67737cf6b8e8a10f91eecda597 Mon Sep 17 00:00:00 2001 From: Rob Hallam <0504004h@student.gla.ac.uk> Date: Wed, 17 Jul 2024 15:50:37 +0100 Subject: [PATCH] feat: add empty utils.SourceMedia --- pipeline/utils.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pipeline/utils.py diff --git a/pipeline/utils.py b/pipeline/utils.py new file mode 100644 index 0000000..7775cbc --- /dev/null +++ b/pipeline/utils.py @@ -0,0 +1,16 @@ +class SourceMedia(): + """Source media used by eg feature extractors. This is a list of Source objects. + + JSON type schema: + [{ + "source": "/path/to/video.mp4", + "path": "/path/to/video.mp4", + "provider": "FileInputJSON" + }, + { + "source": "http://example.com/video.mp4", + "path": "/path/to/downloaded_video.mp4", + "provider": "InputYAML" + }] + + It should be possible to combine/merge/aggregate multiple SourceMedia into one