<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 20 oct. 2020 16 h 00, Miguel Won <<a href="mailto:miguelwon@gmail.com">miguelwon@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank" rel="noreferrer">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 lang="plaintext"><span id="m_-6667307170075685294gmail-LC1" lang="plaintext"># gst-inspect-1.0 v4l2h264enc</span>
<span id="m_-6667307170075685294gmail-LC2" lang="plaintext">No such element or plugin 'v4l2h264enc'</span></pre><pre lang="plaintext"><span lang="plaintext"><br></span></pre><pre lang="plaintext"><span lang="plaintext">To reproduce the problem. Raspberry Pi 4 with </span></pre></div><div><br></div><div>





<p 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">PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"</span></p>
<p 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">NAME="Raspbian GNU/Linux"</span></p>
<p 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">VERSION_ID="10"</span></p>
<p 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">VERSION="10 (buster)"</span></p>
<p 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">VERSION_CODENAME=buster</span></p>
<p 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">ID=raspbian</span></p>
<p 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">ID_LIKE=debian</span></p><p 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"><br></span></p><p 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"><br></span></p><p 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">build docker with the dockerfile I send bellow, run, log to the container and try:</span></p><p 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"><br></span></p><p 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">gst-inspect-1.0 v4l2h264enc</span></p></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">So you are probing the codec from inside a docker ? Have you mapped require /dev/videoX nodes into your container? This element will only be available if driver support is found.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><p 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"><br></span></p><p 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"><br></span></p><p 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 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"><br></span></p><p 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"><br></span></p><p 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">The Dockerfile:</span></p><p 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"><br></span></p><p 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"><br></span></p><p 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"># 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" target="_blank" rel="noreferrer">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/$%7BGCE_REGION%7D.gce.archive.ubuntu.com/g" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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" target="_blank" rel="noreferrer">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 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"><br></span></p><p 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"><br></span></p><p 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>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>