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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 30th March 2022, 14:23   #141  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Updated to v1.2.2 for CPP dClip.

Also I changed CResize default.

@real.finder
I think I will stick with CFieldDeBlend then.
Ceppo is offline   Reply With Quote
Old 30th March 2022, 19:00   #142  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
I did test with pokemon sample (frame 1570 to 2410) from you

Code:
originali = last
ffapp = originali.sh_bob(0,0.5).chroma_rep #or chroma_rep2 see dchr below
getparity(originali) ? ffapp.interlaced60or50 : ffapp.interlaced60or50(bff=true) #reinterlaced
MergeLuma(originali)
bob = qtgmc(EdiMode="BWDIF+EEDI3",Sharpness=0, Refinemotion=true, n16=true, TV_range=true, tr2=2)
CTelecine(dclip=Blur(1.58,0))
CPostProcessing(dclip=vsMSharpen().blur(1.58,0).RemoveGrain(),edeint2=bob.CFieldDeBlend())
it can be improved more, one of the problems is qtgmc don't like anime
__________________
See My Avisynth Stuff

Last edited by real.finder; 30th March 2022 at 19:02.
real.finder is offline   Reply With Quote
Old 30th March 2022, 20:04   #143  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Can you show me a frame in the source that the chroma repair can handle and CFieldDeBlend can't?

Code:
bob = qtgmc(EdiMode="BWDIF+EEDI3",Sharpness=0, Refinemotion=true, n16=true, TV_range=true, tr2=2)
CTelecine(dclip=Blur(1.58,0))
CFieldDeBlend() #CFieldDeBlend works only after fieldmatching
CPostProcessing(dclip=vsMSharpen().blur(1.58,0).RemoveGrain(),edeint2=bob) #This dClip gives me more false positive than default
Also, default CPostProcessing is meant to detect every mouth, so is very sensitive. You might want to change blksize/blkthr to get less of them, but some mouth might escape the check.

BTW, I think is good to use as fewer filters as possible, instead of vsMSharpen you might want to try CSharpen so that the script doesn't have much external dependency. As it is now you need:
1- QTGMC
2- vsMSharpen
3- Removegrain
4- BWDIF
5- EEDI3
6- CTools
Aside Removegrain/QTGMC, I don't think that the others are in everyone folders (I had to download them).

Also, I'm working on CTGMC, still alpha, when I'm done studing QTGMC we can try with that.

Last edited by Ceppo; 30th March 2022 at 20:15.
Ceppo is offline   Reply With Quote
Old 30th March 2022, 22:57   #144  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Can you show me a frame in the source that the chroma repair can handle and CFieldDeBlend can't?
the point that I like to be safe and use all privileges from the filters, I didn't test much to know the Pros and Cons of CFieldDeBlend but anyway chroma_rep was based on srestore IIRC so I think it can not only replace Blend frame but also mix frames to get less Blend

Quote:
BTW, I think is good to use as fewer filters as possible
I agree, but at the same time if I can get more quality I will mix some filters, at least this is the case that was in old sanimebob
__________________
See My Avisynth Stuff

Last edited by real.finder; 30th March 2022 at 23:00.
real.finder is offline   Reply With Quote
Old 31st March 2022, 14:29   #145  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
@real.finder
Today I tried implementing my bob idea from scratch, looks there is less blending/shimmering. It lacks a lot of things, however, seems promising for Anime sources. Can I PM you the test script to hear your opinion?
Ceppo is offline   Reply With Quote
Old 31st March 2022, 14:52   #146  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Can I PM you the test script to hear your opinion?
sure, why not?
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 31st March 2022, 15:43   #147  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
I sent it (I hope), if you didn't get it, please tell me.
Ceppo is offline   Reply With Quote
Old 2nd April 2022, 13:50   #148  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 365
These CTools plugins are great, thank you.

Any chance to get a 64bit version of IsCombedT (part of TCombMask) ?
__________________
(i have a tendency to drunk post)
mastrboy is offline   Reply With Quote
Old 2nd April 2022, 14:49   #149  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
At the moment I'm full of stuff to do. Like HBD/linux/Vapursynth CTools then I have CTGMC and CBicubicResize to do, so I don't have time. Also, I never used that filter so I'm not interested in messing with it. I see that the creator is tritical and he probably used some C++ concept that I have yet to study. So you might want to make a request on the forum or something, hoping that some true programmer will help you out.
Ceppo is offline   Reply With Quote
Old 2nd April 2022, 18:31   #150  |  Link
mastrboy
Registered User
 
Join Date: Sep 2008
Posts: 365
Quote:
Originally Posted by Ceppo View Post
At the moment I'm full of stuff to do. Like HBD/linux/Vapursynth CTools then I have CTGMC and CBicubicResize to do, so I don't have time. Also, I never used that filter so I'm not interested in messing with it. I see that the creator is tritical and he probably used some C++ concept that I have yet to study. So you might want to make a request on the forum or something, hoping that some true programmer will help you out.
Thanks for the fast reply, no problem, I'll try to solve this some other way.
__________________
(i have a tendency to drunk post)
mastrboy is offline   Reply With Quote
Old 2nd April 2022, 18:51   #151  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
I posted CQTGMC in the first post. I will add parameters and stuff under request since it already does what I care about.
Ceppo is offline   Reply With Quote
Old 3rd April 2022, 17:13   #152  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
Progressive Frame
QTGMC
CQTGMC

Here are some screenshots to see the difference, as you can see CQTGMC does a better job than QTGMC, but it is slower. The intent is to use CQTGMC with CPostProcessing to reduce its usage to leftover combed so you don't need years to encode a movie. If you want a faster solution then you should stick to QTGMC, in the future, I might try some faster settings to see if it still does it better at the same speed.

Last edited by Ceppo; 3rd April 2022 at 17:17.
Ceppo is offline   Reply With Quote
Old 3rd April 2022, 18:23   #153  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,788
As long it is not "feisty2 slow" (0.01 fps) I prefer quality over speed.
Result looks great, no artifacts + no oversharpened look like in the qtgmc version, very nice!
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 3rd April 2022, 18:30   #154  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
To me it runs at 6 fps while QTGMC is 20fps, so I need to fix this speed gap.
Ceppo is offline   Reply With Quote
Old 8th April 2022, 07:28   #155  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: On a need to know basis.
Posts: 893
Quote:
Originally Posted by Ceppo View Post
Can you show me a frame in the source that the chroma repair can handle and CFieldDeBlend can't?

Code:
bob = qtgmc(EdiMode="BWDIF+EEDI3",Sharpness=0, Refinemotion=true, n16=true, TV_range=true, tr2=2)
CTelecine(dclip=Blur(1.58,0))
CFieldDeBlend() #CFieldDeBlend works only after fieldmatching
CPostProcessing(dclip=vsMSharpen().blur(1.58,0).RemoveGrain(),edeint2=bob) #This dClip gives me more false positive than default
Also, default CPostProcessing is meant to detect every mouth, so is very sensitive. You might want to change blksize/blkthr to get less of them, but some mouth might escape the check.

BTW, I think is good to use as fewer filters as possible, instead of vsMSharpen you might want to try CSharpen so that the script doesn't have much external dependency. As it is now you need:
1- QTGMC
2- vsMSharpen
3- Removegrain
4- BWDIF
5- EEDI3
6- CTools
Aside Removegrain/QTGMC, I don't think that the others are in everyone folders (I had to download them).

Also, I'm working on CTGMC, still alpha, when I'm done studing QTGMC we can try with that.
Hi Ceppo,

I'm trying to get ### DEINTERLACER #### CQTGMC by Ceppo to run with RipBot...

Not having much luck, are these ALL the dependencies it needs ??

I keep getting errors in CQTGMC.avs
__________________
Long term RipBot264 user.

RB 1.27.1 (std)
RB 1.27.1 (fully loaded, OOD)
PD 7.5 (new)
TDS is offline   Reply With Quote
Old 8th April 2022, 07:42   #156  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,128
Read from here and add vinverse.dll
https://forum.doom9.org/showthread.p...96#post1966996
kedautinh12 is offline   Reply With Quote
Old 8th April 2022, 07:51   #157  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: On a need to know basis.
Posts: 893
Quote:
Originally Posted by kedautinh12 View Post
Read from here and add vinverse.dll
https://forum.doom9.org/showthread.p...96#post1966996
Thanks again, ked, you're the best

I was trying with this :-

LoadPlugin("%AVISYNTHPLUGINS%\BWDIF\BWDIF.dll")
LoadPlugin("%AVISYNTHPLUGINS%\CTools\CTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\EEDI3\EEDI3.dll")
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\nnedi3\nnedi3.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RemoveGrain\RemoveGrain64.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\QTGMC.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\CQTGMC.avs")
video=CQTGMC(video, Sharpness=0.25, thSAD1=192, thSAD2=320, thSAD3=128, thSAD4=320)
__________________
Long term RipBot264 user.

RB 1.27.1 (std)
RB 1.27.1 (fully loaded, OOD)
PD 7.5 (new)

Last edited by TDS; 8th April 2022 at 07:55.
TDS is offline   Reply With Quote
Old 8th April 2022, 09:33   #158  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,128
You can use rgtools replace removegrain64
kedautinh12 is offline   Reply With Quote
Old 8th April 2022, 12:32   #159  |  Link
Ceppo
Registered User
 
Join Date: Feb 2016
Location: Nonsense land
Posts: 339
You need:
rgTools.dll
masktools2.dll
mvtools2.dll
nnedi3.dll
To run CQTGMC(), if you don't tell me what kind of error you are getting, I can't help
Ceppo is offline   Reply With Quote
Old 9th April 2022, 02:01   #160  |  Link
TDS
Formally known as .......
 
TDS's Avatar
 
Join Date: Sep 2021
Location: On a need to know basis.
Posts: 893
Quote:
Originally Posted by Ceppo View Post
You need:
rgTools.dll
masktools2.dll
mvtools2.dll
nnedi3.dll
To run CQTGMC(), if you don't tell me what kind of error you are getting, I can't help
Thanks Ceppo,

I was using these :-

https://forum.doom9.org/showthread.p...65#post1966665

As it was the only "list" of dependencies I could find, and that's now also why I was getting errors.

If I get some errors now, I will let you know.

UPDATE:-

I got it to work

Code:
#Custom
LoadPlugin("%AVISYNTHPLUGINS%\CTools\CTools.dll")
LoadPlugin("%AVISYNTHPLUGINS%\masktools\masktools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\mvtools\mvtools2.dll")
LoadPlugin("%AVISYNTHPLUGINS%\nnedi3\nnedi3.dll")
LoadPlugin("%AVISYNTHPLUGINS%\RgTools\RgTools.dll")
Import("%AVISYNTHPLUGINS%\scripts\extras\CQTGMC.avs")
Import("%AVISYNTHPLUGINS%\scripts\extras\QTGMC.avs")
video=CQTGMC(video, Sharpness=0.25, thSAD1=192, thSAD2=320, thSAD3=128, thSAD4=320)
Cheers
__________________
Long term RipBot264 user.

RB 1.27.1 (std)
RB 1.27.1 (fully loaded, OOD)
PD 7.5 (new)

Last edited by TDS; 9th April 2022 at 03:42.
TDS 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:38.


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