Hi , Good now its very simple. You have to read a row frame. There is simple calculation for calculating raw frame size. For mono audio I.e pcm file frame size is 1024*2*1. (1024*bit depth*no of channels ). For 16 bit pcm bit depth is 2. So for mono input yor have to give (1024*2*1) bytes for frame to encode call. Plz check encode call api. I thnk it is simple in avpacket you have to give input buffer pointer and its size.
Plz let me know further Regards Tushar Sent from my BlackBerry® on Reliance Mobile, India's No. 1 Network. Go for it! -----Original Message----- From: Tariqul Islam <[email protected]> Sender: [email protected]: Tue, 30 Jul 2013 18:38:21 To: This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter.<[email protected]> Reply-To: "This list is about using libavcodec, libavformat, libavutil, libavdevice and libavfilter." <[email protected]> Subject: Re: [Libav-user] Encoding from file _______________________________________________ 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
