当前位置:网站首页>ffmpeg编译后找不到libx264
ffmpeg编译后找不到libx264
2022-08-02 17:03:00 【HUI的技術筆記】
ffmpeg no libx264
ffmpeg编译libx264完成之后,查看config.h,编译都对,但是怎么也找不到libx264:
$ ./ffmpeg -encoders | grep 264
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --enable-shared --enable-libx264 --enable-gpl --enable-nonfree --enable-sdl --enable-ffplay --disable-optimizations --enable-debug --extra-cflags=-g --enable-libfdk-aac --enable-libopenh264 --enable-libx264
WARNING: library configuration mismatch
avutil configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
avcodec configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
avformat configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
avdevice configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
avfilter configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
swscale configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
swresample configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
postproc configuration: --prefix=/usr/local/ffmpeg --enable-shared --enable-static --enable-gpl --enable-sdl --enable-ffplay --enable-libmp3lame
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
V..... h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264)
这段输出里面有个warning(WARNING: library configuration mismatch
),发现这里有个路径:
--prefix=/usr/local/ffmpeg
看着这里在什么时候编译的时候指定/usr/local/ffmpeg
,/usr/local/ffmpeg下面存在一份ffmpeg的库,删掉这个目录后,再用ffmpeg查找264,显示正常了:
ffmpeg version n4.4 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --enable-static --enable-shared --enable-libx264 --enable-gpl --enable-nonfree --enable-sdl --enable-ffplay --disable-optimizations --enable-debug --extra-cflags=-g --enable-libfdk-aac --enable-libopenh264 --enable-libx264
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
V..... libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
V..... libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
V..... libopenh264 OpenH264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
V..... h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264)
边栏推荐
- Pytest学习笔记
- MySQL——慢查询日志分析
- 持续集成(四)Jenkins配置报警机制
- navicat创建连接 2002-can‘t connect to server on localhost(10061)且mysql服务已启动问题
- MySQL常见面试题汇总(建议收藏!!!)
- ECCV 2022 | 清华&腾讯AI Lab提出REALY:重新思考3D人脸重建的评估方法
- Gartner发布,年度Challenger!
- When Oracle analyzes the archive log content, it finds many nulls?
- [300+ selected big factory interview questions continue to share] Big data operation and maintenance sharp knife interview questions column (10)
- 【genius_platform软件平台开发】第七十五讲:YUY2转RGB24实现源码
猜你喜欢
随机推荐
乌总统解除乌克兰国家安全局信息和情报分析部负责人职务
用函数递归的方法解决汉诺塔问题
[C Language Brush Questions] Three Questions for Getting Started with Pointers | String Length, String Copy, Two Number Swap
golang 计算器实现
持续集成(五)Jenkins配置父子job
土巴兔IPO五次折戟,互联网家装未解“中介”之痛
Navicat premium download and install 15 detailed tutorial
golang源码分析(4):select
Numpy those things
navicat premium 15 下载安装详细教程
MYSQL一站式学习,看完即学完
小程序实现手写左右翻页和动态修改横向滚动条位置
QACTION_QAWiki
npm install报错Fix the upstream dependency conflict, or retry
Gartner发布,年度Challenger!
js添加元素,去重,排序
navicat creates a connection 2002-can't connect to server on localhost (10061) and the mysql service has started the problem
Switch 块、Switch 表达式、Switch 模式匹配,越来越好用的 Switch
[300+ selected big factory interview questions continue to share] Big data operation and maintenance sharp knife interview questions column (10)
Antd-ProComponents中的EditableProTable无法在子行继续新增子子行的临时解决方案