[Libav-user] muxing MP3 cut short
Gonzalo Garramuno
ggarra13 at gmail.com
Wed Apr 9 01:29:59 CEST 2014
On 07/04/14 16:49, Gonzalo Garramuno wrote:
> I am adding muxing to my video player and I am running into a wall.
>
> If I use mp3 (libmp3lame) as the audio encoding method, the resulting
> file has perfect audio that ends up short (like 256 frames). If I use
> PCM_S16LE, the audio is complete albeit I end up with some stutters in
> the audio (probably because of some bad use of swresample or the fact
> that my viewer splits audio into frames upon reading them).
> I cannot reproduce the problem with muxing.c on which my code is based.
> I can show the source code albeit it is a tad long.
>
> If anyone can think of something to try, I'm all ears.
> Thanks in advance.
I placed the source code at:
http://pastebin.com/RQJ5b0at
Please take a look and see if something catches your eye.
Thank you very much for taking the time.
More information about the Libav-user
mailing list