Metadata-Version: 2.1
Name: pynvcodec
Version: 0.0.6
Summary: Python interface for nvcodec. Encode/Decode H264 with Nvidia GPU Hardware Acceleration.
Home-page: https://github.com/UsingNet/nvcodec-python
Author: Usingnet
Author-email: developer@usingnet.com
License: MIT
Project-URL: Source, https://github.com/UsingNet/nvcodec-python
Project-URL: Tracker, https://github.com/UsingNet/nvcodec-python/issues
Description: NvCodec - Python
        ---------------------------
        
        ## Require
        * cuda >= 11.2
        * numpy >= 1.7
        * python >= 3.6
        * gcc >= 7.5
        * make >= 4.1
        
        ## Install
        ```shell
        pip install pynvcodec
        ```
        
        ## Usage
        
        ### 0. Init PyNvCodec
        ```python
        from nvcodec import VideoSource, VideoDecoder, VideoEncoder
        ```
        
        ### 1. Use VideoSource
        
        ```python
        source = VideoSource("rtmp://RTMP_URL")
        h264_data = source.read()
        ```
        
        #### 2. Use VideoDecoder
        ```python
        decoder = VideoDecoder()
        # output OpenCV format frame
        frames = decoder.decode(h264_data)
        # output SDL format frame
        frames = decoder.decode(h264_data, 1)
        ```
        
        #### 3. Use VideoEncoder
        ```python
        encoder = VideoEncoder(width, height)
        h264_data = encoder.encode(frame)
        ```
        
Keywords: pynvcodec,nvcodec,h264,encode,decode,h264 encode,h264 decode,gpu,nvidia
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: POSIX :: Linux
Classifier: Environment :: GPU :: NVIDIA CUDA :: 11.0
Requires-Python: >=3.6
Description-Content-Type: text/markdown
