Personal tools

Log in

Changes

From IGEP - ISEE Wiki

Jump to: navigation, search

How to add new codecs to IGEP GST FRAMEWORK

1,884 bytes removed, 13:14, 14 May 2012
m
removed broken link
=  How to add a new codec in IGEP-GST-DSP-FRAMEWORK =
<span lang="EN-US" />We will demostrate how to add a new codec inside the IGEP-GST-DSP-FRAMEWORK.
Texas instruments DSP Codecs page it's [http://focus.ti.com/dsp/docs/dspfindtoolswbytooltype.tsp?sectionId=3&tabId=1460&toolTypeId=65&familyId=44 here].
<span lang="EN-US" />DM3730 or OMAP3530 accept the codecs Omtimized for OMAP3530 & DM3730 or C64+ DSP based devices.
We will integrate a acc audio encoder in the codec server.
<span lang="EN-US">igep-dsp-gst-framework-3_20_00/codecs-omap3530_4_02_00_00/packages/ti/sdo/codecs</span>
=== ''<span lang="EN-US">Step 4 -&nbsp;</span><span lang="EN-US">Modifications inside the</span>'' Codec Server ===
<span lang="EN-US">Once the Codec Package is integrated inside
var AACHEENC = xdc.useModule('ti.sdo.codecs.aacheenc.ce.AACHEENC');
&lt;span lang="EN-US"&gt;/*&lt;/span&gt; &lt;span lang="EN-US"&gt;The XDC file in the codec directory (i.e.AACHEENC.xdc) contains the different sections that are defined in the algorithm
that require to be mapped to defined memory sections by the server. Usually
this memory definitions are contained in the TCF file (''server.tcf''). For example to fulfill the requirements for the AACHE
encoder algorithm, and continuing with the variable defined before, the
following entries are added to the configuration file: &lt;/span&gt; &lt;span lang="EN-US"&gt;*/&lt;/span&gt;
&lt;span lang="EN-US"&gt;/* in my case with aacheenc */&lt;/span&gt;&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.serverFxns = "AUDENC1_SKEL";&lt;/span&gt;
&lt;span lang="EN-US" /&gt;&lt;span lang="EN-US"&gt;AACHEENC.stubFxns = "AUDENC1_STUBS";&lt;/span&gt;&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.useCache = false;&lt;/span&gt;
&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.alg.watermark = false;&lt;/span&gt;
&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.alg.codeSection = codeSection;&lt;/span&gt;
&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.alg.udataSection = udataSection;&lt;/span&gt;
&lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;AACHEENC.alg.dataSection = dataSection;&lt;/span&gt;
&lt;span lang="EN-US"&gt;/* Add the Algorithm to the server by adding
a new set to the ''Server.algs'' array.
For example to add the AACHEENCODER algorithm, the following entry needs to be
added */&lt;/span&gt;
&lt;span lang="EN-US"&gt;&lt;o:p&gt;&nbsp;&lt;/o:p&gt;&lt;/span&gt;{ &lt;span lang="EN-US"&gt;{name: "aacheenc", mod: AACHEENC ,threadAttrs: {&lt;/span&gt; &lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;stackMemId: 0, priority: Server.MINPRI + 3},&lt;/span&gt; &lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;groupId&nbsp;: 2,&lt;/span&gt; &lt;span lang="EN-US"&gt;&nbsp;&nbsp;&nbsp; },&lt;/span&gt;
</pre>
<br>
of the Server, add the codec to the validation entries in </span><span class="Teletype"><span lang="EN-US">package.xs</span></span><span lang="EN-US"> file
of the server, which is in same directory as codec.cfg</span>
<pre>&lt;span lang="EN-US"&gt;/* in my case with aacheenc */&lt;/span&gt; &lt;span lang="EN-US"&gt;validate_one_codec( "ti.sdo.codecs.aacheenc", "AACHEENC" );&lt;/span&gt;&lt;br&gt;</pre> &lt;span lang="EN-US" /&gt; <br>
=== <span lang="EN-US">''Step 6 - Add codec in gstreamer''</span> ===
<span lang="EN-US">directory and add following lines.</span>
<pre>&lt;span lang="EN-US"&gt;&lt;o:p&gt; &lt;/o:p&gt;&lt;/span&gt;&lt;span lang="EN-US"&gt;/* in my case with aacheenc */&lt;/span&gt; &lt;span lang="EN-US"&gt;{
"AAC Audio Encoder", /* String name of codec used by plugin*/
"aacheenc", /* String name of codec used by CE */
codecServer /* Engine that contains this codec */
},
&lt;!--[if&nbsp;!supportLineBreakNewLine]--&gt;&lt;!--[endif]--&gt;&lt;/span&gt;</pre> &lt;span lang="EN-US" /&gt;  
=== <span lang="EN-US">Step 7 - Compile</span> ===
IGEP-GST-DSP framework, copy newly generated files cs.x64P and
ligstticodecplugin.so on board and test with&nbsp;
gstreamer pipeline.</span> <br> <pre>gst-launch-0.10 alsasrc ! TIAudenc1 codecName=aacheenc engineName=codecServer ! filesink location=test.aac</pre> == <span lang="EN-US">References</span> ==
*<span lang="EN-US">&lt[http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK#Modifications_inside_the_Codec_Server <span style="color:windowtext;otext-decoration:p&gt;&nbsp;&ltnone;text-underline:none">http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK#Modifications_inside_the_Codec_Server</o:p&gt;span>]</span>
== <span lang="EN-US">&lt;o:p&gt;References&lt;/o:p&gt;</span> Thanks ==
*<span lang="EN-US">Many thanks to&ltnbsp;o:p&gt;&lt;/o:p&gt;</span><span lang="EN-US">[http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK#Modifications_inside_the_Codec_Server <span style="color:windowtext;text-decoration:none;text-underline:none">http://processors.wiki.ti.com/index.php/How_do_I_Integrate_new_codecs_into_DVSDK#Modifications_inside_the_Codec_Server</span>]</span> *<span lang="EN-US">[http://www.igep.es/indexPratik G Shinde for this contribution.php?option=com_kunena&Itemid=97&func=view&catid=80&id=6765&limit=6&limitstart=12#6806 <span style="color:windowtext;text-decoration:none;text-underline:none">http://www.igep.es/index.php?option=com_kunena&amp;Itemid=97&amp;func=view&amp;catid=80&amp;id=6765&amp;limit=6&amp;limitstart=12#6806</span>]</span><br> <span lang="EN-US">&lt;span style="color:windowtext;text-decoration:none;text-underline:none" /&gt;</span>  == Thanks ==
Many thanks to&nbsp;Pratik G Shinde for this contribution.[[Category:Gstreamer]]
0
edits