[Ffmpeg-devel] Interleaving audio and video

Baptiste Coudurier baptiste.coudurier
Fri Feb 2 12:08:25 CET 2007


Michael Niedermayer wrote:
> Hi
> On Thu, Feb 01, 2007 at 03:41:45PM -0800, Roman Shaposhnick wrote:
>> On Thu, 2007-02-01 at 09:42 +0100, Michael Niedermayer wrote:
>>> Hi
>>> On Wed, Jan 31, 2007 at 08:10:28PM -0800, Roman Shaposhnik wrote:
>>>> While implementing an idea suggested by Michael for
>>>> restructuring DV audio muxer I've come to realize that DV muxer
>>>> currently expects a caller to take care of interleaving audio
>>>> and video properly based on PTS valued. Now we know that
>>>> ffmpeg.c does it, but is it fair to require that kind of
>>>> behaviour in general of all users of libavformat ?
>>>> Or to put it differently, do I have to care about caller giving
>>>>  me the following pattern of DV audio/video packets:
>>> see av_interleaved_write_frame() (the docs above it) and
>>> AVOutputFormat.interleave_packet()
>> I see. Thanks for pointing it out. I guess my followup question is
>> exactly along the lines of what Baptiste has asked -- should we
>> enforce it somehow ?
> 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 ?

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312

More information about the ffmpeg-devel mailing list