469,270 Members | 1,763 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

ioctl() help needed for video4linux

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.
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.

Jul 18 '05 #1
0 1182

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Javier | last post: by
1 post views Thread by Peter Luciak | last post: by
3 posts views Thread by chris | last post: by
2 posts views Thread by Chris Johnson | last post: by
1 post views Thread by chyle.edic | last post: by
1 post views Thread by klappnase | last post: by
6 posts views Thread by Eran.Yasso | last post: by
1 post views Thread by luca | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.