View Full Version : Crop and Center Video
Smithee
23rd March 2011, 04:59
I want to crop a considerable amount of garbage from the right side and bottom of a video and then have the entire video centered within a 720x480 DVD frame. I can do this right in VDub using the external Canvas Size filter (.vdf), but how would I do this in a script?
Note that I don't want to resize the cropped video in any way--just center it.
Perhaps I'm missing something obvious, but I can't figure it out.
Thanks.
um3k
23rd March 2011, 05:26
Crop() (http://avisynth.org/mediawiki/Crop)
AddBorders() (http://avisynth.org/mediawiki/AddBorders)
(both are links)
smok3
23rd March 2011, 08:45
example
http://smok3.t35.com/resize/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
edit: fixed
Smithee
23rd March 2011, 11:11
Crop() (http://avisynth.org/mediawiki/Crop)
AddBorders() (http://avisynth.org/mediawiki/AddBorders)
(both are links)
Yes, I know about these. Your post inferred it could be done so I experimented again.
Sometimes the simplest things are the most difficult: I wasn't dividing the AddBorders numbers so the video ended up centered.
Crop(16,0,-8,-16) #696x464
AddBorders(12,8,12,8)
Another baby step for me.
Smithee
23rd March 2011, 11:16
example
http://smok3.t35.com/resize/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
edit: fixed
Norton warned me that this is a suspicious site. I had time to try the calculator before Norton warned me again and kicked me off.
smok3
23rd March 2011, 11:40
interesting, how about this mirror, what does norton belive?:
http://resize.110mb.com/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
Smithee
23rd March 2011, 20:26
interesting, how about this mirror, what does norton belive?:
http://resize.110mb.com/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
Same thing... suspicious site.
smok3
24th March 2011, 08:34
well, can't really be bothered with 'why', especially after visiting http://us.norton.com/support/dtree.jsp?pvid=
Nathan: Hi, I'm Nathan and I'm here to help...
me: hi, I'am /me and amazing, amazing, I'am actually alive...
:stupid:
p.s. To me it appears that norton offers a half-brain-damaged robots for crawling sites and they also want to "sell me" their virtual agent for additional "help"..., I would strongly reconsider buying anything from them again (Maybe they are all virtual?).
p.s.2. after some additional research it appears that risk evaluation is done in a way of collecting data from other subdomains based on same domain, like if domain is : muki.com, and user1 has a nasty page at maki.muki.com, then they think that user2 may have a dangerous site at mynicesite.muki.com, well...
edit: here is google's opinion:
mirror1:
http://www.google.com/safebrowsing/diagnostic?site=http://resize.110mb.com/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
mirror2:
http://www.google.com/safebrowsing/diagnostic?site=http://smok3.t35.com/resize/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
edit2: sorry for offtopic, but I thought a thing like that must be fixed.
edit3: actually this may be interesting to get some additional money, any experience with suing big nasty companies, what should i read?
Smithee
24th March 2011, 20:45
well, can't really be bothered with 'why', especially after visiting http://us.norton.com/support/dtree.jsp?pvid=
Nathan: Hi, I'm Nathan and I'm here to help...
me: hi, I'am /me and amazing, amazing, I'am actually alive...
:stupid:
p.s. To me it appears that norton offers a half-brain-damaged robots for crawling sites and they also want to "sell me" their virtual agent for additional "help"..., I would strongly reconsider buying anything from them again (Maybe they are all virtual?).
p.s.2. after some additional research it appears that risk evaluation is done in a way of collecting data from other subdomains based on same domain, like if domain is : muki.com, and user1 has a nasty page at maki.muki.com, then they think that user2 may have a dangerous site at mynicesite.muki.com, well...
edit: here is google's opinion:
mirror1:
http://www.google.com/safebrowsing/diagnostic?site=http://resize.110mb.com/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
mirror2:
http://www.google.com/safebrowsing/diagnostic?site=http://smok3.t35.com/resize/index.php?ssmw=200&sar=1&sar2=&ssmh=200&CT=&CL=&CR=20&CB=20&mplayCrop=&trw=180&dar=1&dar2=&modw=1&modh=1&padw=720&padh=480&css=&doit=true
edit2: sorry for offtopic, but I thought a thing like that must be fixed.
edit3: actually this may be interesting to get some additional money, any experience with suing big nasty companies, what should i read?
Yes, off topic, but let's finish this off: Norton didn't warn me on my second visit to both links.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.