[英]libx264 codex not enabled in ffmpeg ubuntu 18.04
I have some weird codex installation issues with the following docker image.以下 docker 图像存在一些奇怪的 codex 安装问题。
ARG PYTORCH="1.8.0"
ARG CUDA="11.1"
ARG CUDNN="8"
FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel
ENV TORCH_CUDA_ARCH_LIST="6.0 6.1 7.0 8.0+PTX"
ENV TORCH_NVCC_FLAGS="-Xfatbin -compress-all"
ENV CMAKE_PREFIX_PATH="$(dirname $(which conda))/../"
# https://github.com/NVIDIA/nvidia-docker/issues/1632
RUN apt-key del 7fa2af80
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu2004/x86_64/7fa2af80.pub
RUN apt-get update && apt-get install -y \
git nano ninja-build p7zip-full imagemagick wget unzip \
libglib2.0-0 libsm6 libxrender-dev libxext6 libturbojpeg \
libxrender1 libfontconfig1 freeglut3-dev llvm-6.0-tools curl \
amqp-tools ffmpeg libx264-dev \
&& apt --fix-broken install \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
# for visualizing
&& wget https://github.com/mmatl/travis_debs/raw/master/xenial/mesa_18.3.3-0.deb \
&& dpkg -i ./mesa_18.3.3-0.deb || true \
&& apt install -f \
&& git clone https://github.com/mmatl/pyopengl.git \
&& pip install ./pyopengl
First of all, libx264 is supposed to be installed by a simple apt-get install ffmpeg
in ubuntu 18.04.5.首先,libx264 应该通过简单的apt-get install ffmpeg
在 ubuntu 18.04.5 中。 Indeed I see that it is being installed in the installation instructions but for some reason, it's not enabled.事实上,我看到它正在安装说明中安装,但由于某种原因,它没有启用。 This is confirmed when running ffmpeg -codecs | grep 264
这在运行ffmpeg -codecs | grep 264
时得到确认。 ffmpeg -codecs | grep 264
, which doesn't show libx264
(only h264, libopenh264 are there). ffmpeg -codecs | grep 264
,它不显示libx264
(只有 h264、libopenh264 在那里)。
In addition, I also compiled from source , explicitly enabling libx264 during installation.此外,我还从源代码编译,在安装过程中明确启用 libx264。 It didn't make a difference.这没有什么不同。
The problem was that I also had ffmpeg
installed with conda
.问题是我还安装了ffmpeg
conda
So:所以:
conda remove --force ffmpeg -y
apt-get update && apt-get install -y ffmpeg
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.