PDA

View Full Version : REQ: A script to automatically deal with field-dominance switching.


Revgen
23rd February 2008, 02:33
I cap B-ball games in HDTV, but whenever I cap them from this one channel all of them have a problem where the field-dominance will shift from TFF to BFF and back and forth throughout the game.

Currently the only way I know to solve this is to do.

clipwithBFFframes=clip.JDL_ReverseFieldDominance
clipwithTFFframes=clip

trim(clipwithTFFframes,0,500)+(clipwithBFFframes,501,0)

This solution is rather long and painstaking, and takes hours to do.

Is there a way to solve this issue automatically using certain conditional filters or checking methods?

Thanks.

PS

Here's a short edited clip from one of the games. The clips starts out as TFF and turns into BFF at the end.

http://www.mediafire.com/?00vgjjjysc1

neuron2
23rd February 2008, 02:53
I don't see any field order transition in that clip. I served it with DGMPGDec (Honor Pulldown Flags) and then stepped through the fields using SeparateFields(). Motion always proceeded forward.

What makes you think there is a field order transition?

The soft flagging changes like this:

2 2 2 2 3 0 0 0 ...

But that is legal and not a problem for the display order if the flags are honored. If you open it in something that doesn't honor the pulldown, then you may have a problem.

Revgen
23rd February 2008, 04:22
Hmm... That seemed to do the trick. I usually don't use honor pulldown flags on non-film material because of problems it caused in the past. Then again, that was a long time ago, and perhaps the problems are sorted out now.

Thanks for the help.

I play these vids in VLC Player and it has problems with them, so I guess VLC Player doesn't honor the flags.