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 > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 20th April 2017, 17:22   #1  |  Link
Infiziert90
Registered User
 
Join Date: Oct 2016
Posts: 3
AutoCrop for VS

Hi,

I wrote a little auto crop plugin that allows you to crop stuff without knowing the crop parameters.
This is especially useful for videos with varying border sizes that need different crop parameters for every scene.
Please note that the filter output will not have a constant size and may need to be resized.

Release

README.md

"Wiki"

Still Work in Progress, but it should run without problems for 8-16 Bit and 4:2:0 + 4:4:4 subsampling.
Infiziert90 is offline   Reply With Quote
Old 2nd May 2017, 22:54   #2  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,808
I tried it with an old DVD with crazy boder sizes sometimes 30px (wtf). It seems to work, but it always leaves some borders, so it's never really completely cropped. sometimes ~4px are left sometimes ~2px.
But I guess this is also because the border is not "sharp" but fades out into black

http://imgur.com/a/HAynx
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 2nd May 2017 at 23:04.
ChaosKing is offline   Reply With Quote
Old 5th May 2017, 10:56   #3  |  Link
kolak
Registered User
 
Join Date: Nov 2004
Location: Poland
Posts: 2,845
Rise black level. Parts of these borders won't be probably pure black at all.
kolak is offline   Reply With Quote
Old 9th May 2017, 12:26   #4  |  Link
Infiziert90
Registered User
 
Join Date: Oct 2016
Posts: 3
Hmm ... did you change the default color+color_second?

ps. Can you upload a picture from the original scene?
Infiziert90 is offline   Reply With Quote
Old 9th May 2017, 12:59   #5  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,808
yes, I tried that with different values. But I don't know what color format this is. I tried RGB values from photoshop color picker.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 9th May 2017, 13:09   #6  |  Link
Infiziert90
Registered User
 
Join Date: Oct 2016
Posts: 3
YUV ... you can get that color values from vapoursynth editor with color picker
Infiziert90 is offline   Reply With Quote
Old 9th May 2017, 13:34   #7  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,808
Thx, but I still see some borders. And the cropping is not stable especially on camera pans and zooms.
Here is a cut from my source https://www.dropbox.com/s/evw6gs2senzsq6o/ken.mkv?dl=1
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Reply

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 00:58.


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