当前位置: 首页 > news >正文

centos7下源码编译ffmpeg时报错ERROR opus not found using pkg-config问题修复

问题描述

配置ffmpeg

sudo PKG_CONFIG_PATH="/usr/local/lib/pkgconfig" ./configure   --prefix=/usr/local/ffmpeg   --enable-gpl   --enable-nonfree   --enable-shared   --disable-static   --enable-libx264   --enable-libx265   --enable-libvpx   --enable-libfdk-aac   --enable-libass   --enable-libopus   --enable-libvorbis   --enable-openssl

配置时报错:

ERROR: opus not found using pkg-config

排查步骤

步骤1:安装opus

sudo yum install opus opus-devel

步骤2:查看opus版本

pkg-config --modversion opus# 输出1.0.2

执行完上述两个步骤,配置ffmpeg时仍然报错。

步骤3:源码编译opus

cd /usr/local/src
sudo curl -LO https://archive.mozilla.org/pub/opus/opus-1.4.tar.gz
sudo tar xzf opus-1.4.tar.gz
cd opus-1.4
sudo ./configure --prefix=/usr/local
sudo make -j$(nproc)
sudo make install# 查看opus版本
pkg-config --modversion opus# 输出1.4

步骤4:重新配置ffmpeg

sudo PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/opus/lib/pkgconfig" ./configure   --prefix=/usr/local/ffmpeg   --enable-gpl   --enable-nonfree   --enable-shared   --disable-static   --enable-libx264   --enable-libx265   --enable-libvpx   --enable-libfdk-aac   --enable-libass   --enable-libopus   --enable-libvorbis   --enable-openssl

配置成功。

http://www.dtcms.com/a/265331.html

相关文章:

  • 全角半角空格在网页中占位符和编码emsp;ensp;
  • 网络协议概念与应用层
  • 深度解析Elasticsearch滚动索引:原理、实践与自动化管理
  • Spring cloud gateway
  • C++2d我的世界V1.4
  • 模型预测专题:强鲁棒性DPCC
  • 智能检测原理和架构
  • 哪个领域数据库最难替换?
  • Softhub软件下载站实战开发(十):实现图片视频上传下载接口
  • rockchip android14 设置不休眠
  • 数学建模_微分方程
  • 商品中心—18.库存分桶的一致性改造文档
  • RedisCluster不可用的6大隐患
  • 通俗理解JVM细节-面试篇
  • 配置tcp的https协议证书
  • [云上玩转Qwen3系列之四]PAI-LangStudio x AI搜索开放平台 x ElasticSearch: 构建AI Search RAG全栈应用
  • JSON 安装使用教程
  • 新版本没有docker-desktop-data分发 | docker desktop 镜像迁移
  • 用Python实现两种爱心效果❤️
  • 人机协同的智能体开发范式(ADS)
  • HCIA-实现VLAN间通信
  • nrf52840蓝牙学习(定时器的应用)
  • Python 数据分析:numpy,说人话,说说数组维度。听故事学知识点怎么这么容易?
  • 从暴力穷举到智能导航,PC本地搜索被腾讯电脑管家“拯救”
  • 【Vue入门学习笔记】Vue核心语法
  • 百度文心 ERNIE 4.5 开源:开启中国多模态大模型开源新时代
  • MYSQL基础内容
  • 读VJEPA 2
  • Linux Mem -- Slub内存分配器基础
  • 08_Excel 导入 - 用户信息批量导入