[Libav-user] MONO CHANNEL LAYOUT

Yamusani Vinay yamusanivinay at gmail.com
Sun Nov 17 14:20:22 CET 2013


Hi All,

I am using the below code where the channel layout I used is
AV_CH_LAYOUT_STEREO.It is working fine.

snprintf(strbuf, sizeof(strbuf),
"sample_fmts=%s:sample_rates=%d:channel_layouts=0x%"PRIx64,av_get_sample_fmt_name(AV_SAMPLE_FMT_S16),
44100,(uint64_t)AV_CH_LAYOUT_STEREO);

err = avfilter_graph_create_filter(&aformat_ctx, aformat, NULL,
strbuf,NULL, filter_graph);


Bot when i use mono channel layout (below code)then voice of the song is
different and the song is running bit fast.


snprintf(strbuf, sizeof(strbuf),
"sample_fmts=%s:sample_rates=%d:channel_layouts=0x%"PRIx64,av_get_sample_fmt_name(AV_SAMPLE_FMT_S16),
44100,(uint64_t)AV_CH_LAYOUT_MONO);

err = avfilter_graph_create_filter(&aformat_ctx, aformat, NULL,
strbuf,NULL, filter_graph);

So please resolve the problem.

Thanks & Regards,

Vinay Yamusani.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131117/516e4974/attachment.html>


More information about the Libav-user mailing list