Hello,
I tried to crop and resize interlaced (TFF) video. In some parts of the video was text. In the original it was sharp, but after avisynth, I could see the text double like this:
(left: after avisynth, right: original)
This was the code I used in avisynth:
What am I doing wrong?Code:AssumeTFF() Crop(32,84,-32,-92) SeparateFields() BiCubicResize(720,288) Weave() ConvertToYV12(interlaced=true)
Thanks in advance.
+ Reply to Thread
Results 1 to 10 of 10
-
-
You cannot resize an interlaced clip that way.
When you resize the separated fields, you are altering the spatial offset between them, so they cannot be weaved back together again.
The simplest solution is to deinterlace before resizing, although there is another method that involves shifting the two fields by an appropriate sub-pixel offset. -
Originally Posted by loekverhees
Code:LoadPlugin("LeakKernelDeint.dll") LeakKernelBob(order=1)#if TFF Spline36Resize(720,576) DoubleWeave().SelectEvery(4,1)# TFF
-
Thanks Alex_ander and Gavino. I've use this code now:
Code:Crop(32,84,-32,-92) ConvertToYV12(interlaced=true) TempGaussMC_beta1()#if TFF Spline36Resize(720,576) DoubleWeave().SelectEvery(4,1)# TFF
).
-
Take care of the field order with a different bob deinterlacer: on script output you may get not the order you expect. To force output TFF you can simply add 'AssumeBFF' before DoubleWeave (the last line inverts default field order).
-
You'll have BFF after script since yadif passes input field order to its output. Use AssumeBFF() before DoubleWeave() if you want TFF in the end.
-
I tried a slightly different code this time (because I thought the deinterlacer was better this time):
AssumeTFF()
Crop(32,84,-32,-92)
ConvertToYV12(interlaced=true)
yadifmod(edeint=nnedi2())
Spline36Resize(720,576)
DoubleWeave().SelectEvery(4,1)
WARNING, frame rate NOT DVD-COMPLIANT, WARNING, resolution/frame rate mismatch.
What am I doing wrong? -
If you are using yadifmod to bob, and nnedi2 for spatial prediction, both have to be in "bob" or double rate mode instead of single. Have a look at the readme for yadifmod and nnedi2 for more info
Code:AssumeTFF() Crop(32,84,-32,-92) ConvertToYV12(interlaced=true) interp=nnedi2(field=3) #double rate, starts with top yadifmod(order=1, field=-1, mode=1, edeint=interp) #TFF,field set to order,double rate Spline36Resize(720,576) DoubleWeave().SelectEvery(4,1)
Similar Threads
-
Cropping interlaced video
By loster in forum Newbie / General discussionsReplies: 16Last Post: 4th Aug 2011, 13:47 -
cropping interlaced YV12 video caused chroma error
By dphirschler in forum EditingReplies: 2Last Post: 3rd Dec 2009, 10:07 -
Resizing interlaced video - slightly confused at the process
By PTRACER in forum EditingReplies: 2Last Post: 7th May 2008, 07:14 -
Question - Resizing an interlaced video.
By 1gnition in forum Newbie / General discussionsReplies: 26Last Post: 6th Jun 2007, 10:12 -
Cropping and Resizing Make Video x10 Larger?
By InSaNiTy in forum EditingReplies: 2Last Post: 6th May 2007, 16:29