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.

configuring for both encoding and decoding

Hi,

Im trying to configure the server to support both encoder and decoder simultaneously in my application.

But only either of those is working. I have configured one after the other  and the server paths that i gave are "ti.sdo.servers.decode"  "ti.sdo.servers.encode"

Is there anything like "./loopbackCombo.x64P" ( given for DM6446)  which executes both encoder and decoder algorithms???

 

Thanks,

Teja Atluri.

  • Hi,

    I would like to further more insight into my problem.

    We are trying to make an application to use encoder and decoder as told in my previous post. We have reffered to the configuration files given in thye sample applications and tried to replicate the same.

    Our configuration file looks something like this.

    var Engine = xdc.useModule('ti.sdo.ce.Engine');
    var demoEngine = Engine.createFromServer(
        "decode",
        "./decodeCombo.x64P",
        "ti.sdo.servers.decode"
        );

    var moEngine = Engine.createFromServer(
        "encode",
        "./encodeCombo.x64P",
        "ti.sdo.servers.encode"
        );

    Can we use createFromServer twice to configure both the codec algorithms.. or it has to be done through any other way???

  • It is my understanding you can only create one engine instance with the current Codec Engine version, hence you would need a single encodedecode server with all the corresponding codecs built into it.  You can have multiple instances of the individual codecs...

  • Juan is correct you would need a single DSP server that contains both encode and decode codecs for this to work, you cannot open multiple servers like this. If you think about what these are doing, it is effectively loading a binary executable (like a .out file) over to the DSP, if you try to load two of them they will surely conflict with each other, taking up the same memory spaces as well as having two seperate instances of the DSP/BIOS RTOS.

    Unfortunately I have not come across a demo encodedecodeCombo.x64P DSP server, I am certain one could be created (though it may not be something commonly used as the DSP is slower on the OMAP3) but it does not look like there is one out of the box.

  • Actually, you can "create" as many Engines as you want, but you can only have one "open" at a time.

    An Engine is a collection of algorithms/codecs that you can run together.  "Creating" an Engine simply creates a table that describes this collection; and "creating" an Engine is currently only supported at config/build time.  "Opening" an Engine is something done at run time, and [assuming the Engine loads a remote DSP/Server], only one Engine can be "open" at a time.

    All that said... multiple Engine.createFromServer() calls can be done from a config script.  But you can only have one of those Engines "open" at a time.  So, if you want to do both encode and decode _at the same time_, you'll need to "create" a single Engine with both algorithms/codecs (which implies building a single DSP Server with both encode and decode algorithms).

    Hope that helps.

    Chris

  • Hey all..

    Thank You very much for the replies.

    The problem is solved now. As you suggested I have written configuration scripts to create single DSP engine which will run both the codec algorithms and it works. :)

     

    Cheers,

    Teja

     

  • HI,

    I have build single server using the h264dec  decoder and h264enc encoder library, downloaded from TI's web site.

    I am able to run the single server, but the Encoder Process function is returning status  -1 , can anyone guide me for this error.

    If i am running individually Encoder and Decoder, its working fine and able to decode and encode the data properly.

     

    Parshant Gupta