Thread: v4l device -- fast capture

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    1

    Post v4l device -- fast capture

    I'm trying to acquire images from my webcam in the fastest way possible. I would like to make a program to simply take one frame from the webcam and dump it to a file. There are similar projects around (vgrabbj is one I've been working with), but they are all very slow, taking up to 0.4 seconds to output an image (even when writing to /tmp).

    I can use this webcam to stream video at ~20 frames per second, so surely there must be a faster way to get frames from the camera than this?

    I don't know very much about video device programming (and I've found it difficult to find relevant documentation online). I've tried looking at the source code from a few different projects but it's so under-commented that I can't understand it at all.

    Any help with this problem, useful documentation (I *think* I am looking for v4l) or pointers would be a HUGE help.

  2. #2
    {Jaxom,Imriel,Liam}'s Dad Kennedy's Avatar
    Join Date
    Aug 2006
    Location
    Alabama
    Posts
    1,065
    One thing that will help is to create a RAMFS. /tmp is not always mounted as RAMFS.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Get capture device image
    By Scarvenger in forum Windows Programming
    Replies: 3
    Last Post: 01-28-2008, 01:15 PM
  2. Device Driver: sysfs confusion
    By filker0 in forum Linux Programming
    Replies: 0
    Last Post: 12-02-2005, 11:36 AM
  3. Modem in Linux need help fast please!
    By xxxrugby in forum Tech Board
    Replies: 0
    Last Post: 03-30-2005, 04:10 PM
  4. Replies: 4
    Last Post: 06-30-2004, 03:11 PM
  5. Device problem
    By John22 in forum C Programming
    Replies: 0
    Last Post: 12-19-2002, 12:02 PM