End of Evangelion cropping
- Orwell
- godx, Son of godix
- Joined: Tue Jan 06, 2004 5:14 am
- Location: Frying Pan. Destination: Fire.
End of Evangelion cropping
Does anyone happen to have a AVS script for EoE that includes cropping and resizing to remove the black borders?
Latest
[Kristyrat]: Vote for Orwell
[Kristyrat]: because train conducters are dicks.
Otohiko: whereas Germans are like "god we are all so horrible, we're going to die a pointless death now."
[Kristyrat]: Vote for Orwell
[Kristyrat]: because train conducters are dicks.
Otohiko: whereas Germans are like "god we are all so horrible, we're going to die a pointless death now."
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
MPEG2Source("C:\Documents\eoe.d2v", ipp=true, cpu=4)
#[inverse telecine or deinterlacing functions]
ConvertToRGB24().Crop(19, 68, -24, -69).LanczosResize(640, 320)
If you want the final width to be 720, it'd be:
ConvertToRGB24().Crop(19, 68, -24, -69).LanczosResize(720, 368)
And this is the actual methodology to getting those values:
All you have to do is find out how much needs to be cropped in VirtualDub and then input those values into AVISynth with the Crop() command.
Like for instance, if the edges are 4 on the left, 64 on top, 8 on the right, and 72 on the bottom, then it would be
Crop(4, 64, -8, -72) - yes, the minus signs are important.
The way to figure this out with VirtualDub is this:
1) After loading the footage into VDub, go to Filters and select and add 'Null Transform'. It should appear in the Filters list. Click on it, and then click on 'Cropping', in the bottom right-hand corner.
2) Use the Cropping dialog to take out the black borders and press OK.
3) Use the VDMod Resize filter (available here) after the Null Transform/Crop combo. Make sure to check the option to keep the values in multiples of 16. Just look at the numbers on the right side in the top bar of the filter window, and it'll tell you the proper dimensions to resize to in order to preserve the aspect ratio. This is important because Cropping may screw up the dimensions and simply resizing out to a different arbitrary number can screw up the AR. If you want to adjust the size of the video, typing in one field will cause the other to be auto-generated.
When you've got those values, you can add a resize filter after Crop. If the Crop resulted in uneven edges, you'll need to add ConvertToRGB24() before the Crop function, since RGB allows for uneven Cropping values. You'll probably want to convert it back to YV12 to encode it, but that can wait until after editing. I mean, it's always possible to crop more so you get an even value and can skip the RGB step completely, but I put that in just to be thorough and anally retentive.
So in the end, it should look like this:
Crop(values).LanczosResize(values)
or, if the edges are uneven:
ConvertToRGB24().Crop(values).LanczosResize(values)
Of course, that LanczosResize could be a BilinearResize or a BicubicResize or whatever other type of Resize you want.
#[inverse telecine or deinterlacing functions]
ConvertToRGB24().Crop(19, 68, -24, -69).LanczosResize(640, 320)
If you want the final width to be 720, it'd be:
ConvertToRGB24().Crop(19, 68, -24, -69).LanczosResize(720, 368)
And this is the actual methodology to getting those values:
All you have to do is find out how much needs to be cropped in VirtualDub and then input those values into AVISynth with the Crop() command.
Like for instance, if the edges are 4 on the left, 64 on top, 8 on the right, and 72 on the bottom, then it would be
Crop(4, 64, -8, -72) - yes, the minus signs are important.
The way to figure this out with VirtualDub is this:
1) After loading the footage into VDub, go to Filters and select and add 'Null Transform'. It should appear in the Filters list. Click on it, and then click on 'Cropping', in the bottom right-hand corner.
2) Use the Cropping dialog to take out the black borders and press OK.
3) Use the VDMod Resize filter (available here) after the Null Transform/Crop combo. Make sure to check the option to keep the values in multiples of 16. Just look at the numbers on the right side in the top bar of the filter window, and it'll tell you the proper dimensions to resize to in order to preserve the aspect ratio. This is important because Cropping may screw up the dimensions and simply resizing out to a different arbitrary number can screw up the AR. If you want to adjust the size of the video, typing in one field will cause the other to be auto-generated.
When you've got those values, you can add a resize filter after Crop. If the Crop resulted in uneven edges, you'll need to add ConvertToRGB24() before the Crop function, since RGB allows for uneven Cropping values. You'll probably want to convert it back to YV12 to encode it, but that can wait until after editing. I mean, it's always possible to crop more so you get an even value and can skip the RGB step completely, but I put that in just to be thorough and anally retentive.
So in the end, it should look like this:
Crop(values).LanczosResize(values)
or, if the edges are uneven:
ConvertToRGB24().Crop(values).LanczosResize(values)
Of course, that LanczosResize could be a BilinearResize or a BicubicResize or whatever other type of Resize you want.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
- Qyot27
- Surreptitious fluffy bunny
- Joined: Fri Aug 30, 2002 12:08 pm
- Status: Creepin' between the bullfrogs
- Location: St. Pete, FL
- Contact:
I would if I could get a proper IVTC on it. The smoothing operations wouldn't be all that drastic on EoE, although it would most definitely need sharpening.Orwell wrote:Thank you, maybe this should be added to AMVWiki as well, since your suggestion refers to the Renewal release.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
-
trythil
- is
- Joined: Tue Jul 23, 2002 5:54 am
- Status: N͋̀͒̆ͣ͋ͤ̍ͮ͌ͭ̔̊͒ͧ̿
- Location: N????????????????