I have added muxing to my gpl viewer and found some issues.

With saving vcodec mpeg4, acodec libmp3lame, my video works fine and audio is in sync. However the audio (without any sound) extends past the video for several hundred frames. The flushing of the audio seems to create this. If I don't flush the audio (calling multiple times avcodec_encode_audio2 with the NULL pointer), I get missing audio.

When playing back the resulting video sometimes (and only sometimes) ffmpeg complains (multiple times):

Trying to remove 1839 samples, but the queue is empty

1839 samples is exactly the size of a AVCodecContext->frame_size (src_nb_samples). I was wondering if someone saw this before or if someone has an idea on how to debug the problem of the audio extending too far.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to