调用 opusenc 或 ffmpeg

问题描述

在 Ubuntu 20.04 上,我有两个 opus-tools 0.1.10-1 (amd64) 和 ffmpeg 7:4.2.4-1ubuntu0.1 (amd64) 的操作副本。我安装了蹩脚的 3.100-3 (amd64) 并且 opus-tools / ffmpeg 因以下错误而停止工作:

ffmpeg: symbol lookup error: /lib/x86_64-linux-gnu/libavcodec.so.58: undefined symbol: opus_multistream_surround_encoder_create
opusenc: symbol lookup error: opusenc: undefined symbol: opus_multistream_surround_encoder_create

我卸载了 lame 并收到了相同的消息。然后我使用 --auto-remove 选项删除任何依赖项并面临同样的问题。之后,我卸载并重新安装了 opus-tools 和 ffmpeg,但没有帮助。几乎要放弃了,我跟着 this FFmpeg-user thread 并执行了 ldconfig。也没有运气。

最后,我尝试从源代码构建和安装 opus-tools,但收到以下消息:

configure: error: Package requirements (ogg >= 1.3) were not met:

No package 'ogg' found

Consider adjusting the PKG_CONfig_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively,you may set the environment variables OGG_CFLAGS
and OGG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

在此先感谢您的帮助。

解决方法

备份您的文件并重新安装 ubuntu 20.04。