Hi Carl,
I am new in ffmpeg community.
May be you are write but the code works fine there is no issue,
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...
Can you suggest something so the issue will get resolved. ..
Thanks for suggestion.

On 15 Feb 2017 16:26, "Carl Eugen Hoyos" <[email protected]> wrote:

> 2017-02-15 7:58 GMT+01:00 Prakash Rokade <[email protected]>:
> >         codecContext->sample_fmt = codec->sample_fmts[0];
>
> >         int ret = Ffmpeg::avcodec_open2(codecContext, codec, NULL);
>
> I believe you cannot generally do this:
> A codec does not necessarily support the sample_fmt you set.
> Additionally, the actual supported list of sample_fmts for a codec
> is not part of the API, it has changed in the past without any
> particular warning (like a version bump).
>
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to