Ensure FD
Ensure GstBuffers memory is file-descriptor backed.
The plugin forwards buffers already fd-backed and copies the others. It uses a custom allocator with a file descriptor pool for better performances.
This plugin is largely inspired by this merge request.
Needed it to use unixfdsink/unixfdsrc with non fd-backed pipelines with gstreamer 1.26.
PTS Reset
This is another follow up for unixfdsrc usage. At the time of writing, if the two pipelines ran with a delay, you may end up with all buffers at the beginning having PTS = 0.
This plugin resets PTS (starts from 0), and increase PTS with buffer duration. It forwards buffers without duration without any changes.
Build plugins
To rebuild the plugin, run the following commands:
cd ensure_fd rm -rf builddir meson setup builddir # meson needs to be installed beforehand. ninja -C builddir