<p>Is it possible to get a dump of the PSNR of every frame of a video using ffmpeg or ffprobe? So far all the options I've seen are for comparing two videos or getting the average across the whole video. If ffmpeg cannot do it, are there other softwares that can?</p>
<p>Edit: OK it seems like I misunderstood what PSNR is. I thought it was a measure of quality of an image, but it seems like it is a measure of quality between an original image and a compressed image.</p>

CC BY-SA 4.0
2022-01-15T13:11:46.110Z
Have you read the filter docs: http://www.ffmpeg.org/ffmpeg-filters.html#psnr
Gyan
CC BY-SA 4.0
2022-01-15T20:05:14.897Z
@Gyan I did, it says "Obtain the average, maximum and minimum PSNR (Peak Signal to Noise Ratio) between two input videos.", but I want to find it for a single video, and when I tried to input the same video twice as both inputs, the output stats file was just a bunch of zeros
woojoo666
CC BY-SA 4.0
2022-01-15T20:13:37.100Z
ok it seems like I misunderstood what PSNR is, sorry
woojoo666
<ffmpeg>
Frame-by-frame PSNR using ffmpeg
woojoo666
# Frame-by-frame PSNR using ffmpeg

(Asked by: username_0 on 2022-01-14)

Is it possible to get a dump of the PSNR of every frame of a video using ffmpeg or ffprobe? So far all the options I've seen are for comparing two videos or getting the average across the whole video. If ffmpeg cannot do it, are there other softwares that can?

Edit: OK it seems like I misunderstood what PSNR is. I thought it was a measure of quality of an image, but it seems like it is a measure of quality between an original image and a compressed image.

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Have you read the filter docs: http://www.ffmpeg.org/ffmpeg-filters.html#psnr  
> **username_0**: @username_1 I did, it says "Obtain the average, maximum and minimum PSNR (Peak Signal to Noise Ratio) between two input videos.", but I want to find it for a single video, and when I tried to input the same video twice as both inputs, the output stats file was just a bunch of zeros  
> **username_0**: ok it seems like I misunderstood what PSNR is, sorry  

---

## 0 answers

