问答

ffmpeg libx265 Unknown encoder 'libx265'

作者:admin 2021-04-20 我要评论

[root@localhost hukaiming]# ffmpeg -i hangpai.mp4 -vcodec libx265 99.hevc ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers built with ...

在说正事之前,我要推荐一个福利:你还在原价购买阿里云、腾讯云、华为云服务器吗?那太亏啦!来这里,新购、升级、续费都打折,能够为您省60%的钱呢!2核4G企业级云服务器低至69元/年,点击进去看看吧>>>)

[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 虚拟机。

版权声明:本文转载自网络,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。本站转载出于传播更多优秀技术知识之目的,如有侵权请联系QQ/微信:153890879删除

相关文章
  • nginx响应速度很慢

    nginx响应速度很慢

  • 点击选中的多选框,会在已选那一栏显示

    点击选中的多选框,会在已选那一栏显示

  • PHP 多态的理解

    PHP 多态的理解

  • 关于C语言中static的问题

    关于C语言中static的问题

腾讯云代理商
海外云服务器