python – Unable to Update ffmpeg which has nvenc h264 not available in Debian 11 Docker Image

I have developed video processing using Nvidia GPU in Docker Container with Debian 11.

I am trying to update ffmpeg which supports Nvidia Encoder.

Tried to install nvidia-codec-sdk on docker or update ffmpeg. Can’t able to solve it.

# Install NVIDIA Video Codec SDK & FFMPEG
RUN apt-get update && apt-get install -y --no-install-recommends nvidia-video-sdk \
    && ffmpeg \
    && apt-get clean \
#     rm -rf /var/lib/apt/lists/*

Getting error as “Unable to locate nvidia-video-sdk”

Also tried to update ffmpeg with below,

RUN set -x \
    && apt-get install -y software-properties-common \
    && add-apt-repository --remove ppa:mc3man/trusty-media \
    && apt-get -y update \
    && apt-get -y dist-upgrade \
    && apt-get install -y --no-install-recommends \
        ffmpeg

Gets error as “Unable to fetch archives”

NOTE:

  • Deployed as Azure Container Instance which already has Nvidia Tesla K80 pre-installed.

Read more here: Source link