PDA

View Full Version : TIVTC and DGDecode Problem.


Revgen
27th December 2005, 21:14
I'm using:

DeDot

TIVTC 1.0 Beta 7

DGDecode 1.46 Beta2

TDeint V1.0 RC2

EEDI2 V0.9


When I try to use this script:

LoadPlugin("E:\TIVTC.dll")
LoadPlugin("E:\De.dll")
LoadPlugin("E:\EEDI2.dll")
LoadPlugin("E:\TDeint.dll")
LoadPlugin("E:\dgmpgdec146b2\DGDecode.dll")
mpeg2source("H:\BEAVIS_BUTTHEAD_VOL1_D1\VIDEO_TS\B&B.d2v")
DeDot()
interp = separatefields().selecteven().EEDI2(field=1)
deinted = tdeint(edeint=interp,order=1,field=1)
tfm(order=1,mode=1,clip2=deinted,d2v="H:\BEAVIS_BUTTHEAD_VOL1_D1\VIDEO_TS\B&B.d2v")
tdecimate(mode=1)

I get a error message saying, "TFM: Illegal transitions found in your avisynth file! Please use the fixed version that has been created in the same directory as the original d2v file."

So I then proceed to use the fixed file created by TFM with this script:

LoadPlugin("E:\TIVTC.dll")
LoadPlugin("E:\De.dll")
LoadPlugin("E:\EEDI2.dll")
LoadPlugin("E:\TDeint.dll")
LoadPlugin("E:\dgmpgdec146b2\DGDecode.dll")
mpeg2source("H:\BEAVIS_BUTTHEAD_VOL1_D1\VIDEO_TS\B&B-FIXED.d2v")
DeDot()
interp = separatefields().selecteven().EEDI2(field=1)
deinted = tdeint(edeint=interp,order=1,field=1)
tfm(order=1,mode=1,clip2=deinted,d2v="H:\BEAVIS_BUTTHEAD_VOL1_D1\VIDEO_TS\B&B-FIXED.d2v")
tdecimate(mode=1)

Then I get the error message, "TFM: d2v frame does not match filter frame count (193638 vs 193636)!"

When I don't use TFM the .d2v works fine. Is there something I'm doing wrong?

tritical
27th December 2005, 23:13
Could you post the two d2v files somewhere? or upload them to this ftp:

68.119.245.113:17252
u/p: upload/upload

When I don't use TFM the .d2v works fine. Is there something I'm doing wrong? As of version v0.9.11.0+ tfm checks whether the # of frames it has info for from the d2v file matches the input frame count when using the d2v parameter and "flags" is set to something other than 3 (i.e. the information needs to correspond to the correct frame otherwise it is just hurting things). In this case, the # of frames it has info for from the fixed d2v file isn't matching the number of frames mpeg2source() reports from the same d2v.

Revgen
28th December 2005, 01:14
Files have been uploaded.

Thanks.

neuron2
28th December 2005, 06:40
Please note that with the latest DGDecode, the issue of "illegal transitions" has been transparently repaired, and there is no need for a "fixed" D2V anymore. Perhaps this should be reflected in TFM() et al.

tritical
28th December 2005, 18:59
@Revgen
The reason the counts don't match is field operation is set to 2 (ignore pulldown flags) and tfm doesn't take this into account (it assumes field operation = 0, honor pulldown flags). Anyways, you can just set flags=3 in tfm to fix the problem, and there isn't any other useful info tfm can get from the d2v when field operation=2. I might update tfm to take field_operation value into account.

@neuron2
Only problems are 1.) tfm supports d2v formats going all the way back to dvd2avi 1.76 and the older formats can only be used with mpeg2dec3 or versions of dgdecode that don't repair the problem. 2.) I haven't taken the time to see how the new dgdecode handling actually effects what fields are delievered, and in what order, when illegal transitions occur... tfm has to be able to match up the trf flags to the correct frames/fields in the stream.

Under the new operation, if there is a sequence like:

0 1 2 3 0 1 1 0 1 2 3

What is the order of the fields that are delievered by dgdecode? Or for the sequence:

0 1 2 3 0 1 2 0 1 2 3

Once I know how it operates when illegal transitions are present, I'll update the d2v routines in tfm and wont have the illegal transition checking for d2vs created with newer dgindex versions that work this way.

Revgen
28th December 2005, 21:35
Okay, I tried creating a .d2v file with Honor Pulldown ON without changing the flags parameter. TFM again believed this file had "Illegal Transitions". But fortunately, the "FIXED" file TFM created worked this time around.