vmaf安装
# 系统版本 MacOS 10.13.2
brew install gcc freetype pkg-config homebrew/science/hdf5 python
# 替换 MacOS 自带的 Python
echo "export PATH=/usr/local/opt/python/libexec/bin:$PATH" >> ~/.bash_profile
source ~/.bash_profile
brew install numpy scipy
# 和 README 不一样的是用了 pip2 命令
pip2 install matplotlib notebook pandas sympy nose scikit-learn h5py
# 安装 vmaf
git clone https://github.com/Netflix/vmaf.git
cd vmaf
git submodule update --init --recursive
make
echo export PYTHONPATH="$(pwd)/python/src:$(pwd)/sureal/python/src:$PYTHONPATH" >> ~/.bash_profile
source ~/.bash_profile
echo 'FFMPEG_PATH = "/usr/local/bin/ffmpeg"' >> /Users/mj/vmaf/python/src/vmaf/externals.py
ffmpeg2psnr
#!/usr/bin/env bash
if [ ""$1 == "" ]; then
echo "error: ffmpeg2psnr src.flv dst.flv [fmt]"
ex