<html>
<head>
    <base href="https://wiki.asterisk.org/wiki">
            <link rel="stylesheet" href="/wiki/s/2036/1/7/_/styles/combined.css?spaceKey=TOP&amp;forWysiwyg=true" type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://wiki.asterisk.org/wiki/display/TOP/Desirable+Codecs%2C+Audio+and+Video">Desirable Codecs, Audio and Video</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://wiki.asterisk.org/wiki/display/~mdavenport">Malcolm Davenport</a>
    </h4>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" > <br>- *Ogg Vorbis:* tbd - RFC5215 <br></td></tr>
            <tr><td class="diff-changed-lines" >- <span class="diff-deleted-words"style="color:#999;background-color:#fdd;text-decoration:line-through;">*Internet Wideband Audio Codec:*</span> <span class="diff-added-words"style="background-color: #dfd;">*OPUS:*</span> 8, 12, and 16kHz sampling in LP mode at 10, 20 (default), 40 and 60ms; 8, 16, 32 and 48kHz sampling in MDCT-only mode at 2.5, 5, 10 (default), and 20ms; and 32 and 48kHz sampling in Hybrid mode at 10 and 20ms (default) - [IETF Working Group|http://datatracker.ietf.org/wg/codec/] <br></td></tr>
            <tr><td class="diff-unchanged" >- *Broadvoice:* 8kHz sampling at 16kbit/s &amp; 16kHz at 32kbit/s, default to 20ms variable in multiples of 5ms - RFC4298 <br>- *CELT:* 32kHz, 44.1kHz, 48kHz or 96kHz sampling at various bitrates from 24-160kbit/s, default to 10ms in multiples of 10ms - draft-valin-celt-rtp-profile-02 <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="DesirableCodecs%2CAudioandVideo-DesirableCodecs%2CAudioandVideo"></a>Desirable Codecs, Audio and Video</h1>

<p>Below, find a listing of codecs for which both pass-through and transcoding support would be exceedingly useful.  Expect this page to be a work in progress as definitions and priorities are laid out.</p>

<h3><a name="DesirableCodecs%2CAudioandVideo-OpenSourceandUnencumberedaudiocodecs"></a>Open Source and Unencumbered audio codecs</h3>

<h5><a name="DesirableCodecs%2CAudioandVideo-Phase0%22Infrastructure%22"></a>Phase 0 "Infrastructure"</h5>

<ul class="alternate" type="square">
        <li><b>Linear 8:</b> 8kHz sampling, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>Linear 16:</b> 8kHz, 11025Hz, 16kHz, 22050Hz, 24kHz, 32kHz, 44.1kHz, 48kHz, 96kHz, or 192kHz sampling, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>Linear 20:</b> 8kHz, 11025Hz, 16kHz, 22050Hz, 24kHz, 32kHz, 44.1kHz, 48kHz, 96kHz, or 192kHz sampling, default to 20ms in multiples of 10ms - RFC3190</li>
        <li><b>Linear 24:</b> 8kHz, 11025Hz, 16kHz, 22050Hz, 24kHz, 32kHz, 44.1kHz, 48kHz, 96kHz, or 192kHz sampling, default to 20ms in multiples of 10ms - RFC3190</li>
        <li><b>Linear 32:</b> 8kHz, 11025Hz, 16kHz, 22050Hz, 24kHz, 32kHz, 44.1kHz, 48kHz, 96kHz, or 192kHz sampling, default to 20ms in multiples of 10ms - No current RFC, should likely extend RFC3190 and follow its pattern</li>
</ul>


<h5><a name="DesirableCodecs%2CAudioandVideo-Phase1%22OldFriends%22"></a>Phase 1 "Old Friends"</h5>

<ul class="alternate" type="square">
        <li><b>G.711:</b> PCMU u-law and PCMA a-law 8kHz sampling at 64kbit/s, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>G.722:</b> 16kHz sampling at 48, 56, and 64kbit/s, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>GSM-FR:</b> (GSM 06.10) 8kHz sampling at 13kbit/s or 13.2kbit/s, default to 20ms variable in multiples of 20ms - RFC4856</li>
        <li><b>G.726:</b> 8kHz sampling at 16, 24, 32 and 40kbit/s, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>iLBC:</b> 8kHz sampling at 13.33kbit/s @ 30ms &amp; at 15.20kbit/s @ 20ms - RFC3952</li>
        <li><b>Speex:</b> 8kHz sampling at 2.15-24.6kbit/s @ 20ms &amp; 16kHz and 32kHz at 4-44.2kbit/s @ 20ms in multiples of 20ms - RFC5574</li>
        <li><b>G.726 AAL2:</b> 8kHz sampling at 16, 24, 32, and 40kbit/s, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>ADPCM, Dialogic (VOX):</b> 6kHz or 8kHz sampling at 32kbit/s, default to 20ms in multiples of 10ms - RFC4856</li>
        <li><b>Linear Progression Codec 10:</b> 8kHz sampling at 2.4kbit/s, default to 90ms - RFC4856</li>
</ul>


<h5><a name="DesirableCodecs%2CAudioandVideo-Phase2%22NewFriends%22"></a>Phase 2 "New Friends"</h5>

<ul class="alternate" type="square">
        <li><b>Ogg Vorbis:</b> tbd - RFC5215</li>
        <li><b>OPUS:</b> 8, 12, and 16kHz sampling in LP mode at 10, 20 (default), 40 and 60ms; 8, 16, 32 and 48kHz sampling in MDCT-only mode at 2.5, 5, 10 (default), and 20ms; and 32 and 48kHz sampling in Hybrid mode at 10 and 20ms (default) - <a href="http://datatracker.ietf.org/wg/codec/" class="external-link" rel="nofollow">IETF Working Group</a></li>
        <li><b>Broadvoice:</b> 8kHz sampling at 16kbit/s &amp; 16kHz at 32kbit/s, default to 20ms variable in multiples of 5ms - RFC4298</li>
        <li><b>CELT:</b> 32kHz, 44.1kHz, 48kHz or 96kHz sampling at various bitrates from 24-160kbit/s, default to 10ms in multiples of 10ms - draft-valin-celt-rtp-profile-02</li>
        <li><b>DVI4:</b> 8kHz or 16kHz at 32kbit/s, default to 20ms for 8Khz and 40ms for 16kHz, multiples of 10ms - RFC4856</li>
</ul>


<p>Note that some codecs allow for Stereo mode; for those codecs that allow Stereo mode, with which we must be able to deal</p>

<h3><a name="DesirableCodecs%2CAudioandVideo-ClosedSourceandEncumberedAudioCodecs"></a>Closed Source and Encumbered Audio Codecs</h3>

<h5><a name="DesirableCodecs%2CAudioandVideo-Phase1%22OldFriends%22"></a>Phase 1 "Old Friends"</h5>

<ul class="alternate" type="square">
        <li><b>G.729ab:</b> 8kHz sampling at 8kbit/s, default to 20ms variable in multiples of 10ms.  - Already licensed by Digium - RFC4856</li>
        <li><b>G.723.1:</b> 8kHz sampling at 5.3 and 6.3kbit/s, default to 30ms variable in multiples of 30ms - Needs to be licensed from Sipro - RFC4856</li>
        <li><b>G.722.1:</b> 16kHz sampling rate at 16, 24, and 32kbit/s @ 20ms in multiples of 20ms - Already licensed by Digium - RFC5577</li>
        <li><b>G.722.1C:</b> 32kHz sampling rate at 24, 32, and 48kbit/s @ 20ms in multiples of 20ms - Already licensed by Digium - RFC5577</li>
        <li><b>MPEG-2 Audio Layer 3:</b> 16, 22.05, 24, 32, 44.1 and 48kHz sampling at 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, 192, 224, 256, and 320kbit/s, default to  - RFC5219</li>
</ul>


<h5><a name="DesirableCodecs%2CAudioandVideo-Phase2%22NewFriends%22"></a>Phase 2 "New Friends"</h5>

<ul class="alternate" type="square">
        <li><b>Skype SILK:</b> at 8 (6-20kbit/s), 12 (7-25kbit/s), 16 (8-30kbit/s) and 24kHz (12-40kbit/s) sampling rates, default 20ms in multiples of 20ms from 20-100ms - Already licensed by Digium - (developer.skype.com/silk)</li>
        <li><b>AMR-NB:</b> 8kHz sampling rate at 4.75, 5.15, 5.90, 6.70, 7.40, 7.95, 10.20, and 12.20kbit/s @ 20ms - Needs to be licensed from Voiceage - RFC4867</li>
        <li><b>AMR-WB G.722.2:</b> 16kHz sampling rate at 6.60, 8.85, 12.65, 14.25, 15.85, 18.25, 19.85, 23.05, and 23.85kbit/s @ 20ms and Needs to be licensed from Voiceage - RFC4867</li>
        <li><b>G.719:</b> 48kHz sampling at 32, 48, 64, 80, 96, 112 and 128kbit/s, defaults to 20ms in multiples of 20ms - RFC5404</li>
        <li><b>AAC &amp; HE-AACv1:</b> 8, 16, 32, 48, and 96kHz sampling rates, multi-channel support - Needs to be licensed from <a href="http://www.vialicensing.com" class="external-link" rel="nofollow">Via Licensing</a> &#45; RFC3640</li>
</ul>




<h3><a name="DesirableCodecs%2CAudioandVideo-OpenSourceandUnencumberedVideoCodecs"></a>Open Source and Unencumbered Video Codecs</h3>

<ul class="alternate" type="square">
        <li><b>VP8:</b> Encoding and Decoding with webm (www.webmproject.org)</li>
        <li><b>Theora:</b> Encoding and Decoding with libtheora (www.theora.org) - <a href="http://tools.ietf.org/html/draft-barbato-avt-rtp-theora-01" class="external-link" rel="nofollow">draft-barbato-avt-theora-01</a></li>
</ul>


<h3><a name="DesirableCodecs%2CAudioandVideo-ClosedSourceandEncumberedVideoCodecs"></a>Closed Source and Encumbered Video Codecs</h3>

<ul class="alternate" type="square">
        <li><b>H.264:</b> Encoding with x264 (www.videolan.org) and Decoding with libavcodec (www.ffmpeg.org) - RFC3984</li>
        <li><b>H.263:</b> Encoding and Decoding with libavcodec (www.ffmpeg.org) - RFC3555</li>
        <li><b>H.263&#43; 1998:</b> Encoding and Decoding with libavcodec (www.ffmpeg.org) - RFC4629</li>
        <li><b>H.263+&#43; 2000:</b> Encoding and Decoding with unknown library. - RFC4629</li>
        <li><b>H.261:</b> Encoding and Decoding with libavcodec (www.ffmpeg.org) - RFC4587</li>
</ul>





<h3><a name="DesirableCodecs%2CAudioandVideo-References"></a>References</h3>

<p><a href="http://www.iana.org/assignments/media-types/audio/" class="external-link" rel="nofollow">http://www.iana.org/assignments/media-types/audio/</a></p>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://wiki.asterisk.org/wiki/users/viewnotifications.action" class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Desirable+Codecs%2C+Audio+and+Video">View Online</a>
        |
        <a href="https://wiki.asterisk.org/wiki/pages/diffpagesbyversion.action?pageId=1736761&revisedVersion=31&originalVersion=30">View Changes</a>
                |
        <a href="https://wiki.asterisk.org/wiki/display/TOP/Desirable+Codecs%2C+Audio+and+Video?showComments=true&amp;showCommentArea=true#addcomment">Add Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>