Hi, Yes im doing streaming (well attempting to!!!), the streamon / dqbuf - are those v4l 2 commands? Cos im using v4l one atm... Thanks again. -----Original Message----- From: video4linux-list-admin@xxxxxxxxxx [mailto:video4linux-list-admin@xxxxxxxxxx] On Behalf Of Andrey P. Vasilyev Sent: 02 August 2003 13:10 To: video4linux-list@xxxxxxxxxx Subject: Re: Device or resource busy Hello! On Sat, Aug 02, 2003 at 01:25:37PM +0100, Matt Brocklehurst wrote: > Hi, > Im wanting to perform continuous capture in a loop, but after ive > done my first batch of frame captures (capturing, waiting for sync x > 4), and go back to the start of the loop again where i send the > capture command i just get device or resource busy. Do i need to send > another ioctl signal to the v4l device to say 'get ready im coming > round again' (its a bttv card). Does you performing streaming capture? In that case, right sequence is like this: - Initiate capture (perform any initializations, allocate buffers and then ioctl (STREAMON)) - ioctl (QBUF) multiple times for all of allocated buffers - Continuously: - ioctl (DQBUF) to dequeue the buffer filled with frame - Perform with this buffer any proceessing you want - ioctl (QBUF) with this frame to allow the driver to fill it with a new frame -- Andrey Vasilyev -- video4linux-list mailing list Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/video4linux-list --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.505 / Virus Database: 302 - Release Date: 30/07/2003