如何正確格式化 ffmpeg 的請求以使用特定編解碼器進行解碼?

如何正確格式化 ffmpeg 的請求以使用特定編解碼器進行解碼?

r3d 被列為支援解碼的編解碼器,但當我嘗試指定 r3d 解碼器時,收到錯誤訊息「未知解碼器」。指定解碼器編解碼器的正確方式是什麼?

me$ ffmpeg -c r3d -i one.r3d one.mpg
ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
  built on May  8 2013 19:48:08 with Apple clang version 4.0 (tags/Apple/clang-421.0.57) (based on LLVM 3.1svn)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
  libavutil      52. 18.100 / 52. 18.100
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.104 / 54. 63.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mp3 @ 0x7fa2e4006600] Format mp3 detected only with low score of 1, misdetection possible!
Unknown decoder 'r3d'

答案1

沒有r3d解碼器

$ ffmpeg -codecs -v warning | grep r3d | wc
      0       0       0

答案2

問題是我的 ffmpeg 版本沒有用 r3d 支援編譯,所以雖然它確實出現在

ffmpeg -formats

它沒有出現在

ffmpeg -decoders

相關內容