Skip to main content

NvCodec - Python

Require

  • cuda >= 11.2
  • numpy >= 1.7
  • python >= 3.6
  • gcc >= 7.5
  • make >= 4.1

Install

pip install pynvcodec

Usage

0. Init PyNvCodec

from nvcodec import VideoSource, VideoDecoder, VideoEncoder

1. Use VideoSource

source = VideoSource("rtmp://RTMP_URL")
h264_data = source.read()

2. Use VideoDecoder

decoder = VideoDecoder()
# output OpenCV format frame
frames = decoder.decode(h264_data)
# output SDL format frame
frames = decoder.decode(h264_data, 1)

3. Use VideoEncoder

encoder = VideoEncoder(width, height)
h264_data = encoder.encode(frame)

Metadata

Release files for pynvcodec 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynvcodec 0.0.6
File Size Uploaded Provenance
pynvcodec-0.0.6.tar.gz 116.6 kB Without provenance Details

Release files / pynvcodec-0.0.6.tar.gz

Download URL pynvcodec-0.0.6.tar.gz
Size 116.6 kB
Tags Source
SHA-256 checksum
How to use checksums
befc55dd7fb693af19c3da8feef567b9ac4e21a85e4b32b82120943d5149ebe0
BLAKE2b-256 checksum
How to use checksums
ce1ebee7315eca4716561439fd91dd3424563118db282ccb9cd1810872e052db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.21.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.9

Security for pynvcodec 0.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page