mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-18 16:16:28 +00:00
fc3cefc38c
Add relationmeta2onvifmeta which convert relation metas to ONVIF metas and add them to buffer. Used relation metas are removed from buffer. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1464>
44 lines
691 B
Python
44 lines
691 B
Python
import os
|
|
|
|
DIRS = [
|
|
'audio',
|
|
'generic',
|
|
'mux',
|
|
'net',
|
|
'text',
|
|
'utils',
|
|
'video',
|
|
]
|
|
|
|
# Plugins whose name is prefixed by 'rs'
|
|
RS_PREFIXED = [
|
|
'audiofx',
|
|
'closedcaption',
|
|
'file',
|
|
'onvif',
|
|
'webp',
|
|
'videofx',
|
|
'webrtc',
|
|
'png',
|
|
'tracers',
|
|
'rtp',
|
|
'rtsp',
|
|
'inter',
|
|
'relationmeta',
|
|
]
|
|
|
|
OVERRIDE = {
|
|
'ahead': 'textahead',
|
|
'flavors': 'rsflv',
|
|
'wrap': 'textwrap',
|
|
}
|
|
|
|
|
|
def iterate_plugins():
|
|
for d in DIRS:
|
|
for name in os.listdir(d):
|
|
if name in RS_PREFIXED:
|
|
name = "rs{}".format(name)
|
|
else:
|
|
name = OVERRIDE.get(name, name)
|
|
yield name
|