Selur's Little Message Board
Deinterlacing problem - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Talk, Talk, Talk (https://forum.selur.net/forum-5.html)
+--- Forum: A/V Talk (https://forum.selur.net/forum-6.html)
+--- Thread: Deinterlacing problem (/thread-3998.html)



Deinterlacing problem - dsiomnainc - 04.02.2025

Hello! Maybe you can help me with some advice. 
I have a VFR video (which I've been trying to deal with for over a year now Big Grin).
It seems like I'm finally getting somewhere, but there's a problem.
Some frames still have interlacing.

[Image: _cb42fde0fd49e1e2a05d70ce2d9f97b3.jpeg]

What I do: 

First I went through the source file using DGIndex.

After run script:

LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\DGDecode.dll")
LoadPlugin("S:\soft\HEVC\MeGUI-2896-32\tools\ffms\ffms2.dll")
LoadPlugin("Z:\soft\HEVC\TIVTC-v1.0.29\x86\TIVTC.dll")


mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")
AssumeTFF()
mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")

tfm(d2v="C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v", output="Y:\matches.txt")
tdecimate(mode=4, output="Y:\metrics.txt")

And script:

LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\DGDecode.dll")
LoadPlugin("S:\soft\HEVC\MeGUI-2896-32\tools\ffms\ffms2.dll")
LoadPlugin("Z:\soft\HEVC\TIVTC-v1.0.29\x86\TIVTC.dll")


mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")
AssumeTFF()
mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")
tfm(d2v="C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v", input="Y:\e01_matches.txt", slow=2, pp=5,mode=3,scthresh=15.00)

tdecimate(mode=5, hybrid=2, dupThresh=0.04, vidThresh=1.5,sceneThresh=15.00, vfrDec=1, input="Y:\e01_metrics.txt", tfmIn="Y:\e01_matches.txt", mkvOut="Y:\tcode.txt")

So far, there are solutions to use QTGMC, but it blurs the picture a lot.
Or Viverse, which is more preferable.
By the way, I didn't quite understand the difference between Viverse and Viverse2, but it seemed to me that the first Viverse works a little better.

Maybe there are ways to fix this somehow differently, maybe I'm doing something wrong at the TIVTC level?
I saw one person's rip of this series, he just duplicated such frames, without combing.
But I wanted to make my own version, since his bitrate is insufficient.


RE: Deinterlacing problem - Selur - 04.02.2025

Quote: So far, there are solutions to use QTGMC, but it blurs the picture a lot.
QTGMC has tons of options, you probably can disable all the blurring,...
see: https://forum.selur.net/thread-3971.html and the linked threads.

If you can share a link to a sample of your source, maybe I can suggest something.

Cu Selur


RE: Deinterlacing problem - dsiomnainc - 04.02.2025

Source:
https://gofile.me/7kQw9/uTkZQ6OVa

You were right, I added QTGMC and everything worked out as expected. Thanks.

LoadPlugin("C:\Program Files (x86)\XviD4PSP 5\dlls\AviSynth\plugins\DGDecode.dll")
LoadPlugin("S:\soft\HEVC\MeGUI-2896-32\tools\ffms\ffms2.dll")
LoadPlugin("Z:\soft\HEVC\TIVTC-v1.0.29\x86\TIVTC.dll")
LoadPlugin("Z:\soft\HEVC\NNEDI3_v0_9_4_63\x86\Release_W7\nnedi3.dll")
LoadPlugin("Z:\soft\HEVC\masktools2_v2.2.30\x86\masktools2.dll")
LoadPlugin("Z:\soft\HEVC\mvtools-2.7.46-with-depans20240503\Win32\MSVC\mvtools2.dll")
LoadPlugin("Z:\soft\HEVC\RgTools-v1.2\x86\RgTools.dll")
LoadPlugin("Z:\soft\HEVC\TDeint-v1.9\x86\TDeint.dll")
LoadPlugin("Z:\soft\HEVC\FFT3dFilter-v2.10\x86\fft3dfilter.dll")
Import("Z:\soft\HEVC\Zs_RF_Shared.avsi")
Import("Z:\soft\HEVC\QTGMC.avsi")

mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")
AssumeTFF()
mpeg2source("C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v")
tfm(d2v="C:\Users\DSIOMNAINC\Desktop\kenshin\[M-KV2501] Rurouni Kenshin 01 [DVDRemux]_track1_jpn.d2v", input="Y:\e01_matches.txt", slow=2, pp=5 ,mode=5, scthresh=15.00)

tdecimate(mode=5, hybrid=2, dupThresh=0.04, vidThresh=2,sceneThresh=15.00, vfrDec=1, input="Y:\e01_metrics.txt", tfmIn="Y:\e01_matches.txt", mkvOut="Y:\tcode.txt")

QTGMC( Preset="fast")
SelectEven() 



RE: Deinterlacing problem - Selur - 04.02.2025

Happy, it worked out. Smile
If you apply it after TFM, also try using QTGMC with input type >= 1. (then the SelectEven shouldn't be necessary)

Cu Selur

Ps.: Moved the thread since it's not really Hybrid related. Smile


RE: Deinterlacing problem - dsiomnainc - 04.02.2025

Quote:If you apply it after TFM, also try using QTGMC with input type >= 1. (then the SelectEven shouldn't be necessary)

With InputType=1, unfortunately, interlacing remains


RE: Deinterlacing problem - Selur - 04.02.2025

Ah okay, it was worth a try. Smile