Does gstreamer seem to be misidentifying plugins?

I use GI, Gstreamer with gst-plugin with miniconda
gst-plugins-bad 1.22.9 h2895b6a_0 conda-forge
gst-plugins-base 1.22.9 h001b923_0 conda-forge
gst-plugins-good 1.22.9 h62ce35e_0 conda-forge
gst-plugins-ugly 1.22.9 h4a73213_0 conda-forge
gstreamer 1.22.9 hb4038d2_0 conda-forge

everything is work when i used in my python script.I then packaged the program using gstreamer as a.exe program with pyinstaller and the attached directory, and when I ran it again, a large number of warning messages popped up in the command box. It looks like you want to load some torch DLLS as well as shapely DLLS as gstreamer plug-ins,the information is:

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.171: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\Shapely.libs\geos-6b1079a4984256c248239e1f26956380.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.173: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\Shapely.libs\geos_c-6732cae22b6a1e81c2d7203d169f2870.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.266: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\bin\fbgemm.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.299: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\c10_cuda.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.430: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\cudnn_cnn_infer64_8.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.449: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\cudnn_cnn_train64_8.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.615: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\fbgemm.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.622: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\shm.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.624: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\torch.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.627: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\torch_cpu.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.639: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\torch_cuda.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

(swim_detect.exe:89252): GStreamer-WARNING **: 23:59:26.643: Failed to load plugin ‘C:\Code\Python\new_swim\dist\swim_detect_internal\torch\lib\torch_python.dll’: 找不到指定的模块。
This usually means Windows was unable to find a DLL dependency of the plugin. Please check that PATH is correct.
You can run ‘dumpbin -dependents’ (provided by the Visual Studio developer prompt) to list the DLL deps of any DLL.
There are also some third-party GUIs to list and debug DLL dependencies recursively.

It’s confusing, why would gstreamer consider these dynamic link libraries to be its plugins and try to load them? How can I avoid this problem, or how can I turn off these warning messages (these loads don’t seem to affect my application running)

You have to set gstreamer lib path in env because gstreamer plugins have dependencies on gstreamer libs. You can do this in your code as well. Not sure how to do in python. I do it in C++ code.

GStreamer will look at every dll/so/dylib in the paths specified by GST_PLUGIN_PATH/GST_PLUGIN_SYSTEM_PATH. If those shared libraries fail to load, you will get that error.