Tsui
24th August 2003, 14:49
As you know interlaced movies can have one of two possible field orders, bff and tff.
The correct field order is important to select the right field order in an mpeg encoder.
Manually I examine the field order with two scripts and watch them in VirtualDub :
# tff field order :
SegmentedAVISource("e:\capture\capture.avi")
SeparateFields()
# bff field order :
SegmentedAVISource("e:\capture\capture.avi")
ComplementParity()
SeparateFields()
If the script shows a smooth video then the field order ist correct, otherwise the field order is the opposite of the actual script.
No problems so far, but i want to have a script, that analyses the video and shows me the correct field order automatically.
Is that possible ?
I tried a bit with the ConditionalFilter and with the compare filter, I tried to subtract adjacent fields, but I have no solution so far.
I know that the right field order has less differences in luma an chroma than the video in wrong field order, but I don't know how I can configure avisynth to recognize those differences and create a string or something dependent on that field order and differences.
Can anyone help me ?
The correct field order is important to select the right field order in an mpeg encoder.
Manually I examine the field order with two scripts and watch them in VirtualDub :
# tff field order :
SegmentedAVISource("e:\capture\capture.avi")
SeparateFields()
# bff field order :
SegmentedAVISource("e:\capture\capture.avi")
ComplementParity()
SeparateFields()
If the script shows a smooth video then the field order ist correct, otherwise the field order is the opposite of the actual script.
No problems so far, but i want to have a script, that analyses the video and shows me the correct field order automatically.
Is that possible ?
I tried a bit with the ConditionalFilter and with the compare filter, I tried to subtract adjacent fields, but I have no solution so far.
I know that the right field order has less differences in luma an chroma than the video in wrong field order, but I don't know how I can configure avisynth to recognize those differences and create a string or something dependent on that field order and differences.
Can anyone help me ?