View Single Post
Old 13th July 2020, 19:40   #1018  |  Link
SpasV
Guest
 
Posts: n/a
psnr - two inputs test

I've used the ffmpeg's psnr filter which works with two inputs.
Quote:
FRIMDecode64.exe -i:h265 "G:\Video\Rambo 2019 1240-1955 2160p src.hevc" -o \\.\pipe\src -yuv420p10le -dstsize 3840 1612 -area 0 274 3840 1612
FRIMDecode64.exe -i:h265 "G:\wrk\Rambo 2019 1240-1955 1612p ref.hevc" -o \\.\pipe\enc -yuv420p10le

ffmpeg -hide_banner -f rawvideo -s 3840x1612 -r 23.976 -pix_fmt yuv420p10le -i \\.\pipe\enc -f rawvideo -s 3840x1612 -r 23.976 -pix_fmt yuv420p10le -i \\.\pipe\src -lavfi psnr="stats_file=ref.psnr.log" -frames:v 743 -y -f null -
This setup works fine.

Something, probably, off topic.
There are peculiarities in two cases I saw:
* FRIMDecode with option -start
The decoder seeks slow and synchronization wasn't possible. So, I extracted hevc files using mkvmerge and tsMuxeR
* I made a mistake with cropping.
With these parameters -dstsize 3840 1612 -area 0 274 3840 1612 -dstarea 0 274 3840 1612 FRIMDecoder entered an infinite loop.

Thank you very much, videofan3d.

P.S. x265 doesn't support P010 but it does yuv420p10le.

Last edited by SpasV; 16th July 2020 at 15:48.
  Reply With Quote