Gstreamer : gst_element_factory_make() : always fail and return NULL : Qt5

后端 未结 1 1905
萌比男神i
萌比男神i 2021-01-23 03:32

My problem is, I cannot create Gstreamer element. I am creating Gstreamer project using Qt 5.2.1

What I am doing :

1条回答
  •  囚心锁ツ
    2021-01-23 03:43

    Try to make a different element and see if that works, e.g.:

    gst_element_factory_make("fakesrc", NULL);
    

    If that also fails then it is likely your environment is not set up correctly. You can try setting the environment variable GST_PLUGIN_PATH to the directory containing your gstreamer plugins.

    0 讨论(0)
提交回复
热议问题