[Libav-user] Encoding from file

Tushar Paithankar p.tushar99 at gmail.com
Mon Jul 29 12:19:56 CEST 2013


On Sunday, 28 July 2013, Tariqul Islam <tariqul.isha at gmail.com> wrote:
> Hello,
> I am new to ffmpeg coding. In ffmpeg source code, encoding decoding
example is given in encoding_decoding.c. In this file while working with
audio, a raw audio is created, then encoded, then decoded into a c file.
What i am trying to do is to read from that C file, encode and thus
reconstruct the previous audio file. But i am getting noise.
>
> Following Mr. Tusher's advice, i used exact code of encoding_decoding.c
and decoded a mp2 file (Could not answer to that thread because subscribed
after he answered. Sorry Mr. Tusher). But playing that decoded file, i am
getting previous sound with heavy noise. Can anybody tell me what is the
reason of it? To decode an audio file (mp2), is there any tutorial that i
can follow???
> Regrads,
> Tariqul islam
>


Hi tariqul islam,

You first try to use mono clip for your encoding and decoding purpose,  as
per your description I thnk your making mistake while reading data from the
buffers.  In example they hv given for single channel mono audio. Plz let
me know.



Regards
Tushar

-- 
Sent from blackberry reliance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130729/9dd868c7/attachment.html>


More information about the Libav-user mailing list