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.

Codec Name

On DM6467T with Linux, how do I find out what is the codec name that I need to use for 1080 encoding?  I got an error saying "Unable to locate alg ..."

 

Thank you.

 

  • Hi

    I'm guessing you are using Codec Engine? If you have the source of your codec server, codec names that need to be passed to Videnc1_create() can be found in the *cfg file of the codec server, more precisely in the Server.algs structure:

    Server.algs = [
        {name: "viddec_copy", mod: VIDDEC_COPY, threadAttrs: {
            stackMemId: 0, priority: Server.MINPRI + 2}, groupId : 0,
        },
        {name: "videnc_copy", mod: VIDENC_COPY, threadAttrs: {
            stackMemId: 0, priority: Server.MINPRI + 2}, groupId : 0,
        },
        {name: "imgdec_copy", mod: IMGDEC_COPY, threadAttrs: {
            stackMemId: 0, priority: Server.MINPRI + 3}
        },
        {name: "imgenc_copy", mod: IMGENC_COPY, threadAttrs: {
            stackMemId: 0, priority: Server.MINPRI + 3}
        }
    (.....more codecs......)
    ];

    The above Server.algs structure was taken from a sample codec server named all_codecs that is located in codec_engine_2_25_00_00/examples/ti/sdo/ce/examples/servers/all_codecs (or a similar path if you are using a different CE version).

    There was one other time I also did get the same error. It was a bug on my part as I did something like that:

    ce_handle = NULL;
    (......some code......)
    g726_enc_u = SPHENC1_create(ce_handle, G726_ENC_NAME, &g726_enc_params_u);

    ce_handle needs to be created by calling ce_handle = Engine_open(...) prior to being used in creating an encoder/decoder. I doubt that it is the case in your situation, I'm just throwing it there as a possibility.

    I hope this helps
    Regards, Szymon