teltek / gst-plugin-ndi

GStreamer NDI Plugin for Linux
GNU Lesser General Public License v2.1
154 stars 27 forks source link

Generate sink pipeline NDI|HX #95

Open SamiDiab opened 2 years ago

SamiDiab commented 2 years ago

Hi guys,

I am trying to generate a sink pipeline similar to the example provided in the Guide:

Audio/Video sink pipeline

$ gst-launch-1.0 videotestsrc is-live=true ! video/x-raw,format=UYVY ! ndisinkcombiner name=combiner ! ndisink ndi-name="My NDI source" audiotestsrc is-live=true ! combiner.audio

But I am trying to generate an NDI|HX sink, to do so I have to include the x264enc but the ndisinkcombiner and the ndisink only take video/x-raw format, how can I use this example to generate NDI|HX sink? is this possible at all ?

sdroege commented 2 years ago

Currently only the source element supports compressed formats.

SamiDiab commented 2 years ago

Thank you for your reply. is there any way we could detect if the NDI source is a compressed format or not ? I have tested on both without any luck to differentiate between them.

sdroege commented 2 years ago

All NDI sources are compressed but unless you use the Advanced SDK and opt-in to get compressed streams on the source element, it will be decoded internally and you get raw data out of the source.