Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Stephen-Seo/c2985e561a829b0d6b021d746bb44941 to your computer and use it in GitHub Desktop.
Save Stephen-Seo/c2985e561a829b0d6b021d746bb44941 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
echo "Expecting \"$1\" to be reference and \"$2\" to be distorted"
sleep 2
set -ve
ffmpeg -i "$1" -i "$2" \
-lavfi "[0:v]setpts=PTS-STARTPTS[reference];[1:v]setpts=PTS-STARTPTS[distorted];[distorted][reference]libvmaf" \
-f null -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment