I have a TFF 1080i 25fps clip. Imported it into After Effects, flagged it as TFF, brought it into a 50fps comp. For some reason, the frames/fields are in the wrong order. If I flag it as BFF it plays just fine, except it bounces up and down like crazy which makes it impossible to mask.
What's going on and how do I fix it?
+ Reply to Thread
Results 1 to 28 of 28
-
-
It works just fine in a 50fps Premiere sequence. Holds steady vertically and all the fields are in the right order.
The site is running infernally slow for me, so I didn't have the time to get a sample up earlier. -
It has the upper field stored below the lower field. Instead of the scanlines being in order: 0,1,2,3,4,5... Each pair is swapped 1,0,3,2,5,4. So they need to be swapped back. That will also change the field order from BFF to TFF. This can be done with SwapFields() in AviSynth or the Field Swap filter in VirtualDub. If you know what MJPG decoder is being used by After Effects it may have the field swap option built it. If so, enable it. Then you won't need another program to do it.
Last edited by jagabo; 30th Mar 2017 at 06:40.
-
What's the difference between storing the upper field below the lower field and BFF? How and why is it like this, and why does it work in Premiere?
If you know what MJPG decoder is being used by After Effects it may have the field swap option built it. -
Storing the scan lines in the wrong position is a spacial issue. TFF/BFF are temporal issues.
Probably because the MJPG decoder is performing the field swap. Or maybe it's just using a crappy deinterlacing method that blends the two fields together.
The field swap problem was very common in a lot of old MJPG capture devices. Hence the swap setting in the decoders. -
What version of AE are you using?
In 14.1.0.57 other than having to manually interpret to TFF, everything seems to work fine. -
I'm using CS6.
Storing the scan lines in the wrong position is a spacial issue. TFF/BFF are temporal issues.
How would I go about locating this decoder and its settings? -
Just did it again -- output to 50fps instead of 25 fps. I'm getting the expected one scanline bounce from separating fields and resizing them individually. LFF works better than UFF.
You can add a warp stabilizer to it, if it's worth the time. -
-
You can use another source filter , like ffms2 or l-smash . They might decode it correctly or swap fields by default, not sure, you have to check
shaqrulz -
LSmash's LWLibavVideoSource() swaps the fields automatically. PicVideo's MJPEG VFW decoder has the option to swap or not. VirtualDub's built in MJPEG decoder has the option (set via Ask For Extended Options.. on the Open Video File dialog).
-
Interlaced frames contain two separate half-images, called fields. They are intended to be seen one at a time, sequentially. You're not supposed to see both fields at the same time under normal playback conditions.
TFF/BFF indicates which of the two fields should be seen first. Ie, it is the temporal order in which the fields are displayed. With TFF you see the top field first, then you see the bottom field, then the next top field, and the next bottom field. With BFF it's the other way around.
Spacially... Normally, the top field (scan lines 0,2,4,6...) are stored starting at the top (hence the name) of the frame and then every other scan line. The bottom field (scan lines 1,3,5,7...) starts at the second scan line, then every other scan line. So the order of the scan lines is:
Code:0 (top field) 1 (bottom field) 2 (top field) 3 (bottom field) 4 (top field) 5 (bottom field) 6 (top field) 7 (bottom field)...
Code:1 (bottom field) 0 (top field) 3 (bottom field) 2 (top field) 5 (bottom field) 4 (top field) 7 (bottom field) 6 (top field) ...
Code:0 o 1 oo 2 ooo 3 oooo 4 ooooo 5 oooooo 6 ooooooo 7 oooooooo
Code:1 oo 0 o 3 oooo 2 ooo 5 oooooo 4 ooooo 7 oooooooo 6 ooooooo
-
VirtualDub's built in MJPEG decoder has the option (set via Ask For Extended Options.. on the Open Video File dialog).
I had LSMASH on my last install, but it's not on this one. I'm 99% sure I installed whatever pack it was that LSMASH comes in, but for the life of me I can't remember what it was called and Google isn't helping. -
First force VirtualDub to use the "AVIFile input driver..." at the Open Video File dialog. Enable "Ask for extended options..." at that dialog. Select the file, "sample.avi" and Open. At the import options filter tick "Use internal decoders...". Don't enable the "swap fields" option, the internal decoder loads the video correctly.
[Attachment 41096 - Click to enlarge]
You should then see that the video is opened with scan lines in the right order. -
First force VirtualDub to use the "AVIFile input driver..." at the Open Video File dialog.
You should then see that the video is opened with scan lines in the right order. -
Just look at the input pane in VirtualDub.
good/bad:
[Attachment 41097 - Click to enlarge] -
Of course there will be combing in parts of the picture with motion. But the parts of the picture that are still (as in the crops I posted) should not have those comb-like artifacts.
-
I wonder if this is a specific interaction between Premiere and the video clip. I put it into Vegas and served it out through a separatefields() script and both the field order and scan line order seem correct to me. I then doubled the field rate in Vegas, another way to separate fields, and once again everything looked fine. I then zoomed way into the video, but still could see absolutely no evidence that individual lines had been reversed.
P.S. Just after posting, I then tried a SwapFields() on the clip and it completely screwed it up.
So, in my testing, everything about sample.avi is OK.Last edited by johnmeyer; 31st Mar 2017 at 18:29. Reason: added information about swapfields test
-
Really? He came out the other day in support of the flat earth beliefs being voiced by a number of pro basketball players that should know better:
http://sports.yahoo.com/news/so-apparently-shaquille-oneal-is-a-flat-earther-too-03581...QDBHNlYwNzcg--
http://sportsnaut.com/2017/03/shaquille-oneal-flat-earth-truther-earth-flat/
I know having a working brain isn't a requirement for pro athletes, but ... seriously? -
It looks like AE is using whatever 64bit VFW mjpeg decoder has highest merit. So depending on what you have installed / configured you should be able to get it to work directly in AE. But it's deinterlacing isn't the best so you might want to go avisynth processing route anyways
One way to find what is being used is load the video directly into vdub 64bit . File=> file information will say what decoder is being used . (You also have to disable vdub's internal mjpeg decoder in the options; options=>preferences=> prefer internal video decoders over third party codecs DV and MJPEG is uncheckmarked)
hahaha ok manono I take it back. jordanrulez! he' s not on the list is he ? -
I wonder if this is a specific interaction between Premiere and the video clip.
I'm not trying to deinterlace, I'm trying to create an interlaced matte. Import 25fps interlaced, put into a 50fps progressive comp, create a 50fps progressive mask, output it as 25fps interlaced. -
I wonder if this is a specific interaction between Premiere and the video clip.
I'm not trying to deinterlace, I'm trying to create an interlaced matte. Import 25fps interlaced, put into a 50fps progressive comp, create a 50fps progressive mask, output it as 25fps interlaced.
Similar Threads
-
Best way to convert from progressive to interlaced in mixed footage project
By Nedo in forum Video ConversionReplies: 11Last Post: 18th Nov 2017, 08:57 -
Convert to 25P or 50P using interlaced footage
By Sir_Loin in forum Video ConversionReplies: 10Last Post: 6th May 2016, 17:08 -
Correct usage of Deblock_QED for Interlaced footage?
By VideoFanatic in forum RestorationReplies: 1Last Post: 25th Dec 2013, 16:20 -
is this footage pure interlaced, i think it is.
By mmbwdpnz in forum Newbie / General discussionsReplies: 2Last Post: 1st Dec 2012, 12:24 -
Interlaced Telcine Footage?
By elliot_123 in forum Newbie / General discussionsReplies: 23Last Post: 23rd May 2012, 17:17