[MPlayer-dev-eng] correctly interleaving audio/video in capture?

Charles Henrich henrich at sigbus.com
Sun Feb 17 23:19:29 CET 2002


On the subject of Re: Re: [MPlayer-dev-eng] correctly interleaving audio/video
in capture?, Charles Henrich stated:

> > > Yah I realize the bandwidth requirements.  Im more interested in what
> > > does t he DEMUXER error really mean?  Im sure its something Im doing
> > > wrong with the audio capture device..
> > 
> > demuxer buffer error happens when hte player/encoder core tries to read an
> > audio frame/block, but the demuxer fills all buffer space with video while
> > searching/waiting for audio. so, probably your audio grabbing code is
> > broken, or the audio-video delay at input is too big and the default 8mb
> > limit is reached too early. try to increase buffering linits at demuxer.h
> 
> This definatly points to demuxer packing working wrong.  My code *always*
> gives one video frame, then one audio frame.
> 
> What is supposed to occur between:
> 
>         vdp=new_demux_packet(vlen); ds_add_packet(demux->video,vdp);
> 
> What dp fields do I need to set for the interleaving to work correctly? 
> 
> If I playback the created .avi file on windows, it first plays the audio,
> then plays the video.  So something wacky is happening :)

Another question, is there anyway to input into the demuxer stream a "repeat"
frame flag instead of having to physically duplicate the frame in memory?

-Crh

       Charles Henrich         Eon Entertainment         henrich at msu.edu

                       http://www.sigbus.com:81/~henrich



More information about the MPlayer-dev-eng mailing list