<div dir="ltr">Hello,<div><br></div><div>Yes...I am using swr_convert after decoding. decoder produces AV_SAMPLE_FMT_FLTP format.</div><div><br></div><div>while creating swr context i am setting above settings to output codec context. (finding decoder for <i style="font-size:13px;color:rgb(0,0,192);font-family:"Eco Sans Mono"">AV_CODEC_ID_PCM_S16LE and setting </i><i style="font-size:13px;font-family:"Eco Sans Mono";color:rgb(0,0,192)">AV_SAMPLE_FMT_S16</i><i style="font-size:13px;color:rgb(0,0,192);font-family:"Eco Sans Mono""> </i>)</div><div>and i have same sample rate and channels as input. conversion API is success. only thing issue is that in output i have a lot of noise along with original sound.</div><div><br></div><div>which is exactly similar to problem <a href="https://trac.ffmpeg.org/ticket/3525" target="_blank">https://trac.ffmpeg.org/ticket/3525</a>. I tried given solution but noise is not removed. Could anybody tell is there any working solution to above problem ?</div><div><br></div><div>For reference These are the steps i am following.</div><div><br></div><div>my code is taken similar to transcode_aac.c example, only thing changed is i am converting from aac to pcm.</div><div><br></div><div>Any pointers are welcome.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 9, 2019 at 10:16 PM Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Fr., 9. Aug. 2019 um 17:19 Uhr schrieb Gitanshu Mehndiratta<br>
<<a href="mailto:gitanshu39@gmail.com" target="_blank">gitanshu39@gmail.com</a>>:<br>
<br>
> My target is to convert AAC, fltp format to PCM, S16 format.<br>
<br>
If you are using the native "aac" decoder, the output is AV_SAMPLE_FMT_FLTP,<br>
you have to use either the aresample filter or the libswresample<br>
library directly<br>
to convert to AV_SAMPLE_FMT_S16.<br>
There is also an "aac_fixed" decoder but is provides AV_SAMPLE_FMT_S32P<br>
which you also have to convert.<br>
<br>
Note that the format provided by a decoder is not part of the api, it has<br>
changed in the past and may change in the future so it is a good idea<br>
to use aresample even if the decoder and encoder (currently) use the<br>
same sample format.<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>