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

D Richard Felker III dalias at aerifal.cx
Sun Feb 17 04:54:49 CET 2002


On Sat, Feb 16, 2002 at 07:12:06PM -0800, Charles Henrich wrote:
> Okay, so Im working away on getting the capture to work for my bktr based
> cards on the *BSD series of os's.  I've gotten video down, now on to audio..
> When I add functions to actually return audio frames, I get a huge series of:
> 
> ../mencoder -tv on -oac pcm -ovc copy
> 
> DEMUXER: Too many (10 in 8847360 bytes) video packets in the buffer!
> Missed 2 frames!
> (maybe you play a non-interleaved stream/file or the codec failed)
> 
> If I play back the resulting file I get about 1/2 second of audio then normal
> frame movement.  Im not having any luck finding info about how this is
> supposed to fig to together to do any reasonable debugging.  Anyone out there
> who can enlighten me?  Thanks!

it sounds to me like your hd is too slow. do you have any idea how
much write bandwidth it takes to record raw uncompressed video?? just
at 320x240, 30 fps, it takes over 9 megs per second, and at 640x480
it'd be over 36 megs per second!

if your hd is borderline fast enough, then perhaps if mencoder used a
separate writing process, it would be able to work like this.
eventally such a feature may be desirable if mencoder is going to be
used seriously for live recording. however, i *really* think you want
to compress the video. try something like

mencoder -tv on -ovc lavc -lavcopts vqscale=2:vcodec=mjpeg -o file.avi

and see if that works better (you'll need libavcodec and a fairly fast
cpu). alternatively, you could try mp1e -- it can encode mpeg1 video
at 640x240 in realtime on my k6 450! -- and then later use mencoder to
transcode to divx. good luck!

rich




More information about the MPlayer-dev-eng mailing list