Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th December 2013, 20:26   #1  |  Link
nekosama
Registered User
 
Join Date: Sep 2013
Posts: 16
Crop odd values

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:
Code:
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?
nekosama is offline   Reply With Quote
Old 7th December 2013, 20:30   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
It works in a similar way to Crop:
Code:
Spline36resize(1280,720,src_left=1, src_width=-1)
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 8th December 2013, 13:03   #3  |  Link
nekosama
Registered User
 
Join Date: Sep 2013
Posts: 16
It works, thank you.
nekosama is offline   Reply With Quote
Old 21st May 2014, 05:48   #4  |  Link
bxyhxyh
Registered User
 
Join Date: Dec 2011
Posts: 354
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.
bxyhxyh is offline   Reply With Quote
Reply

Tags
1pixel, crop, odd, resize

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:08.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.