Log in

View Full Version : Crop odd values


nekosama
7th December 2013, 20:26
How do you crop really small black bars on the right and left side?
1 pixel bars to be exact.
I know that YV12 doesn't allow odd values in crop so I need to crop within the resize filter:
Spline36resize(1280,720,src_left=1)
with that I can cut of that 1 pixel bar on the left side but what about the right side?

Gavino
7th December 2013, 20:30
It works in a similar way to Crop:
Spline36resize(1280,720,src_left=1, src_width=-1)

nekosama
8th December 2013, 13:03
It works, thank you.:thanks:

bxyhxyh
21st May 2014, 05:48
I have once faced a problem with 1 pixel crop. When I use Spline36Resize(1280,720,1,0,0,0), it caused some chroma issue.
Since then I always add 2 pixel border then resize it.
Addborders(2,0,0,0).Spline36Resize(1280,720,3,0,0,0)

But I don't know why.