[Ffmpeg-devel] Interleaving audio and video

Michael Niedermayer michaelni
Sun Feb 4 10:42:41 CET 2007


Hi

On Sat, Feb 03, 2007 at 10:03:46PM -0800, Roman Shaposhnik wrote:
> 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 ?

either allow interleave_packet() to repack PCM packets or change the gxf
muxer to not repack them in interleave_packet()

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Observe your enemies, for they first find out your faults. -- Antisthenes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070204/b642ece7/attachment.pgp>



More information about the ffmpeg-devel mailing list