Re: v4l2 + mmap()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Nemosoft Unv. wrote:
>  Hi,
>  
> > Maybe it wasn't your point, but it was mine.  With the timestamps the
> > application can easily decide which frames should be dropped to keep
> > audio and video in sync.
>  
>  Oh, in that respect you are right. But that is assuming you grab every
>  frame that comes along;

Yes.

>  but I was talking about what happens if the buffers
>  still get full;

Then your box is to slow for video capture.  Specifying the frame rate
you want capture might help in this case[1].  For bttv this would'nt
make a big difference, but with USB hardware which might have to
post-process video data (uncompress due to the limited bus bandwidth)
this should help a bit as you avoid processing data which will be
dropped by the application anyway ...

>  drop the last or the oldest frame? 

Whichever is less work for the driver, i.e. probably drop the last one.

  Gerd

[1] Hmm, no v4l2 ioctl for this yet.  Add one?

-- 
Gerd Knorr <kraxel@xxxxxxxxxxx>  --  SuSE Labs, Außenstelle Berlin





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux