<p dir="ltr">Hi Carl,<br>
I am new in ffmpeg community. <br>
May be you are write but the code works fine there is no issue,<br>
 while writing the audio data no error. Only the output file has no audio but in file properties it shows the audio bitrate, sample rate... <br>
Can you suggest something so the issue will get resolved. .. <br>
Thanks for suggestion.<br>
</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 15 Feb 2017 16:26, "Carl Eugen Hoyos" <<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2017-02-15 7:58 GMT+01:00 Prakash Rokade <<a href="mailto:prakash.rokade420@gmail.com">prakash.rokade420@gmail.com</a>>:<br>
>         codecContext->sample_fmt = codec->sample_fmts[0];<br>
<br>
>         int ret = Ffmpeg::avcodec_open2(<wbr>codecContext, codec, NULL);<br>
<br>
I believe you cannot generally do this:<br>
A codec does not necessarily support the sample_fmt you set.<br>
Additionally, the actual supported list of sample_fmts for a codec<br>
is not part of the API, it has changed in the past without any<br>
particular warning (like a version bump).<br>
<br>
Carl Eugen<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</blockquote></div></div>