[asterisk-dev] [Code Review] dahdi_transcode: A command line utility to convert audio to/from formats supported by the TC400M VPM

Sean Bright reviewboard at asterisk.org
Thu Dec 20 13:13:29 CST 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/2252/
-----------------------------------------------------------

Review request for Asterisk Developers, Shaun Ruffell and rmeyerriecks.


Summary
-------

I ran into a situation where I wanted to use one of the Digium transcoder cards installed in a machine to convert u-law to G.729A, without needing to install Asterisk.  This command line utility grew out of that need.

The original version of this code was a phase-locked implementation that used blocking FDs for the input, output, and transcoder interface, but I wanted to make it perform better and changed it to use multiplexed I/O.  As this is the first time that I have really used select() in something other than hobby code, that the implementation may need some work.  That being said, it is functional and I am able to convert audio to and from G.729A.


Diffs
-----

  /tools/trunk/Makefile 10738 
  /tools/trunk/dahdi.xml 10738 
  /tools/trunk/dahdi_transcode.c PRE-CREATION 

Diff: https://reviewboard.asterisk.org/r/2252/diff


Testing
-------

I was able to convert a u-law source file into G.729A, and back (albeit with loss of quality on the way back).  I wasn't able to test the G.723.1 path as I don't currently have a TC400M in mixed mode.


Thanks,

Sean

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20121220/48e53738/attachment.htm>


More information about the asterisk-dev mailing list