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.

Creating instance of H264FHD fails

I'm trying to run an application that uses the H264FHD encoder.  I created a server with the following settings:

    var H264ENC = xdc.useModule('ti.sdo.codecs.h264fhdvenc.ce.H264FHDVENC');

    /* Scratch group 0 */
    DSKT2.DARAM_SCRATCH_SIZES[0] = 65536;
    DSKT2.SARAM_SCRATCH_SIZES[0] = 65536;

     EDMA3.maxPaRams[0] = 384;
     EDMA3.maxTccs[0] = 30;
     EDMA3.maxEdmaChannels[0] = 30;
     EDMA3.maxQdmaChannels[0] = 4;

When I call VIDENC1_create, I get the following error:

[DSP] @0,115,498tk: [+7 T:0x8ba0006c S:0x8ba03d3c] ti.sdo.ce.alg.Algorithm - Al\gorithm_create> Assignment of alg resources through RMAN FAILED (0x7)

Has anyone been able to use this codec?

Farrah

  • This error indicates a DSP Server mis-configuration of RMAN.  The codec is requesting a resource (e.g. a HW accelerator like HDVICP) which RMAN hasn't been told to manage.

    If you use RMAN's trace-enabled libraries, additional trace will be printed that should tell you which resource is being requested (and unable to be granted).  Depending on which Framework Components release you're using, this is often done by setting "RMAN.trace = true;" in your server .cfg script.  You can sanity check that the trace enabled lib is pulled in - during config the ti.sdo.fc.rman package will report which lib it's providing... look for a lib with the name "trace" in the path.

    [ Newer releases of FC have different ways of enabling tracing at the "FC as a whole" level, so if that doesn't work, let us know which version of FC you're using and we can help get that trace-enabled library linked in. ]

    Chris

  • I was able to create a codec server and create an instance of it with the following settings:

        var H264ENC = xdc.useModule('ti.sdo.codecs.h264fhdvenc.ce.H264FHDVENC');

        /* Scratch group 0 */
        DSKT2.DARAM_SCRATCH_SIZES[0] = 65536;
        DSKT2.SARAM_SCRATCH_SIZES[0] = 65536;

         EDMA3.maxPaRams[0] = 384;
         EDMA3.maxTccs[0] = 49;
         EDMA3.maxEdmaChannels[0] = 49;
         EDMA3.maxQdmaChannels[0] = 0;