@venkat rao, are you encoding to mp2 or mp3, b'cos avcodec_encode_audio2() encodes to mp2
Thanks suprith On Wed, May 25, 2016 at 11:46 AM, Venkat Rao <[email protected]> wrote: > Hi All, > > I am facing below error can any one please reply how can I solve this > issue ? > > more samples than frame size (avcodec_encode_audio2) samples 1024 > frame_size 512 > nb_samples (1024) != frame_size (512) (avcodec_encode_audio2) > > > On Tue, May 24, 2016 at 10:59 AM, Venkat Rao <[email protected]> wrote: > >> Hi , >> >> This is Venkat, I am new bee working with this open source codec. I need >> help on this libav transcoding. >> I need to develop audio Transcoder which takes input as a audio raw file >> and and will get information externally like parameters: what type of >> codec, bit rate, number of channels etc. and I need to convert this raw >> file to mp3 or wav format. >> >> I am using example code "transcoding.c" file. which convert same codec >> form. I modified this code for taking raw file and converting to mp3, then >> facing issue like "[libmp3lame @ 0x620be0] more samples than frame size >> (avcodec_encode_audio2)". >> >> Please help me on this, help me how can I improve my code to support raw >> input and convert to mp3 format. Thanks :) >> >> Regards, >> Venkatarao. >> >> > > > -- > > Regards, > Venkatarao. > Mobile Number: 9739391297. > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
