Add new 'proxy' element to stream data between pipelines
authorNirbheek Chauhan <nirbheek@centricular.com>
Wed, 3 Feb 2016 18:38:57 +0000 (00:08 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Wed, 7 Feb 2018 17:19:36 +0000 (22:49 +0530)
commit3f7e29d5b32f20dff75a58186533e40bb0ed4081
tree72a09d2b4fca7cef8b5f2df4984e9a12d45fb107
parentc5c69dcc55d180b8d271ba58e1425cb82c6c81b0
Add new 'proxy' element to stream data between pipelines

This keep-it-simple plugin is useful when you want to pipe arbitrary
data to a different pipeline within the same process. Some advantages
over appsink/appsrc, the inter elements, etc:

* Ease of use. Buffers, events, and caps are transmitted as-is without
  copying or serialization.
* Enables zerocopy (especially DMABUF) transparently without any
  special-casing.
* Enables usage with sinks or elements that are unreliable and may
  throw errors and need re-initialization, such as a network sink, a
  USB device sink (v4l2), etc.
* Transmits arbitrary data, not just audio/video/subs
* Can easily implement 1 producer pipeline -> N dynamic consumer
  pipelines within a single process when combined with the `tee`
  element.

All queries, events, buffers, and buffer lists are proxied. State
changes, clocks, and base times for the two pipelines are independent
since the upstream and downstreams continue to be different pipelines.

https://bugzilla.gnome.org/show_bug.cgi?id=788200
configure.ac
gst/meson.build
gst/proxy/Makefile.am [new file with mode: 0644]
gst/proxy/gstproxy-priv.h [new file with mode: 0644]
gst/proxy/gstproxy.c [new file with mode: 0644]
gst/proxy/gstproxysink.c [new file with mode: 0644]
gst/proxy/gstproxysink.h [new file with mode: 0644]
gst/proxy/gstproxysrc.c [new file with mode: 0644]
gst/proxy/gstproxysrc.h [new file with mode: 0644]
gst/proxy/meson.build [new file with mode: 0644]