ffmpeg libx265 Unknown encoder 'libx265'

胡先生
  • 1
新手上路,请多包涵

[root@localhost hukaiming]# ffmpeg -i hangpai.mp4 -vcodec libx265 99.hevc
ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
configuration: --enable-protocols --enable-muxers --disable-x86asm --enable-shared --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-gpl --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib
WARNING: library configuration mismatch
avutil configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
avcodec configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
avformat configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
avdevice configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
avfilter configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
swscale configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
swresample configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
postproc configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-yasm --enable-libx264 --enable-gpl --enable-pthreads --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --disable-x86asm
libavutil 56. 51.100 / 56. 51.100
libavcodec 58. 91.100 / 58. 91.100
libavformat 58. 45.100 / 58. 45.100
libavdevice 58. 10.100 / 58. 10.100
libavfilter 7. 85.100 / 7. 85.100
libswscale 5. 7.100 / 5. 7.100
libswresample 3. 7.100 / 3. 7.100
libpostproc 55. 7.100 / 55. 7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'hangpai.mp4':
Metadata:

major_brand     : mp42
minor_version   : 1
compatible_brands: isommp41mp42
creation_time   : 2021-02-15T02:54:02.000000Z
copyright       : 
copyright-eng   : 

Duration: 00:00:16.03, start: 0.000000, bitrate: 1132 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 544x960, 1085 kb/s, 30 fps, 30 tbr, 600 tbn, 1200 tbc (default)
Metadata:
  creation_time   : 2021-02-15T02:54:02.000000Z
  handler_name    : Core Media Video
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 40 kb/s (default)
Metadata:
  creation_time   : 2021-02-15T02:54:02.000000Z
  handler_name    : Core Media Audio

Unknown encoder 'libx265'

请问,为什么我在将264的视频转换为265的视频的时候,提示我没有安装265的编码器呢?PS.我确定已经安装过了该编码器,从上面的信息也可以看到:--enable-libx264 --enable-libx265 这两个都是支持的。请问是什么原因呢?环境是:centos 7 虚拟机。

回复
阅读 671
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
你知道吗?

宣传栏