<div dir="ltr">@venkat rao,<div>are you encoding to mp2 or mp3,<br></div><div><div>b'cos <span style="font-size:12.8px">avcodec_encode_audio2() encodes to mp2</span></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><br><div>Thanks</div><div>suprith</div></div></div>
<br><div class="gmail_quote">On Wed, May 25, 2016 at 11:46 AM, Venkat Rao <span dir="ltr"><<a href="mailto:battula97@gmail.com" target="_blank">battula97@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi All,<div><br><div>I am facing below error can any one please reply how can I solve this issue ?</div><div><br></div><div> more samples than frame size (avcodec_encode_audio2) samples 1024 frame_size 512</div><div> nb_samples (1024) != frame_size (512) (avcodec_encode_audio2)</div><div><br></div></div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Tue, May 24, 2016 at 10:59 AM, Venkat Rao <span dir="ltr"><<a href="mailto:battula97@gmail.com" target="_blank">battula97@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hi ,</div><div><br> This is Venkat, I am new bee working with this open source codec. I need help on this libav transcoding.<br> 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.<br><br>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)".<br><br>Please help me on this, help me how can I improve my code to support raw input and convert to mp3 format. Thanks :)<span><font color="#888888"><br></font></span></div></div></div><div><br>Regards,<br>Venkatarao.<br><br></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><br>Regards,<br>Venkatarao.<br>Mobile Number: 9739391297.<br></div>
</font></span></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>