[Ffmpeg-devel] Interleaving audio and video
Roman Shaposhnik
rvs
Sun Feb 4 21:53:54 CET 2007
Hi
On Sun, 2007-02-04 at 10:42 +0100, Michael Niedermayer wrote:
> > As I pointed out in my previous email -- it seems that the
> > current implementation of the GXF would generate incorrect results
> > if av_write_frame() gets used. Even for the incoming stream of
> > packets with the perfect interleave.
> >
> > I think we should fix this. Your thoughts ?
>
> either allow interleave_packet() to repack PCM packets or change the gxf
> muxer to not repack them in interleave_packet()
Here I don't quite follow. The problem in my opinion is to make
client use interleave_packet() in the first place. Of course
one could argue that they are supposed to know the difference
between av_interleaved_write_frame() and av_write_frame() and
use them appropriately. However, currently for any application
with a flexible set of output formats there's no way short of:
if (s->oformat->interleave_packet) {
av_interleaved_write_frame(s, pkt);
} else {
av_write_frame(s, pkt);
}
which seems to be kind of ugly to me ATM.
Thanks,
Roman.
More information about the ffmpeg-devel
mailing list