Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
3rd April 2019, 09:14 | #303 | Link | |
Registered User
Join Date: Jul 2010
Posts: 132
|
Quote:
looked at the code in muvsfunc, the plane param needs to be of type int... and u can also simply test this by running these params when passing config to Zopti: Code:
'ssim': {'downsample': False, 'show_map': False, 'plane': (0, 1, 2)} Code:
'ssim': {'downsample': False, 'show_map': False, 'plane': 2} Last edited by Iron_Mike; 3rd April 2019 at 09:19. |
|
3rd April 2019, 15:03 | #304 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Oh I see now. It uses the GetPlane (ShufflePlanes based) helper function from mvsfunc to extract and convert the selected plane to greyscale (Y Luma) for processing.
I'd be more interested in deriving an aggregate value for the UV chroma planes than all three planes. Actually, in the MDSI function there is provision to adjust the weight given to the pooled gradient and chromacity similarity maps: Code:
alpha: (float, 0~1) Weight used to merge gradient similarity (GS) map and chromaticity similarity (CS) map. Default is 0.6.
__________________
Nostalgia's not what it used to be Last edited by WorBry; 4th April 2019 at 05:17. |
3rd April 2019, 16:03 | #305 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
__________________
Nostalgia's not what it used to be |
4th April 2019, 02:12 | #306 | Link | ||
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
Quote:
__________________
Nostalgia's not what it used to be Last edited by WorBry; 4th April 2019 at 06:13. |
||
4th April 2019, 16:34 | #307 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Incidentally, came across this study:
https://www.intechopen.com/books/pro...gh-resolutions They used the MSU Quality Measurement Tool for the SSIM and PSNR metrics.
__________________
Nostalgia's not what it used to be Last edited by WorBry; 4th April 2019 at 16:47. |
4th April 2019, 18:48 | #308 | Link | |||
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
Quote:
Code:
clip = core.std.ShufflePlanes(clips=clip, planes=1, colorfamily=vs.GRAY) Code:
SSIM (no downsample): Plane=0; 255.9883826437114205942791044 Plane=1; 255.9511353443287036135700421 Plane=2; 255.9553550588348764804891293 GMSD (no downsample): Plane=0 1.342334158110490287003219167 Plane=1 2.221467708712367798208099638 Plane=2 2.180245724244588914348796231 So expect that chroma resolution of the reference and test clip will affect the scores. In the FFMPEG SSIM metric: Quote:
__________________
Nostalgia's not what it used to be Last edited by WorBry; 4th April 2019 at 19:02. |
|||
4th April 2019, 23:41 | #309 | Link | |
Registered User
Join Date: Jul 2010
Posts: 132
|
Quote:
Last edited by Iron_Mike; 4th April 2019 at 23:51. |
|
4th April 2019, 23:56 | #310 | Link | |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
__________________
Nostalgia's not what it used to be Last edited by WorBry; 4th April 2019 at 23:59. |
|
7th April 2019, 16:03 | #311 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quick question - how do you convert a full color RGB or YUV clip (whether 4:4:4, 4:2:2 or 420) to greyscale RGB in VapourSynth ?
Couldn't figure it out when I ran those parallel greyscale MDSI tests in the CrowdRun > Prores series and ended up using the 'Greyscale' filter in AVISynth+ and exporting the output to MagicYUV. Must surely be possible with fmtconv/shuffleplanes, but I just can't figure it.
__________________
Nostalgia's not what it used to be Last edited by WorBry; 7th April 2019 at 16:22. |
7th April 2019, 16:44 | #312 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Maybe like this core.std.ShufflePlanes(clip, planes=[0,0,0], colorfamily=vs.RGB)
EDIT import mvsfunc as mvf clip = mvf.GrayScale(clip)
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database Last edited by ChaosKing; 7th April 2019 at 16:48. |
7th April 2019, 16:50 | #313 | Link |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Thank-you.
Edit: Actually, core.std.ShufflePlanes(clip, planes=[0,0,0], colorfamily=vs.RGB) works fine, but mvf.GrayScale throws the error - Error on frame 0 request: Resize error 1026: RGB color family cannot have YUV matrix coefficients - when trying to convert a full color YUV source to greyscale RGB with: Code:
clip = core.fmtc.resample (clip, css="444") clip = core.fmtc.matrix (clip, mat="709", col_fam=vs.RGB) clip = core.fmtc.bitdepth (clip, bits=8) clip = mvf.GrayScale(clip) or clip = mvf.ToRGB(clip, depth=8) clip = mvf.GrayScale(clip)
__________________
Nostalgia's not what it used to be Last edited by WorBry; 7th April 2019 at 18:01. |
8th April 2019, 03:19 | #314 | Link | |
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
Code:
ffmpeg -i {Path}:/AX100.mp4 -vcodec libx265 -preset slow -crf {Value} -pix_fmt yuv420p -r 30000/1001 -x265-params no-sao=1:colorprim=1:transfer=1:colormatrix=1 {Path}:/AX100_x265_No_SAO_CRFx.mp4
__________________
Nostalgia's not what it used to be Last edited by WorBry; 8th April 2019 at 06:43. |
|
15th April 2019, 18:56 | #315 | Link | |||
Registered User
Join Date: Jan 2004
Location: Here, there and everywhere
Posts: 1,197
|
Quote:
https://forum.doom9.org/showthread.p...80#post1870880... ...I thought it would be interesting to see how the raw (muvsfunc) SSIM scores for the chroma planes compare with those generated by ffmpeg SSIM. For that I turned to the Crowd Run 1080 50p series of x264 (CRF 0 -30) encodes that I retained from the earlier metric tests; I had already collated the ffmpeg SSIM Y, U and V results. I also wanted look at the outcomes when the 8bit 4:2:0 chroma (of both the test and reference clips) is up-sampled to (YUV) 444 before testing, and whether converting the original chroma planes to Gray8 and then up-scaling to 1920 x 1080 produces similar results, which in theory it should. I used Resize.Bicubic for both the chroma up-sampling and Gray8 up-scaling. Downsample=False was applied in the chroma plane tests. Here are the results: The 'raw' muvsfunc SSIM scores obtained for the Y, U and V planes (top right chart) show a similar pattern to those produced by ffmpeg SSIM, but they are lower and propotionately more so in the lower bitrate range. Looking at the results for the individual planes. In the Y plane results I also included the scores obtained previously with 'Down-sample=True' i.e. the default settings. As seen in all of the test series, the initial 2x2 down-sampling always produces higher scores, and in this case higher than ffmpeg SSIM - I don't think the ffmpeg SSIM metric applies any internal down-sampling. As for the U and V planes. First thing to note is that the upsampled (444) and upscaled (Gray8) scores are indeed very close. Secondly, the 'upsampled/upscaled' scores are higher than the 'raw' scores and also the ffmpeg SSIM scores. Which leaves me wondering.... Quote:
Thinking about Poisondeathray's comments in the Zopti thread: Quote:
That said, when it comes to 'perceptual quality' is there maybe a case for 'normalizing' the chroma to 444 ? After all, that is what we are looking at when viewing a video on a display. Is it more meaningful to 'normalize' the chroma before the metric is applied than to apply some compensatory weighting to the raw measures derived from the native chroma ? I'm not necessarily saying that's how it should be done - just some food for thought. I also ran simultaneous GMSD tests but have yet to collate the data.
__________________
Nostalgia's not what it used to be Last edited by WorBry; 16th April 2019 at 04:13. |
|||
|
|