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 9th June 2019, 18:12   #1  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Video Darkened By QTGMC

I have never had such a problem when editing non-anime video but, with this DVD cartoon series, whenever I apply QTGMC, the video turns out very dark. I rip with MakeMKV, demux and then apply QTGMC(InputType=1) when encoding to x264 using MeGUI.
Danette is offline   Reply With Quote
Old 9th June 2019, 19:31   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 3,975
What do you mean very dark ? eitherway - unlikely to be QTGMC

playback settings problem ? Gpu driver ? full/limited range ?

encoding settings problem ?

source filter problem ?

Did you preview the script before encoding ? in MPCHC or Vdub2 ? If you don't apply QTGMC (comment it out) is it still "very dark"? If not, it's not QTGMC, it's something else
poisondeathray is offline   Reply With Quote
Old 9th June 2019, 20:28   #3  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Quote:
Originally Posted by poisondeathray View Post
What do you mean very dark ? eitherway - unlikely to be QTGMC

playback settings problem ? Gpu driver ? full/limited range ?

encoding settings problem ?

source filter problem ?

Did you preview the script before encoding ? in MPCHC or Vdub2 ? If you don't apply QTGMC (comment it out) is it still "very dark"? If not, it's not QTGMC, it's something else
Thanks for the response. Answering your questions:

Quote:
Originally Posted by poisondeathray View Post
What do you mean very dark ?
You can see the difference between the source and the darkened file here:
Source: http://www.mediafire.com/file/6gy41q...ource.m2v/file
Darkened by QTGMC: http://www.mediafire.com/file/0ioccj...QTGMC.mkv/file

Quote:
Originally Posted by poisondeathray View Post
playback settings problem ? Gpu driver ? full/limited range ?
No. It plays darkened on several different computers as well as a file played through the TV.

Quote:
Originally Posted by poisondeathray View Post
encoding settings problem ?
I don’t think so. I've used the same x264 settings on all other video with no problem. I’ve also tried other filters, such as TFM() and smdegrain() and the video turns out normally (same as source).

Quote:
Originally Posted by poisondeathray View Post
source filter problem ?
If you mean: “is QTGMC working correctly?” then no, because I can run other video through with QTGMC and it works fine.

Quote:
Originally Posted by poisondeathray View Post
Did you preview the script before encoding ?
I hadn’t tried that, but just did so with AvsPmod. It does not have the darkened image when viewed this way.

Quote:
Originally Posted by poisondeathray View Post
If you don't apply QTGMC (comment it out) is it still "very dark"? If not, it's not QTGMC, it's something else
When QTGMC is not used, then the video is not darkened, as mentioned in reference to TFM() and smdegrain() use. I think you meant the reverse of “If not, it's not QTGMC, it's something else” …right?

Last edited by Danette; 9th June 2019 at 20:31.
Danette is offline   Reply With Quote
Old 9th June 2019, 20:39   #4  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
First of all, that source does not need QTGMC but IVTC.

Can you show your script?
Cary Knoop is offline   Reply With Quote
Old 9th June 2019, 20:47   #5  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Quote:
Originally Posted by Cary Knoop View Post
First of all, that source does not need QTGMC but IVTC.

Can you show your script?
Yes, I know about the IVTC. In fact, I want to precede QTGMC with TFM. I use QTGMC to clean and improve because the resulting x264 file is half the size than when I don't use QTGMC. The problem started here: https://forum.doom9.org/showthread.p...97#post1876497

The script used for just QTGMC (to try to get at the darkening issue) is QTGMC().

The intended final script is:
TFM(slow=2)
QTGMC(InputType=1)
Danette is offline   Reply With Quote
Old 9th June 2019, 20:50   #6  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
Quote:
Originally Posted by Danette View Post
Yes, I know about the IVTC. In fact, I want to precede QTGMC with TFM.
That does not make any sense, TFM expects an interlaced format.
Cary Knoop is offline   Reply With Quote
Old 9th June 2019, 20:59   #7  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,030
Check also if you're using the latest version https://pastebin.com/raw/JLGwn7mE
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 9th June 2019, 21:05   #8  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 126
Quote:
Originally Posted by Danette View Post
the resulting x264 file is half the size than when I don't use QTGMC.
Probably it's half the size just because the video is dark.
lvqcl is offline   Reply With Quote
Old 9th June 2019, 22:23   #9  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Quote:
Originally Posted by Cary Knoop View Post
That does not make any sense, TFM expects an interlaced format.
From the description: "TFM is a field matching filter that recovers the original progressive frames from a telecined stream."

Quote:
Originally Posted by ChaosKing View Post
Check also if you're using the latest version https://pastebin.com/raw/JLGwn7mE
I'm not. I'll give that a try.

Quote:
Originally Posted by lvqcl View Post
Probably it's half the size just because the video is dark.
I thought about that, but have no way to test it without removing the darkening effect. Catch 22.
Danette is offline   Reply With Quote
Old 9th June 2019, 22:28   #10  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
Quote:
Originally Posted by Danette View Post
From the description: "TFM is a field matching filter that recovers the original progressive frames from a telecined stream."
Right, so do not plug a telecined stream into QTGMC.
Cary Knoop is offline   Reply With Quote
Old 9th June 2019, 22:33   #11  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Quote:
Originally Posted by Cary Knoop View Post
Right, so do not plug a telecined stream into QTGMC.
Oh, now I understand what you were trying to say. I find that, in progessive mode, QTGMC handles non-interlaced video as well as if it were interlaced.
Danette is offline   Reply With Quote
Old 9th June 2019, 22:44   #12  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 3,978
Quote:
Originally Posted by Danette View Post
The intended final script is:

TFM(slow=2)
QTGMC(InputType=1)
It's telecined, so this would give you 23.976fps and probably be better. Or is that what you meant?

TFM(slow=2).TDecimate(mode=1)
QTGMC(InputType=1)

I can't explain the QTGMC problem.
hello_hello is offline   Reply With Quote
Old 9th June 2019, 23:15   #13  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
Quote:
Originally Posted by Danette View Post
Oh, now I understand what you were trying to say. I find that, in progessive mode, QTGMC handles non-interlaced video as well as if it were interlaced.
But there are no residual interlacing artifacts in the source, are you using QTGMC as an alternative form of noise reduction?

It's a very simple source, have you tried blurring everything but the edges?
Cary Knoop is offline   Reply With Quote
Old 10th June 2019, 00:19   #14  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
Quote:
Originally Posted by hello_hello View Post
It's telecined, so this would give you 23.976fps and probably be better. Or is that what you meant?

TFM(slow=2).TDecimate(mode=1)
QTGMC(InputType=1)

I can't explain the QTGMC problem.
I was mainly speaking to the InputType=1 for handling progressive mode, but I'm not so concerned about it being 23.976fps at this point (I'll probably end up doing that, though). My main concern is eliminating that darkening effect.

Quote:
Originally Posted by Cary Knoop View Post
But there are no residual interlacing artifacts in the source, are you using QTGMC as an alternative form of noise reduction?

It's a very simple source, have you tried blurring everything but the edges?
Yes, I use QTGMC mainly for general cleanup, sharpening, shimmering removal and whatever else it does (when not concerned about deinterlacing) in a simple package as opposed tweaking multiple filters. Not sure why or how to go about blurring the edges.

Quote:
Originally Posted by ChaosKing View Post
Check also if you're using the latest version https://pastebin.com/raw/JLGwn7mE
Was able to try it, but received the error message: "I don't know what 'AvsPlusVersionNumber' means" and I have SMDegrain 3.1.2d installed. Any idea how to get around that?

I'm curious: have any posters tried running the "Sample 5 - Source.m2v" file through their own QTGMC encoder to see if they get the same darkened result?
Danette is offline   Reply With Quote
Old 10th June 2019, 00:38   #15  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,030
Newest smdegrain v3.1.2.102s https://github.com/avisynth-repository/SMDegrain
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline   Reply With Quote
Old 10th June 2019, 00:59   #16  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
I truly don't get why you need QTGMC after you perform a IVTC, just use a good denoiser.

For instance here is the clip after an IVTC and some denoising:
https://www.dropbox.com/s/y0h6lv9cpv...tones.mov?dl=0
Cary Knoop is offline   Reply With Quote
Old 10th June 2019, 02:00   #17  |  Link
Groucho2004
►◄
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,459
Quote:
Originally Posted by Cary Knoop View Post
I truly don't get why you need QTGMC after you perform a IVTC, just use a good denoiser.
He explained it:
Quote:
Originally Posted by Danette View Post
Yes, I use QTGMC mainly for general cleanup, sharpening, shimmering removal and whatever else it does (when not concerned about deinterlacing) in a simple package as opposed tweaking multiple filters.
Nothing wrong with that. I just tried it on his clip and the noise stabilization works quite nicely.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 10th June 2019 at 02:06.
Groucho2004 is offline   Reply With Quote
Old 10th June 2019, 02:16   #18  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
Well, here is the comparison with QTGMC, it's less effective.
https://www.dropbox.com/s/4th1far87p...ones2.mov?dl=0

And he may explain it but that does not mean I agree with it.
I think QTGMC is quite good at deinterlacing but it does not solve everything but the kitchen sink.

Last edited by Cary Knoop; 10th June 2019 at 02:18.
Cary Knoop is offline   Reply With Quote
Old 10th June 2019, 02:22   #19  |  Link
Danette
Registered User
 
Join Date: Apr 2013
Posts: 180
***SOLVED***

Quote:
Originally Posted by ChaosKing View Post
The updated QTGMC did the trick. Interestingly, AnimeIVTC did not work on these files either and now it does. I suspect that it was the SMDegrain 3.1.102s update that was at the crux of the solution.

Quote:
Originally Posted by lvqcl View Post
Probably it's half the size just because the video is dark.
Unfortunately, both our suspicions were right: the darkened file was much smaller because of the darkening. So, I'm back to a file that, after an x264 encode at crf 18, the file is about equal in size to the source.

Quote:
Originally Posted by Cary Knoop View Post
just use a good denoiser.
In the interest of trying this to see if it has any effect upon the size, what denoiser do you suggest, along with your suggested settings?


Thanks to all who participated in this challenge.
Danette is offline   Reply With Quote
Old 10th June 2019, 02:33   #20  |  Link
Cary Knoop
Cary Knoop
 
Cary Knoop's Avatar
 
Join Date: Feb 2017
Location: Newark CA, USA
Posts: 204
If it is size what you are worried about denoise it to the max and use hevc. Here is a sample using CRF=18 at 3.47MB:
https://www.dropbox.com/s/nkwdzkybeu...ones.hevc?dl=0

I would use BM3D in combination with KNLMeans.

The other things you might want to do is:
- stabilize the frames
- get rid of the mosquito noise.
Cary Knoop 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 03:06.


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