<div dir="ltr">I am not using command line. It is done in code in Android project. Some devices cannot record sound with 192000 and 44100 probably due to some hardware limitations. In such case Android dicreases params to 96000 and 16000. <div><br></div><div>I can reproduce the issue when I record sound with sampling rate 32000 and try to compress it with samling rate 44100 on FFMPEG side. Sound is very fast and it ends before the movie is ended. I this specific case setting sampling rate to 32000 on FFMPEG side fixes the problem and sound is correctly compressed. </div><div><br></div><div>So it looks that at least for sampling rate 16000 there is problem. I will check with 2.4 version with patch and without path. But it can take quit a long time, building FFMPEG and updated code if some functions no longer exists in 2.4(deprecated in 2.1). I will get back to you. Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 18 September 2014 19:05, Claudio Freire <span dir="ltr"><<a href="mailto:klaussfreire@gmail.com" target="_blank">klaussfreire@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, Sep 18, 2014 at 12:24 PM, Carl Eugen Hoyos <<a href="mailto:cehoyos@ag.or.at">cehoyos@ag.or.at</a>> wrote:<br>
> adev dev <androiddevmar11@...> writes:<br>
><br>
>> In this case sound is very fast and ends before<br>
>> end of movie.<br>
><br>
> (Klaus knows at least a magnitude more about audio<br>
> than I do but I wonder if he misunderstood you.)<br>
><br>
> Please test current (unpatched) FFmpeg and show<br>
> your command line and complete, uncut console<br>
> output and please provide an input sample.<br>
<br>
</span>I know the bug sounds very unrelated to that patch, but that audio<br>
stream with 500 b/s is something I noticed happening on unpatched git<br>
head, that the patch fixes.<br>
<br>
And there's sample rate table updates too, which AFAIK shouldn't<br>
affect 16000, but who knows.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>