GStreamer: Difference between revisions

The missing plugins workaround was previously discussed in the forum. It wasn't working anymore so I wrote a paragraph about it with the current change that works.
Add fix for nautilus.
Line 85: Line 85:


</syntaxhighlight>Note: "gstreamer.out" is the derivative that contains "/lib" directory for that package.
</syntaxhighlight>Note: "gstreamer.out" is the derivative that contains "/lib" directory for that package.
<references />
==== nautilus: "Your GStreamer installation is missing a plug-in." ====
[[File:Screenshot From 2025-03-28 09-58-50.png|thumb|nautilus: "Your GStreamer installation is missing a plug-in."]]
To fix the issue I found the following solutions, by setting the environment variable <code>GST_PLUGIN_PATH</code>:
* use <code>nix-shell</code>:<syntaxhighlight lang="bash">
nix-shell -p gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-good gst_all_1.gst-plugins-bad gst_all_1.gst-plugins-ugly gst_all_1.gst-libav gst_all_1.gst-vaapi --run "nautilus"
</syntaxhighlight>
* use <code>sudo nano /etc/nixos/configuration.nix</code>:<syntaxhighlight lang="nix" line="1">{ config, pkgs, ... }:
{
  environment.systemPackages = with pkgs; [
    gst_all_1.gstreamer
    gst_all_1.gst-plugins-base
    gst_all_1.gst-plugins-good
    gst_all_1.gst-plugins-bad
    gst_all_1.gst-plugins-ugly
    gst_all_1.gst-libav
    gst_all_1.gst-vaapi
  ];
  environment.variables = {
    GST_PLUGIN_PATH = "/run/current-system/sw/lib/gstreamer-1.0/";
  };
}</syntaxhighlight><syntaxhighlight lang="bash">
sudo nixos-rebuild switch
</syntaxhighlight>A system restart is needed to get the environment variable set system wide.