gst-plugins-rs/ci/utils.py
Mathieu Duponchelle e905299eba generic: expose inter plugin
This new plugin exposes two elements, intersink and intersrc. These act
as wormholes for data in the same process and can be used to forward
data from one pipeline to another.

The implementation makes use of gstreamer-utils' StreamProducer, and
supports dynamically adding and removing consumers, before and after
producers, and changing producer names while PLAYING, both on the sink
and the src.

This initial implementation comes with a small demo, and a few tests.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1257>
2023-08-14 08:13:12 +00:00

42 lines
659 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',
'inter',
]
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