GStreamer: Difference between revisions
| imported>Malteneuss No edit summary |  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. | ||
| Line 74: | Line 74: | ||
| </syntaxhighlight> | </syntaxhighlight> | ||
| == Troubleshooting == | |||
| ==== erroneous pipeline: no element "filesrc" ==== | |||
| In some cases while creating a shell using "mkShell" or "writeShellApplication" just setting the "runtimeInputs" is not enough. It's necessary to manually set the "GST_PLUGIN_SYSTEM_PATH_1_0" environment variable.<ref>https://discourse.nixos.org/t/how-to-use-gst-plugins/6345</ref> | |||
| Adding the following export to your script, sets "gstreamer" and "gst-plugins-base" and "gst-plugins-good" paths. Similarly you can add any other "gst-plugins" package as well. | |||
| <syntaxhighlight lang="shell"> | |||
| export GST_PLUGIN_SYSTEM_PATH_1_0="${gst_all_1.gstreamer.out}/lib/gstreamer-1.0:${gst_all_1.gst-plugins-base}/lib/gstreamer-1.0:${gst_all_1.gst-plugins-good}/lib/gstreamer-1.0" | |||
| </syntaxhighlight>Note: "gstreamer.out" is the derivative that contains "/lib" directory for that package. | |||