[Libav-user] Issue with Encoding Nellymoser decoded data to wav /mp3 format
NITIN GOYAL
nitinkumgoyal at gmail.com
Tue Aug 23 15:13:20 CEST 2011
Hi
I have decoded the nellymoser audio coded data using ffmpeg using
avcodec_decode_audio3 function and I got the pointer with the raw data but
the other metrices like sampling rate, bit rate all returning the default
values. Nevertheless, i have saved that raw data into the file.
Now, i want to encode that decoded data in to wav format so i haved used the
ffmpeg example to encode it using avcodec_encode_audio function, but it is
not bale to encode and retunr the error invalid sample_fmt.
I am not able to track the issue. Can someone help me out to tackle it.
If i use the same code to convert this raw data into mp3, i got the mp3 with
some weird noise instead of the correct one.
So, i want to know if this the problem with decoded data or something else.
How can i validate that the decoded data is correct as i cant play it in any
player is there any way to do the validation.
Thanks
Nitin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110823/d14b26ce/attachment.html>
More information about the Libav-user
mailing list