What I am trying to do is to compare the quality of transcoded x265 video with the original high bit rate x264. For that, I am taking a frame as png and zooming to find the pixel differences in https://gitlab.gnome.org/YaLTeR/identity .
Original Video
$ ffprobe Original.mkv 2>&1 | egrep 'Duration|Stream'
Duration: 00:45:29.08, start: 0.000000, bitrate: 7156 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
Stream #0:2(eng): Subtitle: subrip
I am converting a part of the video to x265
$ ffmpeg -ss 00:40:00 -i Original.mkv -t 00:10:00 -c:v libx265 -crf 20 -c:a copy Original-x265.mkv
Now I am trying to fetch the same frame from both videos
ffmpeg -ss 00:40:09 -i Original.mkv -frames:v 1 -q 1 original.png
ffmpeg -ss 00:00:09 -i Original-x265.mkv -frames:v 1 -q 1 original-x265.png
But both images are different. How can I get the same image from both videos to compare quality?