mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-29 15:01:07 +00:00
b062f63ec3
This new crate consists of two elements, jsongstenc and jsongstparse Both these elements can deal with an ndjson based format, consisting for now of two item types: "Buffer" and "Header" eg: {"Header":{"format":"foobar"}} {"Buffer":{"pts":0,"duration":43,"data":{"foo":"bar"}}} jsongstparse will interpret this by first sending caps application/x-json, format=foobar, then a buffer containing {"foo":"bar"}, timestamped as required. Elements further downstream can then interpret the data further. jsongstenc will simply perform the reverse operation.
16 lines
482 B
Python
16 lines
482 B
Python
import os
|
|
|
|
DIRS = ['audio', 'generic', 'net', 'text', 'utils', 'video']
|
|
# Plugins whose name is prefixed by 'rs'
|
|
RS_PREFIXED = ['audiofx', 'closedcaption', 'dav1d', 'file', 'json']
|
|
OVERRIDE = {'wrap': 'rstextwrap', 'flavors': 'rsflv'}
|
|
|
|
|
|
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
|