Unknown encoder ‘libx264‘的解决方法

简介: Unknown encoder ‘libx264‘的解决方法

1、问题描述:


运行程序的时候出现了这个错误,Unknown encoder ‘libx264’,和ffmpeg库有关.


MoviePy error: FFMPEG encountered the following error while writing file run1output_video.mp4:


b”Unrecognized option ‘preset’.\nError splitting the argument list: Option not found\n”


2、解决方案:


将ffmpeg卸载了之后再conda 重新安装(用conda,因为conda会自动下载配置所需要的依赖库):


conda uninstall ffmpeg
conda install -c conda-forge ffmpeg


3、conda install -c 中的 -c 是什么意思


-c 即 -channel

频道是Navigator和conda查找包的位置,(source)具有相同名称的包可能存在于多个通道上,如果希望从默认通道以外的其他通道安装,则指定要使用哪个通道的一种方法是使用 conda install -c channel_name package_name语法。

目录
相关文章
|
9天前
|
并行计算 Python
Python错误笔记(一):CUDA initialization: CUDA unknown error - this may be due to an incorrectly set up env
这篇文章讨论了CUDA初始化时出现的未知错误及其解决方案,包括重启系统和安装nvidia-modprobe。
45 0
|
2月前
|
编解码 开发工具 git
解决Ubuntu16.04视频编码出现Unknown encoder 'libx264'问题
解决Ubuntu16.04视频编码出现Unknown encoder 'libx264'问题
123 0
|
PyTorch 算法框架/工具
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
203 0
THCudaCheck FAIL file=/pytorch/aten/src/THC/THCGeneral.cpp line=405 error=11 : invalid argument
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
MAC编译lame ld: symbol(s) not found for architecture x86_64/_lame_init_old“, referenced from
239 0
ERROR: libx264 not found
ERROR: libx264 not found
162 0
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
编译OpenJDK8:configure: Could not compile and link with freetype. This might be a 32/64-bit mismatch.
99 0
|
Android开发
libx264.c:function X264_init: error: undefined reference to x264_encoder_open_142
libx264.c:function X264_init: error: undefined reference to x264_encoder_open_142
149 0
configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die
configure:13747: error: You requested FFmpeg (h264, h263, theora, mp4v-es) but not found...die
96 0
|
应用服务中间件 Linux nginx
./configure: error: C compiler cc is not found
./configure: error: C compiler cc is not found
779 0
[swscaler] Warning: data is not aligned! This can lead to a speedloss 的解决方法【FFmpeg】
[swscaler] Warning: data is not aligned! This can lead to a speedloss 的解决方法【FFmpeg】
744 0
[swscaler] Warning: data is not aligned! This can lead to a speedloss 的解决方法【FFmpeg】