Is it easy to convert from TFF to BFF with AviSynth? Is the avs script below a proper way to convert from tff to bff?
Or there is a better way to convert from tff to bff than the method in the above avs script?Code:LoadPlugin("drive:\path\to\DGDecode.dll") MPEG2Source("drive:\path\to\dgindex project.d2v") AssumeTFF SeparateFields() Trim(1, 1000) # from a total of 1000 frames Weave() AssumeBFF
+ Reply to Thread
Results 1 to 15 of 15
-
Last edited by codemaster; 23rd Sep 2013 at 22:47.
-
No. Your sample is not correct. It doesn't change the physical relationship of interlaced fields, it changes only the way an editor or player reads the field order.
Why ?Last edited by sanlyn; 21st Mar 2014 at 10:38.
-
Gonna have to disagree. The posted script implements the SeparateFields().Trim(1,0).Weave() method which does alter the image and not just the metadata. Note, codemaster, that "0" at the end of the Trim command lets you select the last frame of the video without cutting anything.
Are you doing this to align out-of-phase 25i material? -
I disagree again. If the original field order was really BFF, the results of the routine are an incorrect alteration. The original file doesn't change unless it is overwritten with the new data -- and it's rather difficult with many operating systems to read and write to the same file at the same time. The O.P. didn't say whther a desired correction was being made, therefore my post ended with: "Why?".
Last edited by sanlyn; 21st Mar 2014 at 10:38.
-
That script will convert a TFF video to BFF. Another method is to shift the frame up (or down) by one scan line:
Code:# YUY2 or RGB video Crop(0,1,-0,-0) # remove top scan line AddBorders(0,0,0,1) # add one scan line to the bottom
Code:# TFF (or BFF) interlaced YV12 video ConvertToYUY2(interlaced=true) Crop(0,1,-0,-0) # remove top scan line AddBorders(0,0,0,1) # add one scan line to the bottom # TFF converted to BFF (or BFF converted to TFF) ConvertToYV12(interlaced=true)
-
That's what I was trying to get at. Thanks for the code. I looked everywhere.
Last edited by sanlyn; 21st Mar 2014 at 10:41.
-
Because I'm trying to edit a DVD in a NLE such as Premiere or Vegas, and the most popular solution seems to be to transcode to DV, and since standard DV is BFF, I wanted to know how to properly convert from tff to bff, in avisynth, so that I can transcode to DV bff with ffmpeg, using the avs script as input.
I could leave it TFF and transcode to lossless Lagarith, but that means I'll have to use this:
Code:Levels(0, 1, 255, 16, 235, coring=false)
I could leave it TFF and not transcode it, but with mpeg 2 clips in Vegas Pro 8, scrubbing is very slow, ram usage is so high that there is not enough ram left for rendering, project opens too slow. And Premiere Pro CS3 accepts the mpeg 2 files, scrubbing is fast, but project opens too slow, some frames have weird green and red artifacts, and Premiere never stops conforming the mpeg files.
Therefore, I arrived at the following conclusion:
- for editing DVD in a NLE on Windows, DV is the best codec to transcode to;
- for editing AVCHD in a NLE on Windows, DNxHD is the best codec to transcode to;Last edited by codemaster; 24th Sep 2013 at 14:54.
-
-
If I leave the levels just as they are, some detail in the high tones (or superwhites) will be lost. If I transcode to DV, I can recover detail in premiere, by using the fast color corrector to lower the high tones until they reach 100% or 1.0v on the yc waveform. There is something in those superwhites that can be recovered. If I add
Code:Levels(0, 1, 255, 16, 235, coring=false)
Code:Levels(0, 1, 255, 16, 235, coring=false)
Last edited by codemaster; 24th Sep 2013 at 15:18.
-
-
-
You're reducing 256 integer values to 236 integer values. There has to be some duplicates in the result. That's what those lines are. You can use SmoothLevels() instead of Levels() to add a little dithering to the results. SmoothLevels() is part of the SmoothAdjust package.
Last edited by jagabo; 24th Sep 2013 at 16:30.
-
Similar Threads
-
How to determine TFF or BFF for deinterlacing?
By enim in forum Newbie / General discussionsReplies: 16Last Post: 28th May 2013, 10:39 -
MiniDV no firewire analog conection to PC BFF or TFF
By mammo1789 in forum Capturing and VCRReplies: 7Last Post: 1st Feb 2013, 07:29 -
analogue video interlacing - does BFF/TFF have any meaning?
By intracube in forum Newbie / General discussionsReplies: 5Last Post: 25th Jul 2012, 18:22 -
Dazzle DVC100 BFF vs. TFF
By Zabar12 in forum Capturing and VCRReplies: 13Last Post: 12th Jan 2012, 06:29 -
TFF / BFF What's the real story?
By ggrussell01 in forum Video ConversionReplies: 18Last Post: 5th Feb 2011, 03:52