当前位置:网站首页>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)
边栏推荐
- 谁抢走了华大基因的生意?
- Antd-ProComponents中的EditableProTable无法在子行继续新增子子行的临时解决方案
- npm install 编译时报“Cannot read properties of null (reading ‘pickAlgorithm‘)“
- 实时数仓架构演进及选型
- 金仓数据库KingbaseES安全指南--6.10. Peer身份验证
- 【一】TS安装编译配置自动生成.js文件
- MySQL常见面试题汇总(建议收藏!!!)
- 默认参数的代码实现及日期的注入与显示
- In the idea to create a web project _idea deployment of the web project
- 牛津硕士进碳圈,高瓴红杉经纬一起投了
猜你喜欢
随机推荐
Redis的介绍和使用
动力电池扩产潮,宁德时代遭围剿
Nacos面试题
golang源码分析(3):thrift
js添加元素,去重,排序
golang源码分析(9)调度
小程序实现手写左右翻页和动态修改横向滚动条位置
golang 计算器实现
持续交付(一)JenkinsAPI接口调用
暴跌99.7%后,谁还在买卖「二舅币」?
golang源码分析(8):m、p、g、shedt、sudog
Numpy those things
谁抢走了华大基因的生意?
Nacos配置中心工作原理(超简单)
Continuous integration (4) Jenkins configuration alarm mechanism
npm install 时,卡住不动,五种解决方法
Real-time data warehouse architecture evolution and selection
SQL语句基础
【C语言刷题】指针入门三题|字符串长度、字符串复制、两数交换
golang源码分析(7):chan









