I've just done my first script with Avspmod and hope I'm on the right path. Any advice would be welcome. I've tried to list everything I did.
My first screen shot shows my script in Avspmod. The post filtered clip looks de-interlaced? so I'm guessing I've done something incorrect in my script.
Eventually I will watch the videos on a television so I think my final output should be interlaced?
I loaded the script into virtualdub and changed color depth to 4:2:2 YCbCr (YUY2)
Compression Huffyuv v.2.1.1
with Full processing mode.
I then added the CCD 1.7 filter and then save as AVI
I didn't sharpen in Avisynth as I wasn't sure if this was done better in VirtualDub?
I reduced the length of the post filtered opening presents 1 to get below the 99MB threshold. The opening presents 1 original was 86mb and the post filtered was 149mb
Thank you in advance.
That video looks fine to me, but I will defer to the experts re the quality.
Your processed clip is deinterlaced because QTGMC is a deinterlacer, most would say the best. That's it's primary job. It is also a noise reducer, as you can see comparing the before and after clips.
Re playing files on your TV, if they are interlaced, the TV will deinterlace them nicely as it plays them (provided it can decode them; my TV won't decode the normal analogue AVI codecs such as HUFF and Lagarith). If they are already deinterlaced ie progressive, the TV will play them with no issues as well. I don't think there's a benefit in playing interlaced computer files on a TV. Lord Smurf I think says "don't deinterlace unless you have to", but virtually every application these days, You Tube, Vimeo, Facebook, playing on the computer, sending MP4s to friends all either require deinterlaced files or will deinterlace the file when it is played, so it would seem to me that you may as well do it yourself with QTGMC.
The following users thank Hushpower for this useful post:
DG1965 (08-07-2022)
Thanks Hushpower. Yes I thought the quality is much improved. I knew the QTGMC deinterlaced but I wrongly thought the command ConvertToRGB32 (Interlaced=true) would re-interlace. Yes I've also read about newbies wanting to deinterlace straight away, it's that instant quality improvement that you get on a computer monitor. But I'm just not sure if it's better in the long run?
I tried to keep my script simple, hopefully I haven't duplicated any commands. I didn't sharpen as I wasn't sure if I should at this stage and which method is best.
I listed the before & after file sizes as I thought it might have reduced the file size once I did the Huffyuv compression? Any advice would be welcome. Thanks.
I dare not go too far into AVISynth, as it is still voodoo to me, but your frame rate has gone from 25 to 50, which will account for the file size.
QTGMC does have a setting for doubling the framerate when deinterlacing. Here are my notes:
Code:
QTGMC(Preset="Fast", FPSDivisor=2) #FPSDivisor default is 1 which gives double framerate; 2 gives orig FR
#SelectEven()
The FPSDivisor and SelectEven affect the framerate. Best look at SelectEven on the AVISynth wiki.
Also, both files are in HUFF anyway so that in itself probably won't result in any reduction. Use Mediainfo to analyse your files. Use Tree or Text view. It's very handy, revealing all sorts of good stuff about your files.
On the ConverttoRGB32, I'll defer to the experts.
That's all I'll (can) say!
The following users thank Hushpower for this useful post:
DG1965 (08-07-2022)
I've also read about newbies wanting to deinterlace straight away, it's that instant quality improvement that you get on a computer monitor. But I'm just not sure if it's better in the long run?.
No, not better. Keep archives interlaced. Encode out a compressed deinterlaced copy for watching. It will change again someday. Future proof yourself, don't ruin it to the standards of the moment.
Some things, like Youtube, now forced you to upscale for "quality". But the more you needlessly mess with video, the worse it gets. Do what is needed to appease devices (or stupid), but keep those masters interlaced, SD, low or no/lossless compression.
Thanks Lordsmurf. Interlaced it is! Should I now remove QTGMC from my script and replace it with MCTemporalDenoise? or Will the CCD do the same function in VirtualDub. I wasn't sure if my script even needs the ConvertToRGB32(Interlaced true) line. Thanks.
I've just done my first script with Avspmod and hope I'm on the right path. Any advice would be welcome.
Excellent. I never use AvsPmod, but it is a wonderful and helpful GUI for AviSynth.
Quote:
The post filtered clip looks de-interlaced? so I'm guessing I've done something incorrect in my script.
As said by HushPower the clip is deinterlaced by QTGMC in your script.
In your script you could use ConvertToYV16() rather then ConvertToYV12(interlaced=true) to keep original 4:2:2 color format.
It is ok to convertToRGB32 because you be opening the script in VirtualDub and using CCD plugin, but you shold check first that the levels are in the range 16-235 prior to the conversion. In any case interlaced=true (which has an effect only on YV12 to YUY2 or YV12 to RGB conversions) is wrong here, because the video after QTGMC is not interlaced.
Quote:
I didn't sharpen in Avisynth as I wasn't sure if this was done better in VirtualDub?
Thanks lollo2. Yes Avspmod been really helpful I was getting myself in a right mess! I will set a script up with your settings and the changes that you suggested.
Would you normally use both MCTemporalDenoiser and CCD on the same video clip or is it a case of one or the other? I will sharpen with the LSFmod you sent through to me. Thanks.
Tip from an old user: When you work on a video on AVSPmod always open it twice (2 separate tabs), one with no filters (or just the minimum) the other with all the filters, thus you can work on your script, experiment by switching tabs, you can zoom in compare before/after. Only for that i love avspmod
For your video you can try this, feel free to adapt, i haven't checked everything
Code:
LoadPlugin("C:\Program Files (x86)\AviSynth 2.6\plugins\PlanarTools-0.3.0\PlanarTools.dll")
AVISource("opening presents 1.avi")
assumetff()
# To remove the GREEN EDGE at the right
U = UtoY() # separate U channel
V = VtoY() # separate V channel
V = Crop(V,0,0,-16,-0) #remove discoloured portion and black border
extra=Crop(V,342,0,2,-0).PointResize(12,V.height)
V=StackHorizontal(V,extra).AddBorders(0,0,4,0,$808080) # add the extra, pad to 720 with grey
YtoUV(U, V, last) # mix the separate U and V with the original Y
###########
## deinterlace
qtgmc("fast",edithreads=4)
selecteven()
# Degraining / Sharpening :
McDegrainSharp(1)
mergeluma(FineSharp(),0.6)
The following users thank themaster1 for this useful post:
DG1965 (08-08-2022)
Would you normally use both MCTemporalDenoiser and CCD on the same video clip or is it a case of one or the other?
I would start with MCTemporalDenoise acting on luma only, MCTemporalDenoise(chroma=false), and then CCD to reduce the chroma smear if you have that problem.
But you can also experiment different combinations
Be careful that MCTemporalDenoise includes sharpening post-processing through LSFmod, so either you disable it or you do not sharpen later.
A channel on S-VHS / VHS capture and AviSynth restoration https://bit.ly/3mHWbkN
Thanks lollo2. I've read up regarding YV16 I understand now why you mentioned it, thank you. I will keep it 4:2:2 throughout the filtering process. Reading the LSFmod page it's color format is YV12, before I add it to my script I just wanted to check that it normally works with YV16? I'm hoping to play with your script and themaster1 scripts tomorrow.Thanks.