1#!/bin/bash 2 3# Generates the CRCs for all .vp9 and .ivf files in the current directory using ffmpeg. 4 5for f in `ls *.vp9 *.ivf`; do 6 ffmpeg -i $f -pix_fmt nv12 -f framehash -hash crc32 - |grep -v '^#' |awk '{print $6}' >$f.crc 7 ffmpeg -i $f -pix_fmt nv12 -f framehash -hash md5 - |grep -v '^#' |awk '{print $6}' >$f.md5 8done 9