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.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to