NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.3k stars 231 forks source link

bgr to yuv420p bt709 color conversion #229

Open dasing opened 3 years ago

dasing commented 3 years ago

I would like to ask whether you could provide the color conversion from bgr to yuv420 with color space equal to bt709 and both color ranges mpeg and jpeg. I have some videos that are encoded with color space bt709 and I would like to re-encode these videos also using the same color space. In NPP library, I observed that there are some APIs like nppiBGRToYCbCr420_709CSC_8u_C3P3R and nppiBGRToYCbCr420_709HDTV_8u_AC4P3R. I am not sure if these APIs are the correct way to do the conversion.

rarzumanyan commented 3 years ago

Hi @dasing,

I'll check if it's possible with NPP and will update you a bit later in this thread.