sora-cpp-sdk icon indicating copy to clipboard operation
sora-cpp-sdk copied to clipboard

[DO NOT MERGE] NVIDIA Video Codec SDK を 13.0 にアップデート

Open torikizi opened this issue 10 months ago • 0 comments

この PR のマージタイミング

Ubuntu で NVIDIA ドライバー 570 が利用可能になった段階でこの PR をマージ予定です。

2025 年 4 月 10 日時点で Ubuntu Server のドキュメントでは NVIDIA ドライバー 550 が recommend されています。 参考 : https://documentation.ubuntu.com/server/how-to/graphics/install-nvidia-drivers/index.html


This pull request includes several updates and improvements to the NVIDIA Video Codec SDK integration, as well as enhancements to the NvDecoder class. The most important changes include updating the SDK version, modifying the NvCodecVideoEncoderImpl class to support new structures, and enhancing memory optimization in the NvDecoder class.

SDK Updates:

  • Updated NVIDIA Video Codec SDK to version 13.0 and modified related documentation links in README.md and CHANGES.md files. [1] [2]

Code Modifications:

  • Updated NvCodecVideoEncoderImpl class to use the new NvEncOutputFrame structure and adjusted related encoding logic. [1] [2] [3]
  • Added support for new surface formats NV16 and P216 in NvDecoder.cpp and updated chroma format handling. [1] [2] [3] [4]

Memory Optimization:

  • Enhanced NvDecoder class to optimize memory usage by dynamically adjusting the number of decode surfaces based on the current picture index and codec. [1] [2] [3] [4] [5]
  • Modified the constructor of NvDecoder to include parameters for initial decode surfaces and custom CUDA stream, and adjusted the parser parameters accordingly. [1] [2]

These changes improve the performance and compatibility of the codec integration, ensuring better handling of new SDK features and more efficient resource management.

torikizi avatar Apr 10 '25 03:04 torikizi