[Ffmpeg-devel] WMA encoding and Windows Media Player for Mac OS X

Michael Niedermayer michaelni
Thu Mar 8 04:36:12 CET 2007


Hi

On Wed, Mar 07, 2007 at 03:57:37PM -0600, Tyler Loch wrote:
[...]

ill look at your results tommorrow and see if i can make some sense
out of them ...


> >* mess with interleaving of packets aka mux a few seconds of audio  
> >before
> >  any video (for a quick hack simply modifying  
> >av_interleave_packet_per_dts()
> >  should do) i can provide a patch if the code is too confusing
> 
> I couldn't see where/how to edit this (utils.c? globally?)

utils.c

changing
            int64_t left=  st2->time_base.num * (int64_t)st ->time_base.den;
            int64_t right= st ->time_base.num * (int64_t)st2->time_base.den;
            if((*next_point)->pkt.dts * left > pkt->dts * right) //FIXME this can overflow

to something like

            int64_t left=  st2->time_base.num * (int64_t)st ->time_base.den;
            int64_t right= st ->time_base.num * (int64_t)st2->time_base.den;
            int64_t leftdts= (*next_point)->pkt.dts;
if(st2->codec.codec_type == CODEC_TYPE_AUDIO)
    leftts +-= some constant;
            if(leftdts * left > pkt->dts * right) //FIXME this can overflow


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

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- 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/20070308/fd0b3fe7/attachment.pgp>



More information about the ffmpeg-devel mailing list