Chris Barnhart wrote: > > I am also trying to do double buffering with mmap, v4l and bttv at 30 fps. > > I'm queueing two frames with VIDIOCSYNC ioctl and am able to get the code > to grab and display at 30 fps when I queue and sync correctly. However - > although the loop rate is 30 loops per second, I am seeing the same image > twice in a row. I've tried display the data at locations bigbuff, and > bigbuff + image_size. The later case is always an empty (black) image. > > How do you specify where the driver should place the data? > > Thank you in advance, > Chris Barnhart > > ------- > Gleicon S. Moraes wrote: > > >Hi ! > >I've edited and uploaded that example you sent to us Justin. Added some > >comments . > >URL: > >http://planeta.terra.com.br/informatica/gleicon/video4linux/videojustin.c > > > >regards > > > >-- > >Gleicon S. Moraes In the example you quoted, the image is at: bigbuf + vm.offsets[frame]; -justin