Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Auto-Crop #116

Open
bigdwg71 opened this issue Apr 30, 2019 · 2 comments
Open

Feature Request: Auto-Crop #116

bigdwg71 opened this issue Apr 30, 2019 · 2 comments

Comments

@bigdwg71
Copy link

Tools like FFMPEG and Handbrake offer automatic detection of black bars (top and bottom, or left and right) and can define the crop based on that. I wrote a python script that uses the Handbrake CLI to define the crop that I then feed into NVENCC, but it would be great if NVENCC could just natively do this. Thanks for your consideration.

@PhoO3nX
Copy link

PhoO3nX commented Aug 8, 2019

By using Staxrip you can use without problem by 2 way :

1/ Encode with NVEnc in Staxrip and using plug-in "Crop" (integrated), you have auto-crop or (i prefer) Smart Crop for a manual settings with video

2/ If you prefer encode on command line NVEnc (like me) but just have the crop values, just open your video on Staxrip > (On bar top) Crop > Menu > Crop Options > Image > Crop > Read the crop values (read from top left > bottom left > top right > bottom right) and put value in your NVenc line. Exemple

NVEncC64.exe -i C:\Users\User\Videos\XYZ.mkv --codec h265 --preset quality --profile main10 --output-depth 10 --lookahead 32 --mv-precision Q-pel --slices 1 --ref 4 --gop-len 0 --crop 252,8,246,22 -o C:\Users\User\Videos\XYZ_encoded_h265.mkv

@ls-milkyway
Copy link

Use staxrip with proper DAR SAR AND PAR values and auto/smart crop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants