问题 ERROR: libx264 not found /tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory 1 | #include x264.h | ^~~~~~~~compilation terminated. ERROR: x265 not found using pkg-config error: #error "unsatisfied condition: X
问题
ERROR: libx264 not found
/tmp/ffconf.XPnQkpVd.c:1:10: fatal error: x264.h: No such file or directory
1 | #include <x264.h>
| ^~~~~~~~
compilation terminated.
ERROR: x265 not found using pkg-config
error: #error "unsatisfied condition: X264_MPEG2"
3 | #error "unsatisfied condition: X264_MPEG2"
| ^~~~~
check_pkg_config x265 x265.h x265_api_get
pkg-config --exists --print-errors x265
Package x265 was not found in the pkg-config search path.
Perhaps you should add the directory containing `x265.pc'
to the PKG_CONFIG_PATH environment variable
Package 'x265', required by 'virtual:world', not found
ERROR: x265 not found using pkg-config
解决
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
将x264和x265的pkgconfig文件位置添加到环境变量中,重新编译FFmpeg