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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 3rd June 2015, 22:15   #1  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
QTGMC Deinterlacing Script (v3.384)

the changes from 3.33 you need to know is (there are others, you can get it from the QTGMC.avsi):-

1- it work only with 2.6 avs or avs+, avs 2.5 dropped
2- it work with YUY2 without ssetools
3- it's ready to HBD (it work in the Default settings now for 10-16 bit)


some notes:-

1- it need masktools 2.2.23 or above or you will get wrong result
2- it may need some other scripts and up-to-date plugins, see the wiki page

last version in this link
wiki page http://avisynth.nl/index.php/QTGMC
__________________
See My Avisynth Stuff

Last edited by real.finder; 20th September 2022 at 01:42.
real.finder is offline   Reply With Quote
Old 7th June 2015, 18:59   #2  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
real.finder!

Please precise plugin list for update (---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
Script error: MDegrain1 does not have a named argument "lsb"
(QTGMC.avsi, line 567)
(D:\Video\Stenyaev\testqtgmc.avs, line 3)
---------------------------
ОК
---------------------------
).
yup.
yup is offline   Reply With Quote
Old 7th June 2015, 19:07   #3  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Yup, I believe you need MVTools v2.6.0.5.
Reel.Deel is offline   Reply With Quote
Old 7th June 2015, 20:08   #4  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
There are quite many issues with the traditional way of converting DVDs

1. AnyDVD is way too expensive
2. on many DVDs there is a timestamp issue in the beginning, DGIndex warns about it and can trim it but now all of your subtitles are out of sync, the only tool I ever knew to handle this well is MakeMKV
3. You cannot open d2v with AviSynth x64 on Win10, I don't know about VapourSynth x64 but it's probably not working either

A much more modern, easier and reliable way I believe is using MakeMKV for ripping, mkvextract for demuxing and FFVideoSource with rffmode parameter to handle NTSC.
stax76 is offline   Reply With Quote
Old 7th June 2015, 20:45   #5  |  Link
creaothceann
Registered User
 
Join Date: Jul 2010
Location: Germany
Posts: 357
Quote:
Originally Posted by stax76 View Post
2. on many DVDs there is a timestamp issue in the beginning, DGIndex warns about it and can trim it but now all of your subtitles are out of sync, the only tool I ever knew to handle this well is MakeMKV
If you know how much you can fix it with AegiSub / by adding blank frames.
creaothceann is offline   Reply With Quote
Old 7th June 2015, 21:06   #6  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by creaothceann View Post
If you know how much you can fix it with AegiSub / by adding blank frames.
I agree that it's a simple matter to fix out-of-synch subs. And I also believe that using MakeMKV on DVDs is the source of a multitude of problems and that indexing a DVD using DGIndex is still the way to go and will be for a long time yet.
manono is offline   Reply With Quote
Old 7th June 2015, 21:38   #7  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
I don't know which "traditional" way stax76 refers to. If it is ripping the whole content in "File mode", I would not recommend it anyway. My recommendable solution to process DVD Video is to extract only the main movie PGC (with only one angle, if multi-angle production) using your favourite ripper in "IFO mode" (others may call it "Movie mode") and writing it out to a contiguous VOB file containing only one straight PGC with only one video stream. Even DVD Shrink (though not exactly a "ripper") can do that when authoring a new minimalistic DVD with only the main movie from an existing DVD. This "serialized" file can be processed by DGMPGDec, DGDec{NV|IM}, FFMS2, L-SMASH Works, DSS2(Mod). If you already have the whole DVD ripped to harddisk, use PGCDemux to extract the "PGC VOB".

Sorry for getting off-topic here. It's not really related to QTGMC.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Old 8th June 2015, 00:50   #8  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
If manual syncing is required then it's not really as simple as MakeMKV.
stax76 is offline   Reply With Quote
Old 8th June 2015, 08:35   #9  |  Link
yup
Registered User
 
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
Reel.Deel!
one more.
Now all work in YUY2 colorspace. All my filter chain save original chroma.
yup.
yup is offline   Reply With Quote
Old 8th June 2015, 09:13   #10  |  Link
Carpo
Registered User
 
Carpo's Avatar
 
Join Date: Dec 2002
Location: /dev/null
Posts: 1,368
Quote:
Originally Posted by stax76 View Post
If manual syncing is required then it's not really as simple as MakeMKV.
And if you rely on a program to do everything for you then you will soon run into issues.

As for QTGMC is there a list of working 64 bit filters for it, on some sources I hit the memory limit and the encode fails
__________________
The Internet: where men are men, women are men, and children are FBI Agents
Carpo is offline   Reply With Quote
Old 8th June 2015, 09:17   #11  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Quote:
Originally Posted by stax76 View Post
T
3. You cannot open d2v with AviSynth x64 on Win10, I don't know about VapourSynth x64 but it's probably not working either
I thought the issue has been fixed recently.
jpsdr is offline   Reply With Quote
Old 8th June 2015, 12:18   #12  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Carpo View Post
And if you rely on a program to do everything for you then you will soon run into issues.

As for QTGMC is there a list of working 64 bit filters for it, on some sources I hit the memory limit and the encode fails
I'm not relying on a single method but try to support as many methods as good as possible. StaxRip's eac3to demuxing GUI for Blu-ray has the same quality as other parts of StaxRip even though I use and recommend MakeMKV instead of eac3to. DGMPGDec was the first method integrated and it was always supported and working even though not recommended since very long. Unfortunately after giving up x86 several tools stopped working, DGMPGDec and QTGMC MT are not working on AviSynth+ x64, I hope the problems will be fixed as I don't plan to reactive x86 support. I also want to support VapourSynth x64 where QTGMC is said to work.

Quote:
I thought the issue has been fixed recently.
On x64 only DGDecNV (dgi) and DGDecIM (dgim) are working but not DGMPGDec (d2v) and DGAVCDec (dga), I still hope somebody fixes DGMPGDec, as far as I know ffms2 works just as well, with LWLibavVideoSource I had problems last time I tried a NTSC source, I'll try it again.

The problem with QTGMC using AviSynth+ x64 with MT is continuously dropping fps, maybe only the AviSynth+ main developer can fix it, I hope he comes back soon.
stax76 is offline   Reply With Quote
Old 8th June 2015, 18:30   #13  |  Link
jpsdr
Registered User
 
Join Date: Oct 2002
Location: France
Posts: 2,309
Sorry !! My mistake.
jpsdr is offline   Reply With Quote
Old 30th June 2015, 14:00   #14  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Hello. I'm wanting to experiment with QTGMC and SRestore on some NTSC SD animation, like such:

Code:
QTGMC(TR0=1,TR1=1,TR2=0)
SRestore(FRate=23.976,Speed=-1,Thresh=12,Cache=50)
and was hoping for help to find the least aggressive QTGMC settings with regards to denoising. Reading the html leads me to believe that:

Code:
QTGMC("Ultra Fast",TR0=1,TR1=1,TR2=0,NoiseProcess=0)
SRestore(FRate=23.976,Speed=-1,Thresh=12,Cache=50)
would be my best choice, but perhaps somebody more knowledgeable than I could improve upon this. Thanks for your time .
LouieChuckyMerry is offline   Reply With Quote
Old 1st July 2015, 01:19   #15  |  Link
William.Lemos.BR
Registered User
 
Join Date: Oct 2010
Posts: 18
Quote:
Originally Posted by LouieChuckyMerry View Post
I'm wanting to experiment with QTGMC and SRestore on some NTSC SD animation.
As far as I know, QTGMC was not designed to be used with "unnatural" material (such as animation).

Quote:
Originally Posted by LouieChuckyMerry View Post
and was hoping for help to find the least aggressive QTGMC settings with regards to denoising.
It wouldn't be wise to disable QTGMC's noise processing, it is internally necessary to make its job. Why don't you use NoiseRestore / GrainRestore parameters in order to keep the original noise, let QTGMC denoise and do its magic, and then restore the "original" noise to the output?

In the html instructions we see these examples (under "Noise Bypass / Denoising" topic) of how keep the original noise:
Quote:
# Retain Noise / Grain
QTGMC( Preset="Slower", NoiseProcess=1, NoiseRestore=1.0, Sigma=2.0 ) # Retain *all* the noise / fine detail of a less noisy source
QTGMC( Preset="Slower", NoiseProcess=1, GrainRestore=1.0, Sigma=2.0 ) # Similar to above but only keep the more "stable" noise elements (depends on TR2)

Last edited by William.Lemos.BR; 1st July 2015 at 01:21.
William.Lemos.BR is offline   Reply With Quote
Old 1st July 2015, 07:24   #16  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
As a deinterlacer with motion estimation, QTGMC relies on "true interlaced" material with a regular temporal progress from field to field. It doesn't matter much whether the content is natural or artifical, e.g. raytracers can produce fieldbased movies too. Just "stop motion" can't be handled well because the temporal progress is discrete, this will confuse the motion estimation.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 1st July 2015 at 07:26.
LigH is offline   Reply With Quote
Old 1st July 2015, 13:42   #17  |  Link
William.Lemos.BR
Registered User
 
Join Date: Oct 2010
Posts: 18
Quote:
Originally Posted by LigH View Post
As a deinterlacer with motion estimation, QTGMC relies on "true interlaced" material with a regular temporal progress from field to field.
That was exactly what I meant when I used "unnatural" in quotes, thanks!
William.Lemos.BR is offline   Reply With Quote
Old 2nd July 2015, 02:53   #18  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
William.Lemos.BR, LigH: thank you both for your answers. I asked about QTGMC for animation on this thread a couple months ago, so I should've already known the answer to this recent question. As my first major encoding project has progressed I've tried so many things that I simply forgot this fact, coming full circle. Sorry to waste your time, I promise I'll remember now .
LouieChuckyMerry is offline   Reply With Quote
Old 3rd July 2015, 12:02   #19  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
LigH: Uh, hello, I already debunked that three pages ago?

Quote:
Originally Posted by colours View Post
It's not like live action has "linear motion" of any sort at all, so you could equally well have said "deinterlacing is useless on anything other than synthetic test sequences specially designed to be deinterlaced", which is an obviously untrue statement.
Just to reiterate again, MVTools does not use temporal motion vector prediction. Ergo, "regular temporal progress from field to field" is meaningless. To quote myself again: "The only requirement is that motion compensation between frames is effective, and duplicated content is the best-case scenario for motion compensation, simply because there is no motion at all!"

Getting motion vectors for stop motion-like things is hard because of the discrete motion, as you pointed out, not because they have a low intrinsic frame rate. That's a complete red herring; it wouldn't be any different if you removed all the duplicate fields/frames manually and sped the darned thing up to 60 fps of actual animation.
__________________
Say no to AviSynth 2.5.8 and DirectShowSource!

Last edited by colours; 3rd July 2015 at 12:06.
colours is offline   Reply With Quote
Old 3rd July 2015, 12:09   #20  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Sorry, missed that reply earlier. Well, I'll try to understand your point. If the problem is not in the duplicates, where is it then? In the possibly quite suddenly changing directions and distances between each motion step?
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid
LigH is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.