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 > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th January 2022, 08:46   #1  |  Link
hello_hello
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.
hello_hello is offline   Reply With Quote
Old 29th January 2022, 22:29   #2  |  Link
hello_hello
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.
hello_hello is offline   Reply With Quote
Old 25th September 2023, 15:51   #3  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,787
There's a link for a new version dated 2023-09-25 in the opening post.

The Avisynth version hasn't changed in functionality (just cleaned up the syntax a bit) but there's now also a VapourSynth flavour.
hello_hello is offline   Reply With Quote
Old 1st October 2023, 18:10   #4  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,787
There's a link for a new version dated 2023-10-02 in the opening post.
hello_hello 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 17:42.


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