TI MM H.264 Encoder User Guide
Stream Configuration

TIOVX Encoder Conformance Test App Configuration

The tests run by vx_app_conformance for Encoder are located in:

  • psdk_rtos_auto_j7_xx/tiovx/kernels_j7/hwa/test/test_video_encoder.c

This test reads a configuration file that can be changed to specify different test configuration parameters, as well as input streams and resolutions.

The encoder single and multi-channel tests read the stream configuration for each respective test from

/opt/vision_apps/test_data/tivx/video_encoder/enc_single_channel.cfg
/opt/vision_apps/test_data/tivx/video_encoder/enc_multi_channel.cfg

These configuration files specify the test configuration, input file name, and resolution of the stream. These can be modified or overwritten before running the Single or Multi-channel test to configure what test streams are used.

Test App Configuration

Within the test configuration file, there are two variables of interest for changing test app behavior

num_iterations specifies the total number of frames to be encoded.

num_frames_in_ipfile specifies the total number of frames to be read from the input file

The test will run a total of num_iterations frames through the encoder, looping through the first num_frames_in_ipfile number of frames from the input file repeatedly until that is reached. Make sure num_frames_in_ipfile is not larger than the actual number of frames in the input file.

Changing Test Streams

To change the test stream being used, update the following variables in the test configuration file to match your new input stream:

input_file

width

height

For the multi-channel test, there are *_0 and *_1 variants of these variables to specify which stream it refers among the two used in multi-channel testing.

Also make sure num_frames_in_ipfile is not larger than the actual number of frames in the shorter of the input files.