On Thu, 2010-09-30 at 11:37 +0200, Robert Nagy wrote: > I'm following the output-example.c example for encoding video and audio. > > I've got video encoding working well. > > However I have problems with encoding audio. > > My audio source gives me audio chunks with the size 7680 bytes. (48000 > (sample rate) * 2 (channels) * 2 (bytes/sample)) / 25 (fps) / = 7680 > > However the frame size i get from my encoding AVCodecContext is 1152. > > What do I need to do to get proper frame_size?
Use a FIFO. Look at what ffmpeg.c does. It basically boils down to: put
decoded samples in the FIFO, while(fifo has 1152 or more samples) { read
and encode 1152 samples }
/Tomas
signature.asc
Description: This is a digitally signed message part
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
