[Ffmpeg-devel] avcodec_encode_audio help

Michel Bardiaux mbardiaux
Wed Apr 4 10:11:59 CEST 2007


rkmr.em at gmail.com wrote:
> 

Please dont top-post.

> This is what is in avcodec.h
> I cant find any other info. Can you pl. tell how many bytes is read from
> samples?
> thanks a lot!
> 
> int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,
>                         const short *samples);
> 

There should be doxygen comments just above that. If not, then you need 
to svn update.

> 
> 
> On 4/2/07, Michael Niedermayer <michaelni at gmx.at> wrote:
>>
>> Hi
>>
>> On Mon, Apr 02, 2007 at 05:38:18PM -0700, rkmr.em at gmail.com wrote:
>> > Hi
>> > I really tried to google and looked at the documentation. But could not
>> find
>> > info.
>> > This is how I encode audio.
>> >
>> >                        int out_size = avcodec_encode_audio( m_aEnc,
>> >                                                             outbuf,
>> > outbuf_size,
>> >                                                             (const 
>> short
>> > int*) m_audioSamples );
>> >
>> >
>> > I want to know how many bytes of audio data is read from 
>> m_audioSamples?
>> I
>> > have to use that data else where. What is outbuf_size used for?
>>
>> see avcodec.h
>>


-- 
Michel Bardiaux
R&D Director
T +32 [0] 2 790 29 41
F +32 [0] 2 790 29 02
E mailto:mbardiaux at mediaxim.be

Mediaxim NV/SA
Vorstlaan 191 Boulevard du Souverain
Brussel 1160 Bruxelles
http://www.mediaxim.com/




More information about the ffmpeg-devel mailing list