gstreamer-pipelines/ffmpeg-psnr-check.sh
2025-09-11 14:41:54 +03:00

16 lines
442 B
Bash

#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Usage: $0 <input_video> <reference_video>"
exit 1
fi
if ! command -v ffmpeg &> /dev/null
then
echo "ffmpeg could not be found, please install it."
exit 1
fi
#this script checks the PSNR between two video streams using ffmpeg
# one video stream is the reference and the other is the test stream both are recorded files
ffmpeg -i "$1" -i "$2" -filter_complex "psnr" -f null /dev/null