Try testing your program by reading a raw PCM file from disk, to see
if it is ffmpeg's encoding routines (which seems likely if the S16_LE
format is working). If you are able to record flawless raw audio with
your program, then you'd probably get better answers by asking on the
ffmpeg list.
Mike
Hello,
I am trying to capture the "default" audio output using alsa API and use
ffmpeg to compress the raw stream. I set the captured format to be
SND_PCM_FORMAT_S16_LE and use CODEC_ID_MP2 from ffmpeg to compress the
captured stream. For some reasons, the output stream is corrupted and I can
hea