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. |
![]() |
#1 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,787
|
Avisynth and VapourSynth cropping preview functions
The cropping preview function now comes in both Avisynth and VapourSynth flavours.
The examples below use Avisynth syntax, but the VapourSynth version works in much the same manner (see the help file for exact details). The name of the script has been changed to CPreview for both versions. CPreview 2023-10-02 (Cropping Preview).zip This function is based on the previews from the CropResize script. I thought I'd upload it for anyone who's interested. Sometimes it's easier to look at what you're cropping before actually cropping it. It's very simple to use, although there is a help file. When using the Crop() function, you can use pCrop() for a cropping preview (naturally when you adjust the cropping you need to refresh the preview), and when you're happy, remove the "p" from the beginning of the function name to crop. There's three cropping previews, and the other two are enabled by adding more "p"s. Obviously this image doesn't really need cropping, but to demonstrate... pCrop shows the cropping preview as yellow lines. pCrop(18,20,-26,-36) ![]() ppCrop shows the cropping preview as yellow transparent borders. ppCrop(18,20,-26,-36) ![]() And pppCrop shows the cropping preview as the inverse of the picture, much like AvsPmod's preview. pppCrop(18,20,-26,-36) ![]() Naturally when you're happy, you just remove the "p"s to crop. Crop(18,20,-26,-36) ![]() The help file has details, but displaying the frame number or time works by appending letters to the other side of the function name, and can be used with or without a cropping preview enabled. CropP(18,20,-26,-36) ![]() Last edited by hello_hello; 1st October 2023 at 18:08. |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Mar 2011
Posts: 4,787
|
And a quick update to change the cropping to unnamed arguments to match the Crop function as it makes more sense.
Also changed the default behaviour of the CropF, CropT and CropP functions so they apply the cropping. New version dated 2022-01-30. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|