Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU): GPU RTX3050
• DeepStream Version: 6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version: latest
• NVIDIA GPU Driver Version (valid for GPU only): 525.85.12
• Issue Type( questions, new requirements, bugs)
I am using below docker file and could not access “x264enc”
Use official NVIDIA DeepStream image as a base
FROM nvcr.io/nvidia/deepstream:6.2-samples
Set the environment variable for non-interactive installation
ENV DEBIAN_FRONTEND=noninteractive
#COPY gstreamer /root/apps/gstreamer
To get video driver libraries at runtime (libnvidia-encode.so/libnvcuvid.so)
ENV NVIDIA_DRIVER_CAPABILITIES $NVIDIA_DRIVER_CAPABILITIES,video
RUN apt-get update && apt-get install -y
software-properties-common
&& add-apt-repository multiverse
&& apt-get clean
Update and install required packages
RUN apt-get update
RUN apt-get install -y python3-opencv jpegoptim
RUN apt-get upgrade -y $(apt-cache --names-only search ^gstreamer1.0-* | awk ‘{print $1}’ | grep -v gstreamer1.0-hybris | grep -v gstreamer1.0-python3-dbg-plugin-loader | grep -v gstreamer1.0-python3-plugin-loader) &&
apt-get install -y $(apt-cache --names-only search ^gstreamer1.0-* | awk ‘{print $1}’ | grep -v gstreamer1.0-hybris | grep -v gstreamer1.0-python3-dbg-plugin-loader | grep -v gstreamer1.0-python3-plugin-loader)
Install Python 3.9 and system dependencies for PostgreSQL, FFmpeg, and GStreamer
RUN apt-get update && apt-get install -y
python3.9
python3-pip
postgresql
postgresql-contrib
ffmpeg
libssl1.1
libgstreamer1.0-dev
libgstreamer-plugins-base1.0-dev
libgstreamer-plugins-bad1.0-dev
gstreamer1.0-plugins-base
gstreamer1.0-plugins-good
gstreamer1.0-plugins-bad
gstreamer1.0-plugins-ugly
gstreamer1.0-libav
gstreamer1.0-tools
gstreamer1.0-x
gstreamer1.0-alsa
gstreamer1.0-gl
gstreamer1.0-gtk3
gstreamer1.0-qt5
gstreamer1.0-pulseaudio
tzdata
libcairo2-dev
pkg-config
python3-dev
gstreamer1.0-python3-plugin-loader
libnvinfer-dev
libgstrtspserver-1.0-0
libgirepository1.0-dev
libjansson4
libyaml-cpp-dev
libx264-dev
&& rm -rf /var/lib/apt/lists
Set the timezone
RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime &&
dpkg-reconfigure --frontend noninteractive tzdata
Set working directory
WORKDIR /app
Copy requirements.txt
COPY requirements.txt .
Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
Copy the wait-for-it.sh script
COPY wait-for-it.sh /usr/local/bin/
Copy the rest of the application code
COPY . .
Expose the port the app runs on
EXPOSE 8085
Development: For VSCode
RUN chown 1000:1000 /root
CMD [“tail”, “-f”, “/dev/null”]
Set the XDG_RUNTIME_DIR environment variable
ENV XDG_RUNTIME_DIR=/tmp/runtime-dir
Create the XDG_RUNTIME_DIR and set permissions
RUN mkdir -p $XDG_RUNTIME_DIR &&
chmod 0700 $XDG_RUNTIME_DIR &&
chown -R 1000:1000 $XDG_RUNTIME_DIR
Start the application
CMD [“wait-for-it.sh”, “db:5432”, “–”, “python3”, “main.py”]