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

Can you add the "SWAP U and V" basic transformation to the collection of CUDA accelerated effects? #266

Closed
Cuberlain opened this issue Sep 14, 2020 · 6 comments

Comments

@Cuberlain
Copy link

Cuberlain commented Sep 14, 2020

Hello Rigaya!

Can you implement the "SWAP U and V" basic transformation to the collection of CUDA accelerated effects?

If there are rotate and transpose CUDA accelerated effects, than this basic transformation would be important too in the empire of YUV colors...

Thank you!

@rigaya
Copy link
Owner

rigaya commented Sep 23, 2020

I'll add the feature to --vpp-tweak in the next release, adding new option "swapuv".

@Cuberlain
Copy link
Author

Thank you very much Rigaya!

rigaya added a commit that referenced this issue Oct 12, 2020
@rigaya
Copy link
Owner

rigaya commented Oct 12, 2020

The uvswap feature has been added to --vpp-tweak in NVEnc 5.16.

@Cuberlain
Copy link
Author

Hello Rigaya!

I tried out the swap UV option.

I used this : --vpp-tweak swapuv=true
But the colors remained the same on my YV12 videos. :-(

@Selur
Copy link

Selur commented Nov 9, 2020

same here, doesn't seem like swapuv is doing anything aside from changing the encoder output message
without: tweak: brightness 0.00, contrast 1.00, saturation 1.00, gamma 1.00, hue 0.00
with: tweak: brightness 0.00, contrast 1.00, saturation 1.00, gamma 1.00, hue 0.00, swapuv
call I used was:

NVEncC64 --avhw  -i "F:\TestClips&Co\files\file_1.mp4" --fps 25.000 --codec h265 --profile main10 --level auto --tier high --sar 1:1 --lookahead 16 --output-depth 10 --vbrhq 0 --vbr-quality 23.00 --max-bitrate 240000 --aq --aq-strength 5 --gop-len 240 --ref 7 --multiref-l0 7 --multiref-l1 7 --nonrefp --bframes 0 --no-b-adapt --mv-precision Q-pel --preset default --colormatrix bt470bg --vpp-resize default --output-res 640x352 --vpp-gauss disabled --vpp-tweak brightness=0,contrast=1,gamma=1,saturation=1,hue=0,swapuv=true/false --cuda-schedule sync --output "E:\Temp\file_1_2020-11-09@16_16_07_1210_01.265

rigaya added a commit that referenced this issue Nov 11, 2020
@rigaya
Copy link
Owner

rigaya commented Nov 15, 2020

Thanks for letting me know about this, I've fixed this in NVEnc 5.20.

@rigaya rigaya closed this as completed Aug 26, 2022
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