Re: [Libav-user] h264 Encoding problems

2011-11-04 Thread Matthew Einhorn
On Fri, Nov 4, 2011 at 2:40 AM, Zac Shenker wrote: > Hi, > I have started working on some code based on the decoding_encoding.c sample > file to encode the test pattern as h.264 video. > The settings I am using on my AVCodecContext is as follows: > c->width = 352; > c->height = 288; > c->time_base

Re: [Libav-user] converting pcm sample rate

2011-11-04 Thread Michael Niedermayer
On Wed, Nov 02, 2011 at 05:48:16PM +0700, Anton Adamansky wrote: > Hello! > > I'm converting sample rate for raw pcm buffer: > > input:2ch, in_srate: 22050 sample: 16bits > output: 2ch, out_srate: 44100 sample: 16bits > > So I'm using swr_convert() function: > > int out_samples = >