pynvvideocodec
pynvvideocodec (PyNvVideoCodec) is NVIDIA's Python library for hardware-accelerated video encode/decode on NVIDIA GPUs.
Decision gist · record as of 2026-08-14
Yes, if you have an NVIDIA GPU and need to encode, decode, or transcode video in Python. The package is actively maintained, MIT-licensed, has no Python runtime dependencies, and is officially supported by NVIDIA. Medium install friction is acceptable given the GPU-specific nature. Verify that your GPU and drivers meet the Video Codec SDK requirements before installing.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires an NVIDIA GPU with Video Codec SDK support and appropriate GPU drivers installed; Python 3.8 or later.
- Medium install friction due to platform-specific wheels (x86_64, aarch64, Windows) and likely GPU driver dependencies.
- Actively maintained with a recent release (17 days old).
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
last release 2026-07-28 (17 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 700,409 downloads/mo, #5,294 on PyPI
Alternatives
Verify before relying
pip install pynvvideocodec
import pynvvideocodec
# Decode a video file
decoder = pynvvideocodec.PyNvDecoder(input_file='video.mp4')
frame = decoder[0] # Fetch first frame- Whether specific NVIDIA GPU models or compute capabilities are required for encode/decode operations.
- Whether the package requires NVIDIA Video Codec SDK to be separately installed on the system.
- Performance characteristics and throughput for typical video resolutions and codecs.
- Compatibility with specific versions of NVIDIA drivers.
What it is and what it does
PyNvVideoCodec is NVIDIA's official Python library for offloading video encode, decode, and transcode operations to NVIDIA GPUs. It wraps the Video Codec SDK and exposes a Python API for hardware-accelerated video processing, eliminating CPU bottlenecks in video pipelines. The library supports decoding from H.264, HEVC, AV1, VP8, VP9, VC1, MPEG4, MPEG2, and MPEG1 streams, with flexible frame access modes (sequential, random, batched, sliced) and output to multiple formats including NV12, YUV420, YUV444, and RGB24. Encoding supports H.264, HEVC, and AV1 codecs from various input formats.
The package is designed for high-throughput video processing on data centers (DGX Spark) and edge devices (Jetson), with features like multi-GPU decode/encode, in-memory video processing from Python byte buffers, threaded decoding with near-zero latency, and segment-based transcoding. It handles GIL contention in multithreaded scenarios and extracts low-level decode statistics (QP values, motion vectors) from H.264 and H.265 streams.
Use it for
- Decode video files or streams on GPU for real-time computer vision pipelines without CPU overhead.
- Transcode video segments by timestamp range for content editing or partial processing workflows.
- Process video directly from memory buffers (S3, network streams) without writing temporary files.
- Extract decode statistics and SEI metadata from H.264/H.265 streams for quality analysis.
- Build multi-GPU video processing pipelines on Jetson or DGX systems for edge AI applications.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you have an NVIDIA GPU and need to encode, decode, or transcode video in Python.
The package is actively maintained, MIT-licensed, has no Python runtime dependencies, and is officially supported by NVIDIA. Medium install friction is acceptable given the GPU-specific nature. Verify that your GPU and drivers meet the Video Codec SDK requirements before installing.
Install
pynvvideocodec on PyPI
Before you install
Medium install friction due to platform-specific wheels (x86_64, aarch64, Windows) and likely GPU driver dependencies. Actively maintained with a recent release (17 days old). No runtime Python dependencies to manage.
Requires an NVIDIA GPU with Video Codec SDK support and appropriate GPU drivers installed; Python 3.8 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions—you may use, modify, and distribute the package freely provided you include the license notice.
Quickstart
pip install pynvvideocodec
import pynvvideocodec
# Decode a video file
decoder = pynvvideocodec.PyNvDecoder(input_file='video.mp4')
frame = decoder[0] # Fetch first frame
Verify before relying
- Whether specific NVIDIA GPU models or compute capabilities are required for encode/decode operations.
- Whether the package requires NVIDIA Video Codec SDK to be separately installed on the system.
- Performance characteristics and throughput for typical video resolutions and codecs.
- Compatibility with specific versions of NVIDIA drivers.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.8 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | None |
| Maintenance | Actively maintained 17 days since the last release |
| First released | |
| Downloads | 700,409 / month, #5,294 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | License :: OSI Approved :: MIT License |
Evidence: pynvvideocodec-2.2.0-cp310-cp310-manylinux_2_28_aarch64.whl; pynvvideocodec-2.2.0-cp310-cp310-manylinux_2_28_x86_64.whl; pynvvideocodec-2.2.0-cp310-cp310-win_amd64.whl; pynvvideocodec-2.2.0-cp311-cp311-manylinux_2_28_aarch64.whl; pynvvideocodec-2.2.0-cp311-cp311-manylinux_2_28_x86_64.whl; pynvvideocodec-2.2.0-cp311-cp311-win_amd64.whl; pynvvideocodec-2.2.0-cp312-cp312-manylinux_2_28_aarch64.whl; pynvvideocodec-2.2.0-cp312-cp312-manylinux_2_28_x86_64.whl; pynvvideocodec-2.2.0-cp312-cp312-win_amd64.whl; pynvvideocodec-2.2.0-cp313-cp313-manylinux_2_28_x86_64.whl; pynvvideocodec-2.2.0-cp313-cp313-manylinux_2_34_aarch64.whl; pynvvideocodec-2.2.0-cp313-cp313-win_amd64.whl; pynvvideocodec-2.2.0-cp314-cp314-manylinux_2_28_x86_64.whl; pynvvideocodec-2.2.0-cp314-cp314-manylinux_2_34_aarch64.whl; pynvvideocodec-2.2.0-cp314-cp314-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “nvidia gpu video encoding”
- pynvvideocodecPyNvVideoCodec provides hardware-accelerated video encoding,…
- torchcodecTorchCodec decodes and encodes videos, audio, and images to and from…
- nvidia-nvimgcodec-cu12nvImageCodec provides GPU-accelerated codec operations through a…
Give your agent the search over MCP, or paste the wish link into any chat.
More Graphics packages
Pillow adds image processing capabilities to Python, providing file format support, efficient pixel data handling, and image manipulation operations.
Install it if you need to work with images in Python—it is the de facto standard for this task.
fonttools manipulates font files in multiple formats (TrueType, OpenType, AFM, Type 1, Mac-specific) and includes TTX, a tool to convert fonts to and from XML text format.
Install it if you need to read, write, or manipulate fonts programmatically or via the TTX command-line tool.
Enables matplotlib figures to display inline directly within Jupyter notebooks and IPython environments instead of in separate windows.
PyMuPDF extracts, renders, converts, and manipulates PDF and other document formats (XPS, EPUB, images, Office files via Pro) with high performance, providing text, tables, images, and metadata with precise layout information.
The AGPL license requires careful review if you are building proprietary software—commercial licensing is available from Artifex.
pypdfium2 is a Python binding to PDFium that enables PDF rendering, inspection, manipulation, and creation through a ctypes interface to Google's PDFium library.
Install it if you need PDF rendering, inspection, or manipulation in Python; the medium install friction is offset by comprehensive platform support.
Altair is a declarative Python library for creating interactive statistical visualizations by writing simple, readable code that compiles to Vega-Lite specifications.
See also nvidia-nvimgcodec-cu12 · torchcodec · cyscale · bencode.py · decord · decord2 · ntgcalls · numcodecs · python-ffmpeg · edk2-pytool-library