gst-plugin: Allow the instantiation/configuration of multiple plugins
This patch allows the instantiation and the configuration of multiple GStreamer plugins from the commandline.
One plugin will be instantiated for each gst.codec=VALUE
found in
the command line arguments.
A plugin can be instantiated by codec, with the default gstreamer
encoder: gst.codec=CODEC_TYPE
(eg, mjpeg/vp8/vp9/...), or with a
codec and an encoder gst.codec=CODEC_TYPE=ENCODER
.
A plugin can be configured in different ways (see WantOption()):
- without prefix (eg,
framerate=30
) for all the plugins, - with the GStreamer property prefix:
-
gst.prop=VALUE
for all the GStreamer plugins, -
gst.CODEC_TYPE.prop=VALUE
for all the GStreamer plugin using the given codec type, -
gst.ENCODER.prop=VALUE
for the GStreamer plugin using the given encoder.
-
The split between ParseOptions
and UpdateOptions
will later allow live
plugin reconfiguration (ie, without fully relaunching the
spice-streaming-agent).
Signed-off-by: Kevin Pouget kpouget@redhat.com