<div dir="ltr">Hi All,<div><br></div><div>I am using the below code where the channel layout I used is AV_CH_LAYOUT_STEREO.It is working fine.</div><div>
<p class=""><span class="">snprintf(strbuf, </span><span class="">sizeof</span><span class="">(strbuf),</span><span class="">"sample_fmts=%s:sample_rates=%d:channel_layouts=0x%"</span><span class="">PRIx64,av_get_sample_fmt_name(AV_SAMPLE_FMT_S16), 44100,(uint64_t)AV_CH_LAYOUT_STEREO);</span></p>
<p class=""><span class=""> </span>err = <span class="">avfilter_graph_create_filter</span>(&aformat_ctx, aformat, NULL, strbuf,NULL, filter_graph);</p><p class=""><br></p><p class="">Bot when i use mono channel layout (below code)then voice of the song is different and the song is running bit fast.</p>
<p class=""><br></p><p class=""><span class="">snprintf(strbuf, </span><span class="">sizeof</span><span class="">(strbuf),</span><span class="">"sample_fmts=%s:sample_rates=%d:channel_layouts=0x%"</span><span class="">PRIx64,av_get_sample_fmt_name(AV_SAMPLE_FMT_S16), 44100,(uint64_t)AV_CH_LAYOUT_MONO);</span></p>
<p class=""><span class=""></span></p><p class="">err = <span class="">avfilter_graph_create_filter</span>(&aformat_ctx, aformat, NULL, strbuf,NULL, filter_graph); </p><p class="">So please resolve the problem.</p><p class="">
Thanks & Regards,</p><p class="">Vinay Yamusani.</p></div></div>