Ultraziq Documentation
13.3.0 • NASM: 2.16.01
13.2.0 • NASM: 2.15
13.3.0 • NASM: 2.16.01
Configure your environment to link the Ultraziq toolkit and activate your license. Ensure you have extracted the package and have your LICENSEE_KEY ready.
Environment Activation
# LINUX / ARM (BASH)
# 1. Link the dynamic libraries of the extracted Ultraziq package & x265
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/ultraziq/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/x265/lib
# 2. Activate your license key
export LICENSEE_KEY=your_key_here
# WINDOWS (CMD)
# 1. Add bin and lib to system path of the extracted Ultraziq package & x265
set PATH=%PATH%;C:\path\to\ultraziq\bin;C:\path\to\ultraziq\lib
set PATH=%PATH%;C:\path\to\x265\lib
# 2. Activate your license key
set LICENSEE_KEY=your_key_here
Note: To make these changes permanent, add the export commands to your
~/.bashrc (Linux) or use setx (Windows).
Detailed Installation & Verification
Package Structure
bin/: Ultraziq encoder executablelib/: Optimized shared libraries (.so / .dll)include/: Header files (uhdkit.h) for API integration
Verification of Installation
Confirm that Ultraziq is using the correct optimized libraries and that your license is active:
# Verify Version & Codec
./ultraziq --version
# Linux: Check linked path
ldd ./ultraziq | grep x265
# Output: libx265.so.215 => /path/to/libx265.so.215
If you see "library not found",
verify that the path in LD_LIBRARY_PATH matches your actual extraction folder
exactly. For permission issues, Ensure the lib/ folder has read & execute
permissions.
Build x265 from Source
Required for systems where x265 libraries are not pre-installed. Supports both x86_64 and aarch64 architectures.
# 1. Install Build Dependencies
sudo apt-get update
sudo apt-get install -y cmake gcc g++ nasm git
# 2. Clone Official Repository
git clone https://bitbucket.org/multicoreware/x265_git.git
cd x265_git/build/linux
# 3. Compile & Install - The toolkit requires API version 215
cmake ../../source
make -j $(nproc)
sudo make install
sudo ldconfig
x265.so.
Required if x265 libraries are not pre-installed. On Windows, MinGW-w64 is recommended to ensure binary compatibility
# 1. Use MSYS2 Terminal
pacman -S mingw-w64-x86_64-cmake \
mingw-w64-x86_64-gcc \
mingw-w64-x86_64-nasm
# 2. Clone & Build
git clone https://bitbucket.org/multicoreware/x265_git.git
cd x265_git/build/msys
# 3. Configure & Compile
./make-Makefiles.sh
make -j $(nproc)
make install
x265.dll.
Usage Examples
1. High-Performance Parallel Encoding
./ultraziq --codec hevc --feature seg-parallel --gops 4x8 --no-open-gop --no-scenecut \
--input input.yuv --input-res 3840x2160 --fps 60 \
--bitrate 15000 -o output.hevc
Encodes 4K content using 4 parallel segments with 8 threads each.
2. 3-Stream Adaptive Bitrate Ladder
./ultraziq --feature abr-ladder \
--map [1080p] --bitrate 5000 \
--map [720p] --scale 1280x720 --bitrate 2500 \
--map [480p] --scale 854x480 --bitrate 1000 \
--input master.yuv -o ladder_out
Global CLI Options
# Positional usage (Implied)
./ultraziq in.yuv out.hevc
| Feature | Description |
|---|---|
pcs |
Constant performance mode; reactive FPS stabilization. |
multiencoder |
Simultaneous multi-bitrate encodes with analysis reuse.Allows scaling input to multiple resolutions and encoding each resoultion at multiple bitrate/crf/qp values. |
seg-parallel |
Encode multiple Segments in parallel in x265. |
live2pass |
Improves performance by doing a fast first pass on a scaled down resolution of the content and reusing some analysis data from that in the 2nd pass on the original higher resolution content. |
abr-ladder |
End-to-end adaptive bitrate ladder execution. |
Default:
enabled
Default: keyint
ABR-Ladder Options
Default disabled
Performance Control System Options
Default = 0(disabled)Default = 0 (disabled)
Default =
1
Default =
50
Multi-Bitrate Encoder Options
Default = bicubic.
Segment Parallel Options
Default = enabled.
Default = 1x1.
Must be configured (along with --gops) for live2pass to be effective.
Live2Pass Options
Default: single x265 instance,which auto-selects thread count.
Default = 1.