This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Debugging Codec Issue (H.264)



I have a video application that gets sensor data on a DM365, uses the previewer and resizer, and then encodes the video.  It works for MPEG4, but when I try the H.264 codec, I get an error.  Using DMAI_DEBUG=2, I get the following:

@0x00026091:[T:0x41a36490] ti.sdo.dmai - [Venc1] Creating encoder h264enc for max 640x480 bitrate 3000000 ratectrl 4
@0x000352a9:[T:0x41a36490] ti.sdo.dmai - [Venc1] Setting dynParams size 640x480 bitrate 3000000
@0x000358af:[T:0x41a36490] ti.sdo.dmai - [Venc1] Made XDM_SETPARAMS control call
@0x00035e65:[T:0x41a36490] ti.sdo.dmai - [BufTab] Allocating BufTab for 1 buffers
@0x0003610f:[T:0x41a36490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x4366c000 (0x86d68000 phys)
@0x000361fc:[T:0x41a36490] ti.sdo.dmai - [BufTab] Allocating BufTab for 2 buffers
@0x0003645a:[T:0x41a36490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x437e6000 (0x86ee2000 phys)
@0x000366a9:[T:0x41a36490] ti.sdo.dmai - [Buffer] Alloc Buffer of size 691200 at 0x43960000 (0x8705c000 phys)
...

@0x0029bfc3:[T:0x41a36490] ti.sdo.dmai - [Venc1] VIDENC1_process() ret -1 inId 0 outID 1076052032 generated 939032 bytes
@0x0029c0ca:[T:0x41a36490] ti.sdo.dmai - [Venc1] VIDENC1_process() failed with error (-1 ext: 0x2009)

 

I have seen this page to explain the error bit

http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/xdais/6_24/exports/xdais_6_24/docs/html/group__ti__xdais__dm___x_d_m.html#g993de0b923e61c59a996fc2be4783131 and I believe my error is "XDM_UNSUPPORTEDINPUT"

I believe I have set all of the input parameters the same as the "encode" example, but I cannot get it to work.

 

Is there any method to determine exactly what is wrong?

Details:

DVSDK 2.10.01.18

DM365 Codecs: 1.00.06

InputChromaFormat: XDM_YUV_420SP

Input size: 640x480, 30fps

Kenric