I install gstreamre 1.14.4 from source. The system is like below:
walle@in_dev_autocar:~$ gst-inspect-1.0 nvenc
Plugin Details:
Name nvenc
Description GStreamer NVENC plugin
Filename /usr/lib/gstreamer-1.0/libgstnvenc.so
Version 1.14.4
License LGPL
Source module gst-plugins-bad
Source release date 2018-10-02
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin
0 features:
but I run like below:
walle@in_dev_autocar:~$ gst-launch-1.0 -v v4l2src device=/dev/video1 ! autovideoconvert ! nvenc ! fakesink
WARNING: erroneous pipeline: no element "nvenc"
walle@in_dev_autocar:~$
Why ??
And I can not find nvh264enc plugin.
generix
2
Try
gst-launch-1.0 -v v4l2src device=/dev/video1 ! autovideoconvert ! nvh264enc ! fakesink
I try this
gst-launch-1.0 -v v4l2src device=/dev/video1 ! autovideoconvert ! nvh264enc ! fakesink
the result is like below:
WARNING: erroneous pipeline: no element "nvh264enc"
generix
4
What’s the output of
gst-inspect-1.0 --gst-debug-level=4 nvenc
The output of gst-inspect-1.0 --gst-debug-level=4 nvenc is:
0:00:00.000257842 148 0x11250c0 INFO GST_INIT gstmessage.c:127:_priv_gst_message_initialize: init messages
0:00:00.000721407 148 0x11250c0 INFO GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.000950016 148 0x11250c0 INFO GST_PLUGIN_LOADING gstplugin.c:317:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.001005340 148 0x11250c0 INFO GST_PLUGIN_LOADING gstplugin.c:225:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.001027124 148 0x11250c0 INFO GST_PLUGIN_LOADING gstplugin.c:227:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.001057843 148 0x11250c0 INFO GST_REGISTRY gstregistry.c:1727:ensure_current_registry: reading registry cache: /home/walle/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.010604067 148 0x11250c0 INFO GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /home/walle/.cache/gstreamer-1.0/registry.x86_64.bin in 0.009527 seconds
0:00:00.010652468 148 0x11250c0 INFO GST_REGISTRY gstregistry.c:1583:scan_and_update_registry: Validating plugins from registry cache: /home/walle/.cache/gstreamer-1.0/registry.x86_64.bin
0:00:00.014383740 148 0x11250c0 INFO GST_REGISTRY gstregistry.c:1685:scan_and_update_registry: Registry cache has not changed
0:00:00.014394545 148 0x11250c0 INFO GST_REGISTRY gstregistry.c:1762:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.014400669 148 0x11250c0 INFO GST_INIT gst.c:807:init_post: GLib runtime version: 2.48.2
0:00:00.014406097 148 0x11250c0 INFO GST_INIT gst.c:809:init_post: GLib headers version: 2.48.2
0:00:00.014409504 148 0x11250c0 INFO GST_INIT gst.c:810:init_post: initialized GStreamer successfully
Plugin Details:
Name nvenc
Description GStreamer NVENC plugin
Filename /usr/lib/gstreamer-1.0/libgstnvenc.so
Version 1.14.4
License LGPL
Source module gst-plugins-bad
Source release date 2018-10-02
Binary package GStreamer Bad Plug-ins source release
Origin URL Unknown package origin
0 features: