Results 1 to 5 of 5

Thread: wrapper+v4l2

  1. #1

    Default wrapper+v4l2

    Hello guys, how are you??
    is there any wrapper for v4l2???

  2. #2
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: wrapper+v4l2

    If you find one I would love to hear about it. I too have been looking for the best way to access V4L devices on linux but haven't really found a good way that doesn't involve raw V4L programming.

    Either you could use gstreamer, which is at least somewhat higher level, but right now I'm leaning towards using the code of a little webcam capture app called webKam. http://kde-apps.org/content/show.php...?content=76902

    It uses kopete's video capture code, so it should be reasonably well tested, and the code is very simple right now.

  3. #3
    Join Date
    Jan 2006
    Posts
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Lightbulb Re: wrapper+v4l2

    greetings guys,
    I've been using v4l2 for sometime and find it rather not very hard and no need for wrapper (which it will most likely lead to under-performance ?)
    I am attaching example code for using V4L2 for web cameras (this QT3.x but very portable).
    I'll also look for some previous work that deploys V4L2 for tv cards (Philips SAA713x Chipset).
    If you have specific issue post them, maybe I can help.
    cheers
    Attached Files Attached Files

  4. The following user says thank you to firas for this useful post:

    pherthyl (4th April 2008)

  5. #4
    Join Date
    Aug 2006
    Posts
    250
    Thanks
    19
    Thanked 49 Times in 36 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: wrapper+v4l2

    Awesome. I will take a look at this.

    On second look, your code seems to be specific to PWC webcams. At first glance it seems that won't work for any other webcams. It shouldn't be necessary to access and pwc headers directly.

    On third look, I dunno why you included libpwc.h/cpp, but they seem to not relate to the rest of the code.. I'll have a look at the rest.

    Hmm.. Well not sure if its worth the effort. Got that code stripped down to the basics, but so far I fail at compiling the ccvt lib (after finally tracking it down). Have you tested your code with other cameras or is it Logitech specific?
    Last edited by pherthyl; 5th April 2008 at 00:21.

  6. #5
    Join Date
    Jan 2006
    Posts
    19
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11

    Lightbulb Re: wrapper+v4l2

    Quote Originally Posted by pherthyl
    On second look, your code seems to be specific to PWC webcams. At first glance it seems that won't work for any other webcams. It shouldn't be necessary to access and pwc headers directly.
    On third look, I dunno why you included libpwc.h/cpp, but they seem to not relate to the rest of the code.. I'll have a look at the rest.
    Well the PWC headers are related to the driver, and yes they might be not necessary. I must have added them while trying to figure out things.

    Quote Originally Posted by pherthyl
    Hmm.. Well not sure if its worth the effort. Got that code stripped down to the basics, but so far I fail at compiling the ccvt lib (after finally tracking it down). Have you tested your code with other cameras or is it Logitech specific?
    Yes/No the cameras I tested this code with were logitch, but the code is general I believe .
    I started first exploring the capabilities of V4L2 using a console based simple program (attached). Then from there and with the help of the V4L2 API documentation + experience I figured out the rest. I hope the attached console example be useful.
    cheers
    Attached Files Attached Files

Similar Threads

  1. wrapper in C for QT
    By YuriyRusinov in forum Qt Programming
    Replies: 4
    Last Post: 29th October 2007, 20:06
  2. V4L Qt wrapper
    By scarvenger in forum Qt Programming
    Replies: 1
    Last Post: 6th May 2007, 15:54

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.