Hi!
I use the newest version of the H264 encoder (2.30.00.01) with the EVMDM365 board. With the old encoder (version 1.1) I had no problems when creating the encoder instance. But when I set the encQuality parameter of the IH264VENC_Params structure to 3 (High speed mode on platinum encoder) or set the encodingPreset parameter of the VIDENC1_Params structure to XDM_HIGH_SPEED the creation fails. With CE_DEBUG=1 the error message is:
Algorithm_create> Assignment of alg resources through RMAN FAILED (0x8)
I looked in the user guide or in the forum for answers and think, that the codec in platinum mode needs much more ressources (EDMA channels or contigous memory). How can I assign these ressources to the codec? I could use the cmem module with different parameters but I'm not really sure what I'm doing. I had replace the loadmodules.sh file with the file from the codec test app but that doesn't work. Here is my loadmodules.sh-file for the module insertion and the bootargs I use:
# mem=60M console=ttyS0,115200n8 root=/dev/nfs rw nfsroot=<nfsroot> ip=dhcp video=davincifb:vid0=OFF:vid1=OFF:osd0=OFF dm365_imp.oper_mode=0
insmod cmemk.ko phys_start=0x83C00000 phys_end=0x88000000 pools=2x384,1x16384,1x2688,1x20480,3x74,1x60288,2x28,1x147048,1x10240,1x896,1x65536,1x663552,1x9175376,4x24,1x282624,2x5984,1x58144,1x1024,1x48952,1x464,2x16768,1x1251264,1x30720,1x65792,8x774144,1x173712,1x146,1x98,2x296,50x56,2x86,1x624,1x3328,1x518912,4x62,1x242,4x663552,1x1637824,14x1645056,1x16538976,4x1382400 allowOverlap=1 phys_start_1=0x00001000 phys_end_1=0x00008000 pools_1=1x28672
I added the allowOverlap=1 phys_start_1=... part at the end to allow TCM use by the codec.
Thank you for any answers!
Regards,
Matthias