Skip to content

NVIDIA Video Codec: Video Writer#

Authors: Holoscan Team (NVIDIA)
Supported platforms: x86_64, aarch64
Language: Python
Last modified: July 15, 2025
Latest version: 1.0
Minimum Holoscan SDK version: 3.3.0
Tested Holoscan SDK versions: 3.3.0, 3.4.0
Contribution metric: Level 1 - Highly Reliable

This application demonstrates the use of NVIDIA Video Codec SDK. The application loads a video file, encodes the video using either H.264 or HEVC (H.265), and then writes the encoded video frames to disk.

Requirements#

💡 Note: NVIDIA IGX Orin with integrated GPU is not currently supported.

Data#

📦️ (NGC) Sample App Data for AI-based Endoscopy Tool Tracking

Building and Running the NVIDIA Video Codec Application#

Python#

./holohub run nvc_encode_writer --language python

Configuration#

The application is configured with H.264 codec by default for lower power consumption. It may be modified in the nvc_encode_writer.yaml file:

encoder:
  codec: "H264" # H265 or HEVC
  preset: "P3" # P1, P2, P3, P4, P5, P6, P7
  cuda_device_ordinal: 0
  bitrate: 10000000
  frame_rate: 60
  rate_control_mode: 0 # 0: Constant QP, 1: Variable bitrate, 2: Constant bitrate
  multi_pass_encoding: 1 # 0: Disabled, 1: Quarter resolution, 2: Full resolution

Refer to the NVIDIA Video Codec documentation for additional details.

Licensing#

Holohub applications and operators are licensed under Apache-2.0.

NVIDIA Video Codec is governed by the terms of the NVIDIA Software Developer License Agreement, which you accept by cloning, running, or using the NVIDIA Video Codec sample applications and operators.