I'm trying to use GStreamer from docker container, built using this Dockerfile.
The installation worked ok and I'm able to run GStreamer. However, I'm not able to use the element v4l2h264enc
with the error that does not exist. When I run gst-inspect I get:
root@95e1ff54cca5:~# gst-inspect-1.0 v4l2h264enc
No such element or plugin 'v4l2h264enc'
But v4l2src
works fine:
root@95e1ff54cca5:~# gst-inspect-1.0 v4l2src
Factory Details:
Rank primary (256)
Long-name Video (video4linux2) Source
Klass Source/Video
Description Reads frames from a Video4Linux2 device
Author Edgard Lima <edgard.lima@gmail.com>, Stefan Kost <ensonic@users.sf.net>
Plugin Details:
Name video4linux2
Description elements for Video 4 Linux
Filename /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstvideo4linux2.so
Version 1.18.0
License LGPL
Source module gst-plugins-good
Source release date 2020-09-08
Binary package GStreamer Good Plug-ins source release
Origin URL Unknown package origin
I have checked in the build
folder of gst-plugins-good
and I think that v4l2h265enc
library was compiled (there's a file named gstv4l2h265enc.c.o
). I tried to add the folder where the file is to LD_LIBRARY_PATH
and GST_PLUGIN_PATH
but it didn't work.