Elgato Camlink & Gstreamer

Hi,
For further controls it may not work in running gst-launch-1.0 command. We suggest use C sample so that you can receive events and do saving bitstreams or re-launching the pipeline. Here is a C sample for reference:
Camera liveview cannot show up again after repeated open/close the liveview for several times - #23 by DaneLLL

For saving to a file, you can run like:

v4l2src device=/dev/video1 ! 'video/x-raw,format=YUY2' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=NV12' ! omxh264enc ! queue ! mux. flvmux name=mux ! tee name=t ! queue ! rtmpsink location="rtmp://localhost/show/stream live=1" t. ! queue ! appsink

In appsink, you can decide to save the stream or not.