Unicode Path Support#

The Video Effects SDK supports Unicode (non-ASCII) characters in all file and directory paths on Windows, including the following:

  • Model directory paths that you set with NvVFX_SetString and the NVVFX_MODEL_DIR selector.

  • Input and output file paths in the sample applications.

  • TensorRT engine cache paths under %LOCALAPPDATA%, even when the Windows user profile directory contains non-ASCII characters.

  • Triton model repository paths.

  • Log file paths.

The SDK resolves paths that contain Chinese, Japanese, Korean, accented Latin, or other non-ASCII characters, such as the following path:

C:\用户\模型\NVIDIA_VFX_SDK\models

All path string parameters accept strings encoded in UTF-8 on both Windows and Linux.

Note

On Linux, the operating system handles UTF-8 paths natively. The Unicode path improvements apply mainly to Windows, where the SDK previously relied on the system ANSI code page.

Command-Line Arguments in Sample Applications#

On Windows, the Video Effects SDK sample applications use wide-character entry points (wmain, or GetCommandLineW with CommandLineToArgvW) to receive command-line arguments. The samples convert those arguments to UTF-8 before passing them to the SDK.

The following example runs Video Super Resolution with a Unicode model path:

VideoSuperRes.exe --model_dir "C:\用户\模型\NVIDIA_VFX_SDK\models" --in_file input.mp4 --out_file output.mp4