進行第一遍 WebM 編碼時 FFmpeg 錯誤:無法辨識的選項“auto-alt-ref”

進行第一遍 WebM 編碼時 FFmpeg 錯誤:無法辨識的選項“auto-alt-ref”

我使用的是 OS X Mavericks (10.9.4) 並從自製程式安裝了 ffmpeg。

執行此命令時(假設輸入檔存在):

ffmpeg -i ololo.wmv -vf scale=500:-1 -auto-alt-ref 1 -lag-in-frames 20 -pass 1 ololo.webm

我得到這個輸出:

ffmpeg version 2.3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jul 18 2014 22:48:21 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/2.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 92.100 / 52. 92.100
  libavcodec     55. 69.100 / 55. 69.100
  libavformat    55. 48.100 / 55. 48.100
  libavdevice    55. 13.102 / 55. 13.102
  libavfilter     4. 11.100 /  4. 11.100
  libavresample   1.  3.  0 /  1.  3.  0
  libswscale      2.  6.100 /  2.  6.100
  libswresample   0. 19.100 /  0. 19.100
  libpostproc    52.  3.100 / 52.  3.100
Unrecognized option 'auto-alt-ref'.
Error splitting the argument list: Option not found

為什麼?根據webmproject.org 上的此頁面,這個選項應該要有。

答案1

問題是預設情況下 ffmpeg 不包含 libvpx。
執行後brew reinstall ffmpeg --with-libvpx問題就消失了。這個答案幫助了我:https://stackoverflow.com/a/13629348/1418097

相關內容