By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,256 Members | 1,663 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,256 IT Pros & Developers. It's quick & easy.

ioctl() help needed for video4linux

P: n/a
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
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.