I wish to measure how good a encode is.
So I do following but not sure if it's correct:
1. Dump YUV feed to encoder,say first frame. convert YUV to png.
ffmpeg -f rawvideo -pixel_format nv12 -video_size 2160x3840 -i 2160x3840.yuv -vframes 1 in.png
2. Decode output mp4 file to yuv by ffmpeg with below command:
ffmpeg -i 2160x3840.mp4 -vcodec rawvideo -pix_fmt nv12 -vframes 1 out.png
3. then compare in.png and out.png with this online tool
https://online-image-comparison.com/
I set the fuzzy to 4, I still can see some red dot there. that means pixel delta almost > 5. if set the fuzzy value to 10, then no any red dot.
Does that means this encoder still not good? I remember the delta should be within 3.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
It's a lossy encoder, set to lossy settings, there's gonna be some loss. Even with lossless settings, you still need to consider the possibility of loss due to color subsampling. And in your round trip, you have to take into account errors in yuv<->rgb conversion.
But you got to remember the beauty of these modern lossy encoders: since they work using lots of psychovisual tricks, even when there is loss it doesn't mean that is bothersome, or possibly even noticeable.
That's why PSNR, SSIM and the like are important metrics, because they take into account some of the HVS and yet still try to give primarily objective, qualitative scores to performance.
Scott -
You can use a program like MSU VQMT to compare videos by several metrics.
http://www.compression.ru/video/quality_measure/video_measurement_tool.html
But those metrics aren't a very good proxy for what you see. I prefer to use an AviSynth script, interleaving or stacking videos, then viewing them with a screen magnifier (or not), in realtime playback, and flipping back and forth between individual frames.
Similar Threads
-
Any video encoder please for 5.1 Ch videos
By minkoko123 in forum Newbie / General discussionsReplies: 4Last Post: 11th Oct 2019, 22:38 -
Loudness measure from RTP stream
By ghaffar3 in forum Newbie / General discussionsReplies: 0Last Post: 10th Oct 2018, 12:42 -
is libX265 encoder in latest FFMPEG is the same as standalone x265 encoder?
By junglemike in forum Video ConversionReplies: 5Last Post: 21st Sep 2016, 02:36 -
Improve blurry low quality video into clear high quality video.
By Osram123 in forum Video ConversionReplies: 2Last Post: 4th Apr 2016, 02:48 -
Are acceptable resolutions based on video encoder or video format (ffmpeg)?
By alexander121 in forum Video ConversionReplies: 2Last Post: 17th Dec 2015, 11:45