Hi to all, I'm using dvsdk 2.10.01.18 on the DM365 platform. Codec Engine version is 2.24 and codec version is 01.00.06. I use DMAI v. 1.21.00.10.
There are two points I'd like to address:
When I try to encode H264 video streams, the encoder can only be initialized for resolutions 1280x720, 720x480, 720x576 and 640x480. That is, when I try to create an H264 encoder with resolution 1024x768 (for example), the Venc1_create call fails with this log (I used CE_DEBUG=2):
Creating an encoder instance in the InstanceTable, hjEngine is @ 0xeaaec, encoder name is h264enc
@1,348,002us: [+2 T:0x4001eed0] ti.sdo.dmai - [Venc1] Creating encoder h264enc for max 1024x768 bitrate 4000000 ratectrl 1
@1,349,857us: [+0 T:0x4001eed0] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> Enter (engine=0xed380, name='h264enc', params=0xbe901a8c)
@1,351,542us: [+0 T:0x4001eed0] CV - VISA_create(0xed380, 'h264enc', 0xbe901a8c, 0x2496, 'ti.sdo.ce.video1.IVIDENC1')
@1,353,498us: [+0 T:0x4001eed0] CV - VISA_create2(0xed380, 'h264enc', 0xbe901a8c, 0x30, 0x2496, 'ti.sdo.ce.video1.IVIDENC1')
@1,355,177us: [+0 T:0x4001eed0] ti.sdo.ce.alg.Algorithm - Algorithm_create> Enter(fxns=0xea640, idma3Fxns=0x0, iresFxns=0xea6cc, params=0xbe901a8c, attrs=0xbe90189c)
@1,357,059us: [+0 T:0x4001eed0] ti.sdo.ce.alg - ALG_create> Enter (scratchId=1, fxns=0xea640, parentAlg=0x0, params=0xbe901a8c)
@1,358,794us: [+2 T:0x4001eed0] ti.sdo.ce.alg - ALG_create> algNumAlloc 12 memory recs
@1,360,784us: [+7 T:0x4001eed0] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate, 2) there is enough internal and external algorithm memory available -- check DSKT2 settings for heap assignments and scratch allocation
@1,362,708us: [+0 T:0x4001eed0] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Enter(alg=0xed5f0)
@1,364,514us: [+0 T:0x4001eed0] ti.sdo.ce.alg.Algorithm - Algorithm_delete> Exit
@1,366,104us: [+0 T:0x4001eed0] ti.sdo.ce.alg.Algorithm - Algorithm_create> return (0x0)
@1,367,835us: [+2 T:0x4001eed0] CV - VISA_create2> FAILED to create local codec.
@1,369,423us: [+0 T:0x4001eed0] CV - VISA_delete(0xed5b8)
@1,371,169us: [+5 T:0x4001eed0] CV - VISA_delete> deleting codec (localQueue=0xffff, remoteQueue=0xffff)
@1,372,916us: [+0 T:0x4001eed0] ti.sdo.ce.video1.VIDENC1 - VIDENC1_create> return (0x0)
@1,374,676us: [+7 T:0x4001eed0] ti.sdo.dmai - [Venc1] Failed to open video encode algorithm: h264enc (0x0)
ERR[/home/janesconference/develop/progetti/NetBeans projects/brahma/Brahma/365Encoder.c, initEncoderInstance(), 141]: Failed to create video encoder: h264enc
The same for 800x600 resolution. What can the problem be? Are there two resolutions (1024x768 and 800x600) not supported by codec version 01.00.06 or am I doing something wrong?
The second point is that, while 1280x720 and 640x480 resolution seem to encode smoothly, 720x480 and 720x576 give me strange "slanted" frames, as if the input buffer addresses are wrong or off-set. Is this a known behaviour?