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
The playback duration of audio frames and video frames is rarely the
same. Media players simply have to deal with it.
The number of samples in an audio frame is often dependent on the
compressed audio bitrate you choose.
Mike Scheutzow
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user