GStreamer: Difference between revisions
imported>Malteneuss Extend page |
imported>Malteneuss Add error example |
||
| Line 59: | Line 59: | ||
Description GStreamer core elements | Description GStreamer core elements | ||
Filename /nix/store/p39g1gmpymya3blmqxmf54bpvv3s9z61-gstreamer-1.20.3/lib/gstreamer-1.0/libgstcoreelements.so | Filename /nix/store/p39g1gmpymya3blmqxmf54bpvv3s9z61-gstreamer-1.20.3/lib/gstreamer-1.0/libgstcoreelements.so | ||
... | ... | ||
</syntaxhighlight> | </syntaxhighlight> | ||
or by using it in a pipeline. Here, we could play a video from the local machine with | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
$ gst-launch-1.0 filesrc location=my_video.mp4 ! videoconvert ! autovideosink | $ gst-launch-1.0 filesrc location=my_video.mp4 ! videoconvert ! autovideosink | ||
</syntaxhighlight> | </syntaxhighlight> | ||
If the plugins are not correctly made available to the higher level tools, you'll get an error | |||
<syntaxhighlight lang="nix"> | |||
$ gst-inspect-1.0 filesrc | |||
No such element or plugin 'filesrc' | |||
</syntaxhighlight> | |||
You could try setting the plugin path environment variable manually as described [https://discourse.nixos.org/t/how-to-use-gst-plugins/6345/2 here]. | |||