Re: [Libav-user] How to correctly split AVFrame with audio samples on encoding

2012-11-15 Thread hatred
Nicolas, thanks for answer. Currently I implement this solution but I have a warning message: Que input is backward in time but I think I will resolve it :-) 2012/11/15 Nicolas George > Le quintidi 25 brumaire, an CCXXI, hatred a écrit : > > I think that I must split one AVFrame into two or mor

Re: [Libav-user] How to correctly split AVFrame with audio samples on encoding

2012-11-15 Thread Nicolas George
Le quintidi 25 brumaire, an CCXXI, hatred a écrit : > It provides AVFrame's with nb_samples = 1152, but when I open output codec > it have frame_size = 576 and when I encode audio frame I take error message: > more samples than frame size (avcodec_encode_audio2) > > I think that I must split o

[Libav-user] How to correctly split AVFrame with audio samples on encoding

2012-11-14 Thread hatred
Hi List, I write live transcoder for our IP-cameras, in some cases audio straem also need to transcoder. But I have a problem with non-equal frame_size in input codec context and output codec context: 1. I read audio packet 2. I decode it with avcodec_decode_audio4() It provides AVFrame's with nb_