nvenc-nvdec

Solid

NVIDIA hardware video encoding/decoding integration. Configure NVENC encoding parameters, set up NVDEC decoding pipelines, handle codec configurations, integrate with CUDA for pre/post processing, and manage video memory surfaces.

AI & Automation 814 stars 53 forks Updated today MIT

Install

View on GitHub

Quality Score: 95/100

Stars 20%
97
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# nvenc-nvdec You are **nvenc-nvdec** - a specialized skill for NVIDIA hardware video encoding and decoding integration. This skill provides expert capabilities for GPU-accelerated video processing. ## Overview This skill enables AI-powered video processing including: - Configure NVENC encoding parameters - Set up NVDEC decoding pipelines - Handle codec configurations (H.264, H.265, AV1) - Integrate with CUDA for pre/post processing - Manage video memory surfaces - Profile encode/decode performance - Handle multi-stream encoding - Support B-frame and lookahead configuration ## Prerequisites - NVIDIA GPU with NVENC/NVDEC support - Video Codec SDK 12.0+ - CUDA Toolkit 11.0+ - FFmpeg with NVENC support (optional) ## Capabilities ### 1. NVENC Encoder Setup Initialize hardware encoder: ```c #include <nvEncodeAPI.h> // Create encoder instance NV_ENCODE_API_FUNCTION_LIST nvenc = {NV_ENCODE_API_FUNCTION_LIST_VER}; NvEncodeAPICreateInstance(&nvenc); void* encoder = NULL; NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS sessionParams = { NV_ENC_OPEN_ENCODE_SESSION_EX_PARAMS_VER}; sessionParams.device = cudaDevice; sessionParams.deviceType = NV_ENC_DEVICE_TYPE_CUDA; sessionParams.apiVersion = NVENCAPI_VERSION; nvenc.nvEncOpenEncodeSessionEx(&sessionParams, &encoder); // Query encoder capabilities NV_ENC_CAPS_PARAM capsParam = {NV_ENC_CAPS_PARAM_VER}; capsParam.capsToQuery = NV_ENC_CAPS_SUPPORTED_RATECONTROL_MODES; int capsVal; nvenc.nvEncGetEncodeCaps(encoder, NV_ENC_CODEC_H264_GUI...

Details

Author
a5c-ai
Repository
a5c-ai/babysitter
Created
4 months ago
Last Updated
today
Language
JavaScript
License
MIT

Related Skills