Log in

View Full Version : Really messed up frames/fields - needs fixing


MrVideo
30th April 2015, 08:38
I have a video that has major issues. I'll try and describe the issues, but will provide a link to a sample at the end of this posting.

A description of what it is supposed to be is 29.97 interlaced repeat frame conversion from 23.976 to 29.97, instead of 2:3 pulldown.

But, the fields within the frames are reversed. That is easy, since swapfields() can take care of that. But, the problem is worse than that. Add to it that a field from frame 0, is placed into frame 1, sliding the field from frame 1 into frame 2. And so on.

What I need to do is keep the 29.97 repeat frame format. I have no idea how to shift a field by a frame, in order to get the two fields back together in the same frame. Once that is done, I am assuming that the swapfields() can then be used (or it could possibly be used first).

Thanks for any pointers on how to fix this video.

95 MB sample video removed.

colours
30th April 2015, 11:07
Desynced fields can be fixed with DoubleWeave().SelectOdd(), but since in this case you need to swap the fields as well, you could use something like this to do both at once.

source("video.ts")
SeparateRows(2)
DeleteFrame(0)
WeaveRows(2)

If you want to IVTC it, you could use TFM(order=0).TDecimate() for that.

MrVideo
30th April 2015, 18:04
Thanks for the info. That pretty much does the trick. I wanted to keep the 29.97 interlaced result for other processing before I did IVTC.

The original was supposed to be 2:2:2:4, i.e., repeat frame pulldown. The 5th frame being a messed up two different field frame still allows selectevery() to be used on the video.

Thanks again.