Commit graph

17 commits

Author SHA1 Message Date
Sebastian Dröge e7b3b87757 Add safe bindings for the send API
Including creation of frames from GStreamer buffers.
2021-02-26 11:00:23 +02:00
Luke Moscrop 83962cbb8c Add FFI bindings for NDIlib_send_instance_t and related functions 2021-02-26 11:00:23 +02:00
Sebastian Dröge afc301de3a Port to NDI SDK v4
Most notably this allows the video line stride to be set to 0, in which
case a default value is to be used, and it deprecates selecting NDI
sources by their IP address and because of that we remove the relevant
properties.

Usually the SDK will give an URL instead of an IP address now, so usage
would've been broken anyway.
2020-01-10 12:29:24 +02:00
rubenrua 892e54ac4d Reorder ndisys to reduce complexity 2019-07-30 17:52:15 +02:00
Sebastian Dröge 66d4fd1d90 Move connecting and capturing to separate threads
This ensures that we'll be able to capture every frame even if
downstream of the source is blocking for a moment, and also allows us to
make all operations cancellable.
2019-07-18 15:44:31 +03:00
Sebastian Dröge 34858762f7 Consolidate element properties
stream-name is called ndi-name everywhere in the NDI SDK and documentation
ip is called ip-address everywhere

Rename loss-threshold to timeout and change it to be in milliseconds
instead of iterations.

Add connect-timeout for timeout during connection

Add bandwidth and receiver-ndi-name properties, and initialize the
latter with a reasonable default value.
2019-07-17 11:01:40 +03:00
Sebastian Dröge cd8bca11aa Run everything to rustfmt to give it a consistent indentation 2019-07-15 20:38:00 +03:00
Sebastian Dröge 75eb959c80 Add support for all other video formats 2019-07-15 20:38:00 +03:00
Sebastian Dröge 71d8f7108c Remove unused FFI code 2019-07-11 23:37:35 +03:00
Sebastian Dröge 48f8c498fa Wrap unsafe NDI C API in safe wrappers 2019-07-11 23:25:30 +03:00
Alfonso Rodríguez Pereira 3742f8e776
Merge pull request #29 from sdroege/ndi-windows-linking
Use correct library name for linking on Windows
2019-07-11 11:07:23 +02:00
Sebastian Dröge bd1f8cb7d1 Use NDIlib_find_wait_for_sources() instead of thread::sleep() 2019-07-09 19:27:14 +03:00
Sebastian Dröge 38e39d181e Use correct library name for linking on Windows 2019-07-09 19:26:18 +03:00
rubenrua 6dc39b2dea Fix rust fmt 2019-03-26 17:41:28 +01:00
o-reo 761d7ae7ef FIX: Fixed NDI frames memory leaks 2019-03-01 11:24:54 +01:00
rubenrua b2ec1da345 Fix audio interleave with NDIlib_util_audio_to_interleaved_16s_v2 2018-09-25 11:52:41 +02:00
Daniel Vilar 440a353f93 Publish code in Github 2018-09-18 13:39:34 +02:00
Renamed from gst-plugin-ndi/src/ndisys.rs (Browse further)