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. |
![]() |
#281 | Link |
Registered User
Join Date: Jun 2022
Posts: 5
|
Why am I getting this error?
Both clips should have the same colorspace! (C:/Program Files (x86)lAviSynth+/plugins64+/TemporalDegrain-v2.6.4.avsi, line 441) (C:/Program Files (x86)lAviSynth+/plugins64+/TemporalDegrain-v2.6.4.avsi, line 395) Source: MPEG2, 720x576, YUV420 Full script: Code:
video_org=FFmpegSource2("../00000.m2ts", atrack=-1) crop_left=12 # | rimozione esatta delle bande nere sinistra, sopra, destra e del disturbo sotto crop_top=2 # | 720-(12+16)x576-(2+14)=692x560 crop_right=16 crop_bottom=14 video_org_crop=video_org.crop(crop_left,crop_top,-crop_right,-crop_bottom) video_org_crop_adj=video_org_crop.ColorYUV(off_u=+12, off_v=-6) ### de-interlacing deinterlaced=video_org_crop_adj.AssumeTFF().QTGMC(preset="slow", matchpreset="slow", matchpreset2="slow", sourcematch=3, tr1=2, tr2=1, NoiseTR=2, sharpness=0.1) ### convert to YV16 deinterlaced_yv16=deinterlaced.convertToYV16() ### denoising denoised_yv16=deinterlaced_yv16.TemporalDegrain2(degrainTR=3) ### convert to YUY2 denoised=denoised_yv16.convertToYUY2() ### convert to YV12 denoised_yv12=denoised.convertToYV12() ### sharpening sharpened_yv12=denoised_yv12.LSFmod(defaults="slow") ### convert to YUY2 with chroma from YUY2 color space sharpened=sharpened_yv12.convertToYUY2().MergeChroma(denoised) ### add borders video_restored=sharpened.addborders((crop_left+crop_right)/2,(crop_top+crop_bottom)/2,(crop_left+crop_right)/2,(crop_top+crop_bottom)/2) return(video_restored) |
![]() |
![]() |
![]() |
#282 | Link | |
Registered User
Join Date: Jun 2022
Posts: 5
|
Quote:
Both clips should have the same colorspace! (C:/Program Files (x86)lAviSynth+/plugins64+/TemporalDegrain-v2.6.4.avsi, line 441) (C:/Program Files (x86)lAviSynth+/plugins64+/TemporalDegrain-v2.6.4.avsi, line 395) Rolling back to 2.6.3 solves the problem. |
|
![]() |
![]() |
![]() |
#284 | Link |
Registered User
Join Date: Mar 2003
Location: Germany
Posts: 186
|
I found that there is a wierd inconsistent chroma shift for 420 sources. It can be upto half a pixel. Which means that when resized onto the luma, it will be twice of that.
From my investigation I found that it comes from mvtools MDegrain. I reported it here, you can take a look of the magnitue of the deviation there. I thus decided to go back to a single degrain step for the chroma. I think this is the best compromise in total. This halfs the shift introduced by mvtools, which I think is good enough. And it gives quite some speed increase, at the expense of a slightly less clean chroma. For the paranoid among us, a complete the circumvention of the chroma shift bug can be enabled by the flag "degrainAvoidChromaShift", but that is relatively expense at 10% performance cost. Also, if it is really necessary to clean the chroma more, which should be rather rarely, both degrains steps can be enabled for the chroma by the flag "degrainChromaTwoStep". This will however also enable the relatively expensive circumvention of the bug. Last edited by ErazorTT; 28th February 2023 at 18:09. |
![]() |
![]() |
![]() |
#285 | Link |
Registered User
Join Date: May 2021
Posts: 3
|
thanks for v2.6.6! Can it ported in G41fun.py Vapoursynth? Its actually v2.6.3
I have abolutely no Idea how to do this, even with googling, maybe i only need to adjust some lines? they are very different AVS and VS codelines. Can you have a look into my G41Fun.rar to show us how to adjust it, so i can use v2.6.6? Im using Staxrip and i already just Copy & Pasted the entire TemporalDegrain2 code from another G41fun.py into this one and replaced it from an old v2.4.3?. Improvising ![]() https://drive.google.com/file/d/1uPa...ew?usp=sharing Greetings Last edited by karthauzi; 3rd March 2023 at 02:08. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|