Audio 启用";vorbis_parser.h“;在ffmpeg构建中

Audio 启用";vorbis_parser.h“;在ffmpeg构建中,audio,ffmpeg,oggvorbis,vorbis,Audio,Ffmpeg,Oggvorbis,Vorbis,ffmpeg构建配置是这样的,我已经禁用了所有内容,并有选择地为我需要的格式启用了解码器、编码器和解复用器。我想使用vorbis_parser.h解析外部数据,我尝试使用--enable parser=vorbis但这不起作用。在libavcodec的include文件夹中,没有显示名为vorbis_parser.h的文件。我应该设置什么选项才能使用vorbis_parser.h据我所知,ffmpeg的/configure脚本如下所示: ./configure --prefix="$HOME/f

ffmpeg构建配置是这样的,我已经禁用了所有内容,并有选择地为我需要的格式启用了解码器、编码器和解复用器。我想使用vorbis_parser.h解析外部数据,我尝试使用--enable parser=vorbis但这不起作用。在libavcodec的include文件夹中,没有显示名为vorbis_parser.h的文件。我应该设置什么选项才能使用vorbis_parser.h

据我所知,ffmpeg的
/configure
脚本如下所示:

./configure --prefix="$HOME/ffmpeg_build" \
--extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac \
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx \
--enable-libx264 --enable-nonfree --enable-x11grab
(来源:)

在我看来,您只需在
/configure
脚本中
--启用gpl
--启用libvorbis

然而,在libvorbis
/configure
脚本中可能有启用和禁用的选项。我希望这能有所帮助


祝你今天愉快;)

我意识到以avpriv开头的函数是FFmpeg的私有函数,这些函数不包括在公开的头文件中。因此,我们可能无法包含文件vorbis_parser.h

我不想使用gpl许可证,也不想使用--enable libvorbis选项,我所做的是--enable decoder=vorbis和--enable demuxer=ogg,这两个选项完全可以填充avcontext,但是我需要使用vorbis_parser.h中定义的函数来解析vorbis附带的额外数据。此外,vorbis_parser.h附带了一个LGPL许可证。