TI MM H.264 Decoder User Guide
RTOS Demos

Single and Multi Channel H.264 Decoder

This application shows how to test single and multi-channel decoder on RTOS.

Core Details

  1. It runs on R5F(MCU2-1) TI-RTOS

Steps to run the application

  1. Build the application and related libraries as mentioned in Build Instructions
  2. Create a .cfg file named "ParamConfig_<n>.cfg" with fields as shown below (n can be from 1-100 depends on the number of test bits-streams in SD card)
    1. "width" & "height"
    2. "in_pixelformat" & "out_pixelformat"
    3. "input_stream_size" and "input_stream" to point to the input data
    4. "output_file" to specify output filename
  3. A sample ParamConfig_1.cfg below. Please do not remove sd: from input/output file names
    1 width=176
    2 height=144
    3 in_pixelformat=5
    4 out_pixelformat=1
    5 input_stream_size=sd:AUD_MW_E.bin
    6 input_stream=sd:AUD_MW_E.264
    7 output_stream=sd:AUD_MW_E.yuv
  4. User can have 100 config files with continuous numbering.
    1 ParamConfig_1.cfg
    2 ParamConfig_2.cfg
    3 ParamConfig_3.cfg
    4 ParamConfig_4.cfg
    5 .
    6 .
    7 .
    8 .
    9 ParamConfig_100.cfg
  5. User should copy the input bitstream and frame size file in .bin format along with its .cfg file to the SD card.
  6. Run the app as shown below
    1. Type help in UART to know the options. Select Single or Multi channel usecase.
    2. Single Channel will start decoding from "ParamConfig_1.cfg" to "ParamConfig_n.cfg" sequencially.
    3. Multi Channel will start with parallel decoding of 2 streams. 1st channel will start from "ParamConfig_1.cfg" to "ParamConfig_n.cfg" sequencially, while 2nd channel will start from "ParamConfig_2.cfg" to "ParamConfig_n.cfg" sequencially. Ex: Channel-0 will decode the streams 0,1,2,3,...n while channel-1 will decode 1,2,3,4...n
  7. Output will be generated as "chId_0_output_file", "chId_1_output_file" as specified in .cfg file