[Ffmpeg-devel] Interleaving audio and video

Roman Shaposhnik rvs
Sun Feb 4 07:03:46 CET 2007


Hi

On Fri, 2007-02-02 at 12:17 +0100, Michael Niedermayer wrote:
> > > packets MUST be interleaved according to
> > > AVOutputFormat.interleave_packet i thought the doxygen comments
> > > clearly say so but apparently not
> > 
> > yes, API atm permits to use av_write_frame though, maybe adding a check
> > for interleave_packet presence, and then call it in av_write_frame anyway ?
> 
> no, if the user app can gurantee correct inerleaving then interleave_packet()
> should not be used as it slows muxing down by a small amount of memcpy() time

  Well, the trouble is that in DV and GXF case even the
AVOutputFormat.interleave_packet is/would be used instead of an actual
packetizer. Which means that even for the perfectly interleaved
streams we would still need that extra magic to carefuly manage
an actual size of the packets.

  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 ?

Thanks,
Roman.





More information about the ffmpeg-devel mailing list