TPRIVTC可以在AVS中导入TMPGENC的TPR文件,达到IVTC的目的。
Disclaimer
----------
This plugin is released under the LGPL license. You must agree to the terms of
'Copying.txt' before using the plugin or its source code.
What it does
------------
Takes the list of frames contained in a Tsunami MPEG Encoder Project File (.TPR)
to take from a doubleweaved stream, performing this way a process of Inverse
Telecining. The filter can process the deinterlacing method choosen but only to
that extent:
- If the mode derives from or is 'odd', odd field will be interpolated from
consecutive lines of the even field
- If the mode derives from or is 'even/odd' or 'even', even field will be
interpolated from consecutive lines of the odd field
- If the mode derives from or is 'double', even and old field will be blended
together
- If the mode is 'normal' no deinterlacing will be performed
It can process most colorspaces:
- YUY2 (plain YUV untested)
- RGB24 (alpha channel of RGBA/32 may contain undesired data, but all is untested)
- YV12 (I420 untested)
Syntax
------
DoubleWeave().TPRIVTC(<string file.TPR>,<debug mode>
with
<string file> (full)name of the TPR project file
eg: "C:\Capture\TV1.tpr"
<debug mode> true/false
Switches one/off the DebugOutputString
Some more information
---------------------
Source code is included and is able to read:
- Total number of IVTC'ed frames.
- Number of the frames to take from the doubleweaved video stream.
- Mode decision
Are left to exploit:
- A number in the header
- A byte in the frame information
- The FrameCache list
The interpolation/blending functions are mmx'ed.
This filter was shortly tested with YUY2 and YV12 data.
Revision history
----------------
- v1.0.x (=TODO): use smarter deinterlacer like decomb's for really interlaced
frames (where even/double produce ugly results); speed up things for iSSE CPUs
- v1.0.2: fix to frame info, and frames should be properly deinterlaced with
methods 'odd', 'even' or 'double'; this should definitively fix all problems
encountered in past with previous versions that were using hacks to go around
some misunderstanding
- v1.0.1: fixed 'MOD65536' bug (ie, if frame 65536 from doubleweaved source was
used frame 131072 was used)
- v1.0.0: initial release
Aknowledgements
---------------
TMPEG and TPR file format ?998-2003 Hiroyuki Hori / Pegasys Inc.
TPRIVTC filter name by 'Daxab' |