hello_hello
29th January 2022, 08:46
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.
See post #5 for the additional functions added.
CPreview 2025-03-25 (Cropping Preview).zip (https://files.videohelp.com/u/210984/CPreview%202025-03-25%20%28Cropping%20Preview%29.zip)
This function is based on the previews from the CropResize (https://forum.doom9.org/showthread.php?t=176667) 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)
https://i.postimg.cc/N0T6tMp3/Crop-Preview-Preview-1.jpg
ppCrop shows the cropping preview as yellow transparent borders.
ppCrop(18,20,-26,-36)
https://i.postimg.cc/4dgzxg0m/Crop-Preview-Preview-2.jpg
And pppCrop shows the cropping preview as the inverse of the picture, much like AvsPmod (https://www.videohelp.com/software/AvsP)'s preview.
pppCrop(18,20,-26,-36)
https://i.postimg.cc/768NJ75P/Crop-Preview-Preview-3.jpg
Naturally when you're happy, you just remove the "p"s to crop.
Crop(18,20,-26,-36)
https://i.postimg.cc/rsgGHPQz/Crop-Preview-Cropped.jpg
Because sometimes it's handy, there's also wrapper functions for displaying the current frame number and/or time over the video. The help file has details, but they work 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)
https://i.postimg.cc/1380WM65/Crop-Preview-Position.jpg
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.
See post #5 for the additional functions added.
CPreview 2025-03-25 (Cropping Preview).zip (https://files.videohelp.com/u/210984/CPreview%202025-03-25%20%28Cropping%20Preview%29.zip)
This function is based on the previews from the CropResize (https://forum.doom9.org/showthread.php?t=176667) 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)
https://i.postimg.cc/N0T6tMp3/Crop-Preview-Preview-1.jpg
ppCrop shows the cropping preview as yellow transparent borders.
ppCrop(18,20,-26,-36)
https://i.postimg.cc/4dgzxg0m/Crop-Preview-Preview-2.jpg
And pppCrop shows the cropping preview as the inverse of the picture, much like AvsPmod (https://www.videohelp.com/software/AvsP)'s preview.
pppCrop(18,20,-26,-36)
https://i.postimg.cc/768NJ75P/Crop-Preview-Preview-3.jpg
Naturally when you're happy, you just remove the "p"s to crop.
Crop(18,20,-26,-36)
https://i.postimg.cc/rsgGHPQz/Crop-Preview-Cropped.jpg
Because sometimes it's handy, there's also wrapper functions for displaying the current frame number and/or time over the video. The help file has details, but they work 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)
https://i.postimg.cc/1380WM65/Crop-Preview-Position.jpg