[Libav-user] Problem with compressing AAC files with sampling rate 16000

Claudio Freire klaussfreire at gmail.com
Fri Sep 19 18:51:28 CEST 2014


On Fri, Sep 19, 2014 at 5:28 AM, adev dev <androiddevmar11 at gmail.com> wrote:
> 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.
>
> 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.

Then it is quite possible that either during recording or during
playback, the sample rate is specified as 44100 or 22050 when it
really is lower.

Can you inspect the generated files on a pc, on a console, with the command:

ffmpeg -i <file>

And paste the output?


More information about the Libav-user mailing list