<div dir="ltr">Hi,<div><br></div><div>Following the issue raised here:<br><div><br></div><div><a href="https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/130#note_667565">https://gitlab.freedesktop.org/gstreamer/gst-build/-/issues/130#note_667565</a></div><div><br></div><div>I looking for some help. I'm trying to run a GStreamer pipeline in a docker container installed in a Raspberry Pi with Raspbian. It works fine except if I use v4l2h264enc. For some reason it is not installed during the gst-build process: </div><div><pre class="gmail-code gmail-highlight" lang="plaintext"><span id="gmail-LC1" class="gmail-line" lang="plaintext"># gst-inspect-1.0 v4l2h264enc</span>
<span id="gmail-LC2" class="gmail-line" lang="plaintext">No such element or plugin 'v4l2h264enc'</span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext"><br></span></pre><pre class="gmail-code gmail-highlight" lang="plaintext"><span class="gmail-line" lang="plaintext">To reproduce the problem. Raspberry Pi 4 with </span></pre></div><div><br></div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">NAME="Raspbian GNU/Linux"</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VERSION_ID="10"</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VERSION="10 (buster)"</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">VERSION_CODENAME=buster</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ID=raspbian</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">ID_LIKE=debian</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">build docker with the dockerfile I send bellow, run, log to the container and try:</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">gst-inspect-1.0 v4l2h264enc</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span style="font-variant-ligatures:no-common-ligatures">Thanks!</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">The Dockerfile:</span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"># Copyright 2019 Google LLC<br>#<br># Licensed under the Apache License, Version 2.0 (the "License");<br># you may not use this file except in compliance with the License.<br># You may obtain a copy of the License at<br>#<br># <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a><br>#<br># Unless required by applicable law or agreed to in writing, software<br># distributed under the License is distributed on an "AS IS" BASIS,<br># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.<br># See the License for the specific language governing permissions and<br># limitations under the License.<br><br>FROM ubuntu:19.10<br><br># Use GCE apt servers<br>ARG GCE_REGION=us-west1<br>RUN cp /etc/apt/sources.list /etc/apt/sources.list.orig && \<br> sed -i "s/<a href="http://archive.ubuntu.com/${GCE_REGION}.gce.archive.ubuntu.com/g">archive.ubuntu.com/${GCE_REGION}.gce.archive.ubuntu.com/g</a>" /etc/apt/sources.list<br><br># Install essentials<br>RUN \<br> apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \<br> curl \<br> build-essential \<br> ca-certificates \<br> git \<br> vim<br><br>WORKDIR /opt<br><br><br>ARG GST_BUILD_VERSION=1.18<br><br># cloner repo for each gstreamer module<br>RUN git clone <a href="https://github.com/GStreamer/gst-build">https://github.com/GStreamer/gst-build</a> && cd gst-build && git checkout ${GST_BUILD_VERSION}<br><br>WORKDIR /opt<br><br># Install base build deps<br>RUN \<br> apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \<br> autopoint \<br> autoconf \<br> automake \<br> autotools-dev \<br> libtool \<br> gettext \<br> bison \<br> flex \<br> gtk-doc-tools \<br> libtool-bin \<br> libgtk2.0-dev \<br> libgl1-mesa-dev \<br> libopus-dev \<br> libpulse-dev \<br> libgirepository1.0-dev \<br> libv4l-dev \<br> libmount-dev \<br> libva-dev \<br> libusrsctp-dev \<br> libvpx-dev \<br> libgudev-1.0-0 \<br> libgudev-1.0-dev <br><br><br>RUN \<br> apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \<br> libwebrtc-audio-processing-dev \<br> libssl-dev \<br> libsrtp2-dev<br><br>ARG USRSCTP_VERSION=6ce0f8fe7455e566a6833684ec5983547658856d<br>RUN \<br> git clone <a href="https://github.com/sctplab/usrsctp.git">https://github.com/sctplab/usrsctp.git</a> && \<br> cd usrsctp && git checkout ${USRSCTP_VERSION} && \<br> ./bootstrap && ./configure --prefix=/usr && \<br> make && make install && make clean<br><br># Install meson build deps<br>RUN \<br> apt-get update && apt install -y python3-pip python-gi-dev ninja-build && \<br> pip3 install meson<br><br># Install libnice from source<br>ARG LIBNICE_VERSION=d6087ae5e0c1de2555f64d792c144d49bd816920<br>RUN \<br> git clone <a href="https://gitlab.freedesktop.org/libnice/libnice.git">https://gitlab.freedesktop.org/libnice/libnice.git</a> && \<br> cd libnice && git checkout ${LIBNICE_VERSION} && \<br> meson build --prefix=/usr && \<br> ninja -C build install<br><br># Build and install gst-plugins-ugly from source<br># This package includes the x264 encoder for non-nvenc accelerated pipelines.<br>RUN \<br> apt-get update && apt install -y libx264-155 libx264-dev<br><br># Install meson build deps<br>RUN \<br> apt-get update && apt install -y python3-pip python-gi-dev ninja-build && \<br> pip3 install meson<br><br># Build gstreamer<br>RUN \<br> cd /opt/gst-build && \<br> meson builddir && \<br> ninja -C builddir<br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><br></p></div></div></div>