Somehow using installing ros seems to screw up PKG_CONFIG_PATH and it returns only /opt/ros/noetic/lib/pkgconfig
And if I try
gst-inspect-1.0
It will return almost nothing.
Manage to find the path back with
pkg-config --variable pc_path pkg-config
So adding
export PKG_CONFIG_PATH=`pkg-config --variable pc_path pkg-config`:$PKG_CONFIG_PATH
to .bashrc will do the trick.
Now
gst-launch-1.0 playbin uri=file:///path/to/video
will play video faultlessly.
Remark: Be sure to conda deactivate if Anaconda was installed.