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. | mNo edit summary | ||
| (13 intermediate revisions by 3 users not shown) | |||
| Line 3: | Line 3: | ||
| == Installing via nixpkgs == | == Installing via nixpkgs == | ||
| In Nix as in other Linux distributions those tools and plugins are split  into separate packages, which you can bring together with a custom Nix shell environment: | In Nix as in other Linux distributions those tools and plugins are split  into separate packages, which you can bring together with a custom Nix shell environment: | ||
| {{File|3={ | |||
| { | |||
|    description = "A GStreamer development flake"; |    description = "A GStreamer development flake"; | ||
| Line 31: | Line 30: | ||
|        }; |        }; | ||
|      }; |      }; | ||
| } | }|name=/etc/nixos/flake.nix|lang=nix}} | ||
| To activate this environment in your terminal run | To activate this environment in your terminal run | ||
| <syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
| Line 85: | Line 83: | ||
| </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: | |||
| * Using <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> | |||
| *Using the environment variable "<code>GST_PLUGIN_PATH</code>":[[File:Screenshot From 2025-03-28 12-51-31.png|thumb|"Audio and Video Properties" of "Properties" window of nautilus after fix]]{{File|3={ 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/"; | |||
|   }; | |||
| }|name=/etc/nixos/configuration.nix|lang=nix}} {{Evaluate|boot}} | |||
| [[Category:Video]] | |||
| [[Category:Audio]] | |||