Browse Source

feat: add empty utils.SourceMedia

main
Rob Hallam 4 months ago
parent
commit
dbd8ba6051
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      pipeline/utils.py

+ 16
- 0
pipeline/utils.py View File

@@ -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

Loading…
Cancel
Save