Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How to realize Transcoding with bt2020 Color Space by Ffmpeg and CUDA

Shulou Source: shulou.com Published: 2022-06-01 23:45:10 09月22日 Update

This article is to share with you about Ffmpeg and CUDA how to achieve transcoding with bt2020 color space, the editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article, without saying much, follow the editor to have a look.

Ffmpeg uses CUDA to realize hardware transcoding with bt2020 color space:

Ffmpeg-y-c model.mp4 v hevc_cuvid-I model.mp4-b v 160m-c v hevc_nvenc-preset fast-profile:v main10-pix_fmt p010-color_primaries bt2020-colorspace bt2020_ncl-color_trc arib-std-b67 x265_ht.mp4

Ffmpeg uses CUDA for hard decoding and CPU for soft coding to achieve transcoding with bt2020 color space:

Ffmpeg-y-c libx265 v hevc_cuvid-I model.mp4-b v 160m-c V libx265-frame_size 199065600-color_primaries bt2020-colorspace bt2020_ncl-color_trc arib-std-b67-pixel_format yuv420p10le-preset fast-profile:v main10-c copy x265.mp4

Frame_size is the length and width of an image * 3 * the number of bytes occupied by an one-pixel RGB:

199065600 = 76804320332

This is how Ffmpeg and CUDA transcode with bt2020 color space. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.

Tags: Space color more knowledge article practical pixel image byte that is work meeting article look knowledge point hardware coding industry details information information channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi OPPO Reno Huawei MySQL MariaDB