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 29th June 2009, 16:24   #1  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
Blend frames when doing decimate

Is there a decimation plugin/script that can blend duplicate frames instead of simply killing them? This would give some additional quality for those sources in which the remains of interlacing are still visible after telecining and decimation (like those of my AVCHD camcorder's 24p mode).
Efenstor is offline   Reply With Quote
Old 29th June 2009, 17:03   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Both Decimate() and TDecimate() can do it. Refer to the respective users manuals.

IMHO, you'd be better off fixing your residual interlacing issue. It shouldn't be happening. Can you post an unprocessed source sample that we can use to duplicate the problem?
Guest is offline   Reply With Quote
Old 29th June 2009, 17:47   #3  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
Here it is:


The 60i to 24p script is the following:
Code:
AVISource("ZZZ.avi")
AssumeTFF()
ConvertToYV12(interlaced=true)

Telecide(guide=1)
Decimate()
Sharpen(1)
I need some sharpening, since the source is too soft. ZZZ.avi is the directly converted source H264 MTS. I used Vegas Movie Studio Platinum 9.0 for the MTS to AVI conversion, but it is not the source of the problem, the other converters give the same results.

Last edited by Efenstor; 29th June 2009 at 17:50.
Efenstor is offline   Reply With Quote
Old 29th June 2009, 19:43   #4  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Quote:
Originally Posted by Efenstor View Post
Here it is
I was referring to posting an unprocessed source sample video clip.
Guest is offline   Reply With Quote
Old 29th June 2009, 18:39   #5  |  Link
vampiredom
Registered User
 
Join Date: Aug 2008
Posts: 233
Is this a 24p clip with pulldown added or a "true" 60i clip?
vampiredom is offline   Reply With Quote
Old 29th June 2009, 21:16   #6  |  Link
vampiredom
Registered User
 
Join Date: Aug 2008
Posts: 233
Quote:
I used Vegas Movie Studio Platinum 9.0 for the MTS to AVI conversion
Why not try neuron2's DGAVCDec instead -- and choose "Force Film"? That should work, no?
vampiredom is offline   Reply With Quote
Old 29th June 2009, 22:18   #7  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Quote:
Originally Posted by vampiredom View Post
Why not try neuron2's DGAVCDec instead -- and choose "Force Film"? That should work, no?
Force Film is not a current feature of DGAVCDec.
Guest is offline   Reply With Quote
Old 30th June 2009, 03:04   #8  |  Link
vampiredom
Registered User
 
Join Date: Aug 2008
Posts: 233
Perhaps I'm confused: Doesn't DGAVCIndex have a Video / Field Operation / Forced Film option? It appears to, and the feature is referenced in the manual. No?
vampiredom is offline   Reply With Quote
Old 30th June 2009, 03:27   #9  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Did you test it through DGAVCDecode.dll?

How would I know, I only wrote the program.

I better add that to the release notes.
Guest is offline   Reply With Quote
Old 30th June 2009, 02:57   #10  |  Link
shoopdabloop
Registered User
 
Join Date: Mar 2009
Posts: 166
what about

TDeint(1,-1,edeint=separatefields().EEDI2(field=-2))

for deinterlacing to 60p while leaving non-interlaced frames untouched, then getting rid of the extra frames for 24p?
shoopdabloop is offline   Reply With Quote
Old 30th June 2009, 04:06   #11  |  Link
vampiredom
Registered User
 
Join Date: Aug 2008
Posts: 233
Honestly, I cannot recall if I have ever used the Forced Film option in DVAVCIndex before. I don't really have any pulled-down 24p h.264 to test at the moment. I am hoping that Efenstor can avail the original AVCHD clip so it can be checked out.
vampiredom is offline   Reply With Quote
Old 30th June 2009, 07:43   #12  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
The clip was shot in the true 24p mode, but the stream produced by the camera is the telecined 60i, that's why I need IVTC. I can't use DGAVCDecode because it gives these artifacts with all of my source files (yes, my camcorder is Canon HF100, and as far as I know, the artifacts are caused by the bi-directional coding which is still unsupported by ffmpeg). The clip itself coming soon...

Last edited by Efenstor; 1st July 2009 at 11:03.
Efenstor is offline   Reply With Quote
Old 30th June 2009, 08:06   #13  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
By the way, just donated for DGAVCDecNV, will try it.
Efenstor is offline   Reply With Quote
Old 30th June 2009, 10:39   #14  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
Okay, now: http://www.efenstor.net/external/00066_trimmed.mts (72.4 MB). By the way, I give my permission to copy and use this file for any other AVC-related researching.
Efenstor is offline   Reply With Quote
Old 30th June 2009, 14:30   #15  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
It's hard telecined, so Force Film would not help.

The material is difficult for an adaptive field matcher. Since it is a constant pattern throughout, you can do it the old fashioned way:

loadplugin("dgdecodenv.dll")
DGSource("E:\tmp\00066_trimmed.dga")
assumetff()
separatefields()
selectevery(10,0,1,2,3,6,5,8,9)
weave()
trim(2,0)

I have the trim at the end because the first few frames are apparently not in pattern for some reason.

You'll have to determine the correct selectevery() invocation (telecine phase) for each clip.
Guest is offline   Reply With Quote
Old 1st July 2009, 11:02   #16  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
Tried different methods and it seems that the best possible quality for Canon HF100 24p mode is achievable with DGAVCDecNV (without NVidia deinterlacing) + nnedi2 + Decimate.
neuron2, thanks for the help and DGAVCDecNV! It decodes my videos with excellent quality and no artifacts (hence I conclude no ffmpeg code is used there).
Efenstor is offline   Reply With Quote
Old 1st July 2009, 16:27   #17  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
No, TFM(mode=4) + TDecimate() is the best.
Efenstor is offline   Reply With Quote
Old 1st July 2009, 17:31   #18  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,922
Best is relative. Don't forget rule 12.

Actually, any heuristic matcher is going to make mistakes that you won't get with the script I gave you.
Guest is offline   Reply With Quote
Old 1st July 2009, 18:59   #19  |  Link
Efenstor
Registered User
 
Join Date: Aug 2008
Location: Krasnoyarsk, Russian Federation
Posts: 89
Considering the amount of video I shoot and edit, it's impossible to use manual IVTC as you've suggested. I know that method is the best but unfortunately each scene has its own pulldown sequence offset, because the camcorder starts recording immediately after pressing the button and the internal frame format is always 60i. Hence I have nowhere to run from the automated methods.

Last edited by Efenstor; 1st July 2009 at 19:04.
Efenstor 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 05:53.


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