PDA

View Full Version : DGParse help ...


kitsaros2000
21st February 2005, 15:10
I dont know if my question is correct but with my little knowledge i found out that DGParse can autodetect if an d2v is interlaced telecined etc ...
Since im making a tool and i want to find out if the d2v is interlaced or not can someone tell me how can i read the resukt of DGParse
like these :
[GOP START]
12: 12,12.......................2
13: 13,13.......................2
14: 14,14.......................2
15: 15,15.......................2
16: 16,16.......................2
17: 17,17.......................2
18: 18,18.......................2
19: 19,19.......................2
20: 20,20.......................2
21: 21,21.......................2
22: 22,22.......................2
23: 23,23.......................2
24: 24,24.......................2
[GOP START]

Can someone kindly write all the cases (most of the cases) ?
The source that i have posted is an progressive pal . Can someone help me out ?
Thx !

neuron2
21st February 2005, 15:30
DGParse just reports what the MPEG2 stream flags are set to. In many cases, they are wrong or misleading. For example, you can start with progressive video and then *encode* it as interlaced.

IMHO, the information is not reliable enough on its own.

BTW, although the current D2V format contains the progressive_frame flag, DGParse doesn't show it.

kitsaros2000
21st February 2005, 16:44
Thx so i must use the interlation script that uses autogk ?
Like this one :

LoadPlugin("C:\PROGRA~1\AutoGK\DGMPGDec\DGDecode.dll")
LoadPlugin("C:\PROGRA~1\AutoGK\filters\decomb.dll")
file="E:\interlace.log"
global sep="-"
function IsMoving() {
global b = (diff < 1.0) ? false : true}
mpeg2source("E:\agk_tmp\test.d2v")
c = SelectRangeEvery(180,18)
global clip = c
c = WriteFile(c, file, "a", "sep", "b")
c = FrameEvaluate(c, "global a = IsCombed(clip, 32)")
c = FrameEvaluate(c, "IsMoving")
c = FrameEvaluate(c,"global diff = 0.50*YDifferenceFromPrevious(clip) + 0.25*UDifferenceFromPrevious(clip) + 0.25*VDifferenceFromPrevious(clip)")
crop(c,0,0,4,4)

neuron2
21st February 2005, 17:32
I don't know what you must use for your tool. All I know is that the flags are not a reliable way to determine whether the content is truly interlaced or not.

kitsaros2000
22nd February 2005, 00:53
thx neuron2 for your effort !
I will try to find out how can i do it !

Have a nice day :cool: