[MPlayer-dev-eng] tv input problems and partial solutions [PATCH]

Alex Beregszaszi alex at naxine.org
Mon Jun 24 18:33:52 CEST 2002


Hi,

> > btw, commited mencoder fix, could you try out it too?
> > 
> Works OK ;)
> 
> There is a path in the attatchment that uses timestamping for synchronizing
> video stream with real time.  The audio stream is assumed to be correctly
> timed.
> 
> The patch finally enables tv_audio!  If you think that it still should be
> disabled then change it.   Audio reading routine was changed so that there
> are only two attempts to read /dev/dsp -- previous solution (infinite loop)
> caused sometimes too extensive system load...  
> 
> In my opinion the tv-input feature is worthless without asynchronic video
> and audio grabbing!!!  In current implementation the mencoder "sleeps" too
> much on waiting for next video frame, and when system for a moment is a bit
> more loaded then automaticaly a few frames are LOST!  That is the reason of
> free CPU and lost frames...  
> 
> It may be done using signals and timeouts + buffering (I couldn't manage to
> do that today)  or  with threads...  Actually the threading is needed only
> for tvi_v4l module so actualy it does not need to be too portable...  If you
> agree on that kind of solution (threading) i can try to do this.  (Actually
> I'm going on vacation tomorrow, so I could start coding it within a month...)
thx, applied

-
alex



More information about the MPlayer-dev-eng mailing list