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 17th January 2019, 23:42   #1  |  Link
Vitality
Registered User
 
Join Date: Oct 2018
Posts: 54
TDecimate vs. Srestore?

This is my IVTC script using TDecimate:
Code:
Q = QTGMC(Preset="Medium", FPSDivisor=2)
TFM(D2V="%source_file%", slow=2, cthresh=4, mi=25, clip2=Q)
TDecimate(mode=1)
And using Srestore:
Code:
Q = QTGMC(Preset="Medium", FPSDivisor=2)
TFM(D2V="%source_file%", slow=2, cthresh=4, mi=25, clip2=Q)
LoadPlugin("J:\StaxRip-x64-2.0.0.0\Apps\Plugins\avs\GRunT\GRunT.dll")
Import("J:\StaxRip-x64-2.0.0.0\Apps\Srestore.avsi")
Srestore(frate=23.976)
When I used TDecimate, I got some sort of weird chroma ghosting on one frame. Srestore didn't cause that. https://i.imgur.com/HXc96LC.png

But there seems to be some sort of weird issue in a panning shot. Here's the VOB:
https://cdn.discordapp.com/attachmen..._1.demuxed.m2v
https://cdn.discordapp.com/attachmen...9/srestore.mkv

Is it just me, or is the panning shot in the Srestore a lot worse than the VOB? What is causing this?
Vitality is offline   Reply With Quote
Old 18th January 2019, 06:41   #2  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 669
There's no need to use SRestore, you can use TDecimate.

Indexed sample with DGIndex:


Original telecined footage shown by Mpeg2Source:


IVTC frame with tdeint + tdecimate:


Unfortunately, since I'm at work, I can only encode XDCAM-50 PAL files, but anyway, this should do it:

Code:
#Indexing
MPEG2Source("VTS_06_1.demuxed.d2v")

#Inverse telecine
tfm(mode=1,pp=5,slow=2,micmatching=2,clip2=tdeint(mode=2,type=3)) 
TDecimate(mode=2, rate=23.976)

#Cropping inactive lines
Crop(4, 4, -4, -4)

#Preserving 4:3 AR with 16:9 1.33 PB resolution
AddBorders(62, 0, 62, 0)

#4% PAL speed-up
AssumeFPS(25, 1, true)

#Antialiasing
maa2(mask=1, chroma=true, ss=2.0, aa=70, show=0)

#Denoise
TNLMeans(Ax=4, Ay=4, Az=0, Sx=2, Sy=2, Bx=1, By=1, ms=false, rm=4, a=1.0, h=0.5, sse=false)

#Converting BT.601 to BT.709
ColorMatrix(mode="Rec.601->Rec.709", clamp=true, interlaced=false, threads=0, thrdmthd=0, opt=3)

#Upscale
LanczosResize(1920, 1080)

#Clipping
Limiter(min_luma=16, max_luma=235, min_chroma=16, max_chroma=240)

#Converting from 4:2:0 planar to 4:2:2 planar
Converttoyv16(interlaced=false)


Encoded sample: https://we.tl/t-xoe4y6XDoq

It doesn't look bad, actually.
Anyway, since there's no need to use XDCAM-50 PAL as output format, just avoid the PAL speed-up (with eventual pitch adjustment) and ignore the 4:2:2 planar conversion; as to the upscale, you would be better off with NNEDI3 but I suggest you not to go over HD (1280x720), 'cause there's really no need to go to FULL HD like I did, unless you have to prepare something for air-time. Anyway, as I said, since I'm at work, I *had* to encode in XDCAM-50 PAL FULL HD.

Cheers,
Frank.
__________________
Broadcast Encoder
Avisynth memes: 1 - 2 - 3
Videotek - Audacity XP

Last edited by FranceBB; 18th January 2019 at 06:49.
FranceBB is offline   Reply With Quote
Old 21st January 2019, 19:18   #3  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 3,978
Quote:
Originally Posted by Vitality View Post
Is it just me, or is the panning shot in the Srestore a lot worse than the VOB? What is causing this?
Srestore is designed to remove field blending and you'd normally bob de-interlace first
ie de-interlace to 59.94fps followed by SRestore.
You don't want to de-interlace so it's not the right tool for the job.
hello_hello 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 06:57.


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