VHS cleaning script, lost in colorspace?
2 Attachment(s)
Hello,
I don't know how to start this, because I "play" with a lot of thing I don't really master. So I use a script to "improve quality" of my captured vhs file (see below, i have to mention that this is not my script). My captures settings : - Huffyuv AVI YUY2 file - Lagarith AVI YUY2 file - Lagarith AVI YV12 file (YUY2 from the device but YV12 in lagarith configuration mode) Issue #1 - QTGMC So basically, If I want to use QTGMC (and I want to), it only works with planar content, so YV12 in my case If I want to make it work with YUY2, I have to convert to YV12. For what I have read around this forum and other, the best is to apply all the filters and at the end, convert to YV12 if needed. In my case it's not possible, I have to use YV12 or to convert to YV12 before starting the differents filters. I must miss something... Issue #2 - Color If I want to use my script without QTGMC to avoid converting to yv12 and only use yuy2, I have strange colors in the picture (see picture below), some colors seem to be missing, the only way to retrieve the right colours is to convert to yv12 (see picture below). So is it a problem in the script or is it really impossible to perform all without yv12 ? Thanks in advance for any help Chrisbati bad colours in YUY2 Attachment 14002 Right colours in YV12 Attachment 14003 Code:
source=AVISource("U:\Mediaatraiter\usa93vhshufyuy2vdub.avi").AssumeTFF().QTGMC(preset="placebo", EdiThreads=3).crop(12,0,-24,-12).addborders(18,6,18,6) |
Use QTGMC 3.364, it supports YUY2 input. Using this version there is no need to convert to planar color space.
"Green contamination" comes from not up-to-date filters called by QTGMC. Here the versions I use with QTGMC 3.364 (you probably do not need all of them): Code:
# QTGMC Your script tries to apply an old and not too effective method about using a progressive filter (MDegrain2 with motion compansated vectors) on interlaced material. As you use QTCMC at the beginning your video is deinterlaced and you do not need it at all. Use directly the filter instead, with the parameters you prefer: Code:
c_msuper = MSuper() |
Quote:
BTW, the "interlaced" parameter doesn't do anything in your example when the source is YUY2. It's for handling YV12 chroma conversions: http://avisynth.nl/index.php/Convert#Interlaced 4:2:2 has full chroma vertically, so no special handling is required for interlaced lines. |
Quote:
|
So I tried to tune the script, maybe basic, but not easy for me, but I tried :wink2:
For the QTGCM issue with non planar, I updated all version and needed plugin of QTGMC I found on my computer. Now It works in 64bit but I still have the issue with the 32bit version, quite ennoying because most of the time the 32bit version is the one which works the best. I checked but didn't found why still have that planar issue in 32bit. I also modify the script with the new code you gave me. I hope I did it well because I can't get most of it :) I also gave up some elements like badsad or thsad because I don't know how to deal with them. Here's the first version of the new script, do you think it's correct ? Thanks in advance Chrisbati Code:
source=AVISource("U:\Mediaatraiter\usa93vhshufyuy2vdub.avi").AssumeTFF().QTGMC(preset="placebo", EdiThreads=3).crop(12,0,-24,-12).addborders(18,6,18,6) |
Try this first with 32bit AviSynth, downloadeing the version of the filters as specified and replacing my path with your location for the AviSynth filters.
We'll add more processing if you need chroma shift and chroma stabilization (cnr2 plugin). Code:
source=AVISource("U:\Mediaatraiter\usa93vhshufyuy2vdub.avi") |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.