sipsorcery-org / SIPSorceryMedia.FFmpeg

GNU Lesser General Public License v2.1
31 stars 24 forks source link

In Ubuntu, I am getting Error: octl(VIDIOC_G_INPUT): Inappropriate ioctl for device #67

Open mail2mhossain opened 8 months ago

mail2mhossain commented 8 months ago

[video4linux2,v4l2 @ 0x558aa9181500] fd:207 capabilities:84a00001 [video4linux2,v4l2 @ 0x558aa9181500] fd:207 capabilities:84a00001 [video4linux2,v4l2 @ 0x558aa88de740] fd:212 capabilities:84a00001

[video4linux2,v4l2 @ 0x558aa88de740] ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device

Would you please help me to resolve it.

BTW: My code is working in Windows 11 and MacOS.

ha-ves commented 7 hours ago

I assume you're accessing a Webcam because of the v4l2.

Did you use the correct path for the camera? /dev/video0? /dev/video1?

Did the code work with other cameras? if so, then the webcam might need specific driver and its not a UVC.