PyNvVideoCodec is NVIDIA's Python library for hardware-accelerated video encoding and decoding on NVIDIA GPUs. It wraps the NVIDIA Video Codec SDK and provides high-performance encode/decode operations directly from Python. Current version 2.1.0, requires Python >=3.8 and an NVIDIA GPU with supported drivers. Release cadence is irregular, tied to SDK updates.
pip install pynvvideocodecNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic encode and decode a single frame. Requires an NVIDIA GPU with proper drivers.
Ensure a CUDA context is active (e.g., via cuda-python or PyTorch) before creating any PyNvEncoder or PyNvDecoder.
Replace 'from nvidia.video_codec import ...' with 'from pynvvideocodec import ...'.
Always pass an EncodeConfig to PyNvEncoder and DecodeConfig to PyNvDecoder.
No resource links recorded.