我在使用 ffmpeg 转换视频时遇到问题。它已安装,所有库也都在那里。但是使用某些命令,它会为不同的编码器显示它们是未知的。
未知的 libvorbis
未知的 libvpx
未知的 libogg
ETC
任何人都可以帮忙吗?
/bin$ ffmpeg
ffmpeg version 0.10.15 Copyright (c) 2000-2014 the FFmpeg developers
built on Aug 30 2014 15:49:19 with gcc 4.4.7 20120313 (Red Hat 4.4.7-3)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
libavutil 51. 35.100 / 51. 35.100
libavcodec 53. 61.100 / 53. 61.100
libavformat 53. 32.100 / 53. 32.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 61.100 / 2. 61.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
最佳答案
您的 ffmpeg
构建有 --enable-libvorbis
支持 Vorbis 音频编码,但缺少 --enable-libvpx
所以你没有 VP8/VP9 编码支持。
0.10.15 是旧的。建议用户使用来自当前 git master 的构建,或者,如果不可能,则使用最新版本。
您有几个选项可以解决此问题:
ffmpeg
使用适合您需要的任何配置选项。见 FFmpeg Wiki: Compile Guide for CentOS, RHEL, Fedora . ffmpeg
.静态构建包含对 Vorbis 和 VP* 编码的支持。 然后将您的脚本指向您的新版本。
关于video - 未知编码器 'libvorbis',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30669272/