I've spent the last couple of hours trying to find an answer to this problem and while I did find some people with a similar problem their solutions didn't work for me.
The steps that I've taken so far:
1.Go to Gstreamer installation page and download the installers for "gstreamer-1.0-devel-msvc-x86_64-
1.18.1.msi" and "gstreamer-1.0-msvc-x86_64-1.18.1.msi".
2.Run both installers
3.Open intellij and add the maven dependencies:

4.Trying to run the cameraTest example and getting the error:
After that I tried going to the Path variable and adding "%GSTREAMER_ROOT_X86%\bin" (like it is suggested on the installation guide) but the problem remained I even tried -Djava.library.path="D:\gstreamer\1.0\msvc_x86_64\bin\gstreamer-1.0-0.dll" and still nothing...
Am I missing something obvious? To be honest I'm not that used to working with libraries so I'd appreciate a little help.
Try this or place the DLLs in PATH environment:
-Djava.library.path=D:/gstreamer/1.0/msvc_x86_64/bin
java.library.path property must point to a directory, not a file.
In IntelliJ IDEA you can also add D:/gstreamer/1.0/msvc_x86_64/bin to the module dependencies so that it configures java.library.path automatically for you.