Posts: 329
Threads: 107
Joined: May 2017
artifacts when previewing Chroma subsampling : 4:2:2 file when a filter is enabled, for example, "levels"
Posts: 10.618
Threads: 57
Joined: May 2017
Looking at the preview script:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\SmoothAdjust.dll")
# loading source: D:\!_Video\Video_Mus\!_Edit\Nelli - Gde voda_1.67x_1280x720_amqs-1.mov
# color sampling YUY2@10, matrix: bt709, scantyp: progressive, luminance scale: limited
Source = LWLibavVideoSource("D:\!_Video\Video_Mus\!_Edit\Nelli - Gde voda_1.67x_1280x720_amqs-1.mov",cache=false,format="YUV422P16", prefer_hw=0,repeat=true)
# current resolution: 1280x720
# filtering
# color modifications
SourceFiltered = Source
SourceFiltered = SourceFiltered.SmoothLevels16(input_low=8995,input_high=47545,output_high=60395,chroma=30,Lmode=2,Ecenter=32896,HQ=true)
Source = Source.ColorYUV(analyze=true)
SourceFiltered = SourceFiltered.ColorYUV(analyze=true)
# stacking horizontal for filter preview
# adjust color to RGB32 (for preview)
SourceFiltered = SourceFiltered.ConvertToRGB32(matrix="Rec709")
# adjust color to RGB32 (for preview)
Source = Source.ConvertToRGB32(matrix="Rec709")
StackHorizontal(Source, SourceFiltered)
PreFetch(6)
# setting output fps to 25.000fps
AssumeFPS(25,1)
# output: color sampling RGB32@16, matrix: bt709, scantyp: progressive, luminance scale: limited
return last
and your image I would say those 'artifacts' are the output of you eanbleding 'ColorYUV(analyze=true)'.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Posts: 329
Threads: 107
Joined: May 2017
Quote:and your image I would say those 'artifacts' are the output of you eanbleding 'ColorYUV(analyze=true)'.
Now I uncheck "Show YUV color ranges"
artifacts when previewing again exist
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\LSMASHSource.dll")
LoadPlugin("C:\PROGRA~1\Hybrid\32bit\AVISYN~1\SmoothAdjust.dll")
# loading source: D:\!_Video\Video_Mus\!_Edit\Nelli - Gde voda_1.67x_1280x720_amqs-1.mov
# color sampling YUY2@10, matrix: bt709, scantyp: progressive, luminance scale: limited
LWLibavVideoSource("D:\!_Video\Video_Mus\!_Edit\Nelli - Gde voda_1.67x_1280x720_amqs-1.mov",cache=false,format="YUV422P16", prefer_hw=0,repeat=true)
# current resolution: 1280x720
# filtering
# color modifications
SmoothLevels16(input_low=8995,input_high=47545,output_high=60395,chroma=30,Lmode=2,Ecenter=32896,HQ=true)
# Dithering from 16 to 8bit for encoder
ConvertBits(8)
# adjust color to YV12 (color matrix: Rec709)
ConvertToYV12()
PreFetch(6)
# setting output fps to 25.000fps
AssumeFPS(25,1)
# output: color sampling YV16@8, matrix: bt709, scantyp: progressive, luminance scale: limited
return last
Posts: 10.618
Threads: 57
Joined: May 2017
28.09.2021, 19:35
(This post was last modified: 28.09.2021, 19:41 by Selur.)
Okay, I can reproduce the issue.
Seems like Hybrid does something wrong when using the filter or theres a bug in the filter.
Will try to look into it further tomorrow after work.
-> okay problem is that smooth levels does not support native 16bit input (see:
https://forum.doom9.org/showthread.php?p...ost1947034)
Will adjust Hybrid accordingly.
Cu Selur
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.