gpt4 book ai didi

macos - FFmpeg 错误 "No such filter: ' libvmaf' Mac

转载 作者:行者123 更新时间:2023-12-04 22:52:57 28 4
gpt4 key购买 nike

我想使用 FFmpeg 计算视频序列的 PSNR。
一开始我安装了 libvmaf 来自 here 的指令和 here .我像 here 一样安装了 ffmpeg .我尝试了一个测试:

ffmpeg -i output4.mpg -i output1.mpg -lavfi libvmaf -f null -

但我得到一个错误(如下)。我想我可以用 ./configure --enable-libvmaf --enable-version3 解决它或 ./configure --enable-libvmaf但不幸的是我无法运行它(我不知道如何)。

我希望任何人都可以帮助我解决这个问题。
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with Apple clang version 11.0.3 (clang-1103.0.32.59)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.3 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=-fno-stack-check --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mpeg, from 'output4.mpg':
Duration: 00:00:09.88, start: 0.533367, bitrate: 363 kb/s
Stream #0:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 178:163 DAR 1958:1467], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
Input #1, mpeg, from 'output1.mpg':
Duration: 00:00:10.01, start: 0.533367, bitrate: 345 kb/s
Stream #1:0[0x1e0]: Video: mpeg1video, yuv420p(tv), 352x288 [SAR 178:163 DAR 1958:1467], 104857 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc
[AVFilterGraph @ 0x7ffedbe23180] No such filter: 'libvmaf'
Error initializing complex filters.
Invalid argument

最佳答案

根据libvmaf filter documentation :

It requires Netflix’s vmaf library (libvmaf) as a pre-requisite. Afterinstalling the library it can be enabled when compiling ffmpeg with:--enable-libvmaf --enable-version3.


您的 ffmpeg缺少必需的 --enable-libvmaf --enable-version3配置选项。
简单的解决方案是下载一个已经编译好的 ffmpeg来自 evermeet.cx或使用自制水龙头 homebrew-ffmpeg :
brew tap homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg --with-libvmaf

关于macos - FFmpeg 错误 "No such filter: ' libvmaf' Mac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62009827/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com