Aurora1 Sample Encoder
Introduction
wz_sample_encoder included in the bin directory of the deliverable you received from Visionular, is a simple encoder program demonstrating the use of the Aurora1 video codec and its APIs.
The usage of wz_sample_encoder is shown below:
bin/wz_sample_encoder <width> <height> <infile> <outfile> <keyframe-interval> <frames to encode> <is hbd>
Build Instructions
The sample encoder can be built using the following command:
gcc -I./include sample_encoder_src/simple_encoder_wz_api.c -L./lib -lwzav1 -o wz_sample_encoder
Example
Executing the sample encoder with the right parameters will print the following on the screen:
bin/wz_sample_encoder 1920 800 ~/work/YUVS/tears_1920x800_24.yuv output.obu 30 60 0
Output:
Using Aurora AV1 Encoder 1.2.0-174-g4bfe8d6
License check passed.
Extra encoder cfg:
tile-columns = 1
tile-rows = 1
enable-tpl-model = 1
arnr-maxframes = 7
enable-cdef = 1
enable-restoration = 1
enable-tx64 = 1
sb-size = 64
min-gf-interval = 0
max-gf-interval = 16
target-seq-level-idx = 31
set-tier-mask = 0
enable-vbv = 0
psy-rd = 0
psy-rdoq = 0
max-lps = 0
chroma-delta-q = 0
deltaq-strength = 50,50
enable-dlf = 1
hdr-boost = 0
hdr10-opt = 0
K.............................K......K......................
Processed 60 frames.
Descriptions of all the parameters can be understood from the API documentation and the sample encoder source code included in simple_encoder_wz_api.c.