<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
Using “audio_fifo” to cache samples, When the samples number in fifo is enough to 1024, and then encode it.
<div class="">The last, If the number of samples is less than 1024 in fifo, fill with mute</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">look at “<span style="font-family: Menlo; font-size: 11px;" class="">doc/examples/transcode_aac.c</span>”</div>
<div class=""><br class="">
</div>
<div class="">LeiHec<br class="">
<div class="">
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;">
<a href="mailto:helei0908@hotmail.com" class="">helei0908@hotmail.com</a></div>
<div style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<br class="">
</div>
<br class="Apple-interchange-newline">
</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">在 2018年10月26日,下午4:34,강구철 <<a href="mailto:kckang@skycom.ne.kr" class="">kckang@skycom.ne.kr</a>> 写道:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="WordSection1" style="page: WordSection1; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;">
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">Im transcode voice comming from WebRTC through by RTP with h264 video.<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">received sound unit is 20msec OPUS stereo 48000 2channel sample per second<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">its good decoded to PCM32 FLTP type and good play.<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">after decode I encode to AAC 48000 stereo frame nb_samples is 960. but encoding ffmpeg aac function<span class="Apple-converted-space"> </span><o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">attach 64 samples every each decoded raw PCM samples. what should I do for it to improving final aac product quality ?<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">now I found AAC Context be able to control cypher block size 1024 to 960. some documents say aac encoder default block is 1024.<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">AACContext *ac = (AACContext*)aac_context->priv_data;<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">MPEG4AudioConfig *m4ac = &(ac->oc[0].m4ac);<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">m4ac->frame_length_short = 1;//1:960, 0:1024<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class="">is this right approching ? appriciate any kinds of oppinion of you guys!!<o:p class=""></o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
<div style="margin: 0cm 0cm 0.0001pt; text-align: justify; font-size: 10pt; font-family: "맑은 고딕";" class="">
<span lang="EN-US" class=""><o:p class=""> </o:p></span></div>
</div>
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">_______________________________________________</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Libav-user
mailing list</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="mailto:Libav-user@ffmpeg.org" style="color: purple; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">Libav-user@ffmpeg.org</a><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" style="color: purple; text-decoration: underline; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;" class="">http://ffmpeg.org/mailman/listinfo/libav-user</a></div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>