WebRTCSink: prefer software encoders

Hi all,

I’m currently testing the webrtcsink element on the Jetson Orin Nano with JP5.1.2. It seems like the “nvv4l2vp8enc0” hardware encoder is being selected by default, but it’s not present on the Orin Nano and thus fails.

Is there a way to prefer software encoders? Or is it possible to change the encoder itself using the “encoder-setup” signal?

Thanks in advance!

You could define the env var: GST_PLUGIN_FEATURE_RANK=nvv4l2vp8enc0:MIN

Or in app using something like this:

    GstRegistry *reg = gst_registry_get ();
    GstPluginFeature *enc = gst_registry_lookup_feature (reg, "nvv4l2vp8enc0");
    gst_plugin_feature_set_rank (enc, GST_RANK_NONE);
    gst_object_unref (enc);

That does the trick. Thanks!