Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > ioctl() help needed for video4linux

Reply
Thread Tools

ioctl() help needed for video4linux

 
 
Kyler Laird
Guest
Posts: n/a
 
      12-24-2004
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Help Help Pentax S5i Help needed (Please) The Martian Digital Photography 14 06-20-2008 07:56 AM
Video4Linux for PyCon@home Carl K Python 1 02-17-2008 03:16 AM
Help needed on this 857W config. Repost to be clearer what the problemsare and the help needed sparticle Cisco 3 08-30-2007 07:47 PM
Microsoft small business server 2003 - help needed to understand what is needed to use it Dima Computer Support 5 10-20-2004 08:27 PM
Video4Linux and Ruby Edgardo E. Hames Ruby 1 04-14-2004 10:47 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57