ioctl() help needed for video4linux

Discussion in 'Python' started by Kyler Laird, Dec 24, 2004.

  1. Kyler Laird

    Kyler Laird Guest

    I want to know which input one of my V4L devices is using. This is
    done using the VIDIOC_G_INPUT ioctl. I'm trying to figure out how
    to do it in Python.

    I found the pyv4l.
    http://pyv4l.sourceforge.net/
    It hasn't been updated in awhile. It doesn't know about
    VIDIOC_G_INPUT. I tried creating it with this.
    foo = VIDIOCGINPUT = video4linux._IOR('v', 38, 'i')
    I was even able to get ioctl() to go with this.
    i = struct.pack("i",0)
    bar = fcntl.ioctl(fd, foo, i)
    I don't get anything out of it though.

    Any clues?

    Thank you.

    --kyler
    Kyler Laird, Dec 24, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roger
    Replies:
    1
    Views:
    3,707
    Christophe Vanfleteren
    Oct 22, 2003
  2. Javier
    Replies:
    1
    Views:
    873
    Thomas Heller
    Oct 30, 2003
  3. Peter Luciak

    ioctl(2) ?

    Peter Luciak, Apr 24, 2004, in forum: Python
    Replies:
    1
    Views:
    564
    Peter Hansen
    Apr 24, 2004
  4. Using ioctl

    , Feb 9, 2006, in forum: Python
    Replies:
    1
    Views:
    1,628
    Scott David Daniels
    Feb 9, 2006
  5. Edgardo E. Hames

    Video4Linux and Ruby

    Edgardo E. Hames, Apr 14, 2004, in forum: Ruby
    Replies:
    1
    Views:
    102
    Tobias Nurmiranta
    Apr 14, 2004
Loading...

Share This Page