当前位置:网站首页>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)
边栏推荐
- 【电子器件笔记6】三极管(BJT)参数和选型
- Gartner发布,年度Challenger!
- FPGA 20个例程篇:10.遍历DDR3内存颗粒读写循环校验
- Five speakers: seventy genius_platform software platform development 】 【 turn YUY2 RGB24 implementation source code
- [C Language Brush Questions] Three Questions for Getting Started with Pointers | String Length, String Copy, Two Number Swap
- 土巴兔IPO五次折戟,互联网家装未解“中介”之痛
- 常用软件静默安装参数
- 金仓数据库KingbaseES安全指南--6.13. 关于身份验证的常见问题
- 工信部电子五所张志强:中国数据库行业发展趋势分析
- Redis的介绍和使用
猜你喜欢
随机推荐
Summary of CNN classic models [easy to understand]
Numpy那些事
一些与开发者体验有关的话题
脉脉上的相亲生意
阿里云关系型数据库RDS是干嘛额?
golang源码分析(13)gorpc源码分析
Nacos interview questions
谁抢走了华大基因的生意?
常用软件静默安装参数
What is an APS system?What should I pay attention to when importing APS?Worth watching again and again
H.265视频流媒体播放器EasyPlayer.js集成时报错“SourceBuffer ”如何解决?
Oracle 11 g rac finished patch, dbca new patches of SQL database also needs to perform?
golang 计算器实现
ES: WeakSet
MYSQL下载及安装完整教程
NAACL 2022 | 具有元重加权的鲁棒自增强命名实体识别技术
Mysql——分组统计
Antd-ProComponents中的EditableProTable无法在子行继续新增子子行的临时解决方案
Navicat premium download and install 15 detailed tutorial
LeetCode·76.最小覆盖子串·滑动窗口









