fnoop / flirone-v4l2

v4l2 based solution to running Flir One from Linux
GNU General Public License v2.0
89 stars 26 forks source link

src/flirone.c:153: startv4l2: Assertion `fdwr1 >= 0' failed. #15

Open blacksocket opened 1 year ago

blacksocket commented 1 year ago

Hi All,

I compiled the sources and getting the bellow error when launching the app. Can someone help with this issue ? I am using FLIR One Pro: Android (USB-C).

host:~/projects/flirone-v4l2$ ./flirone --pro palettes/Iron2.raw Successfully find the Flir One G2/G3/Pro device Successfully set usb configuration 3 Successfully claimed interface 0, 1, 2 using output device: /dev/video1 flirone: src/flirone.c:153: startv4l2: Assertion `fdwr1 >= 0' failed. Aborted (core dumped)

blacksocket commented 1 year ago

I forgot to load kernel modules. Now it works but I can see strange IR image below. What could be wrong ? sudo modprobe v4l2loopback video_nr=1,2,3

host:~/projects/flirone-v4l2_next$ ./flirone --pro palettes/Iron2.raw Successfully find the Flir One G2/G3/Pro device Successfully set usb configuration 3 Successfully claimed interface 0, 1, 2 using output device: /dev/video1 vid_format->type =2 vid_format->fmt.pix.width =640 vid_format->fmt.pix.height =480 vid_format->fmt.pix.pixelformat =1196444237 vid_format->fmt.pix.sizeimage =1228800 vid_format->fmt.pix.field =1 vid_format->fmt.pix.bytesperline=0 vid_format->fmt.pix.colorspace =8 using output device: /dev/video2 vid_format->type =2 vid_format->fmt.pix.width =160 vid_format->fmt.pix.height =128 vid_format->fmt.pix.pixelformat =859981650 vid_format->fmt.pix.sizeimage =61440 vid_format->fmt.pix.field =1 vid_format->fmt.pix.bytesperline=480 vid_format->fmt.pix.colorspace =8 stop interface 2 FRAME stop interface 1 FILEIO

start interface 1 FILEIO

:xx Mon Nov 7 17:30:28 2022

Ask for video stream, start EP 0x85: Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! Reset buffer because of bad Magic Byte! drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop FFC frame drop first frame after FFC

blacksocket commented 1 year ago

host:~/projects/flirone-v4l2_next$ guvceview V4L2_CORE: Unable to find parent usb device.V4L2_CORE: Unable to find parent usb device.libv4l2: error getting pixformat: Invalid argument V4L2_CORE: ERROR opening V4L2 interface for /dev/video3 GUVCVIEW: version 2.0.6 V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: (UVCIOC_CTRL_MAP) Error: Inappropriate ioctl for device V4L2_CORE: failed to subscribe events for control 0x00980001: Inappropriate ioctl for device V4L2_CORE: failed to subscribe events for control 0x0098f900: Inappropriate ioctl for device V4L2_CORE: failed to subscribe events for control 0x0098f901: Inappropriate ioctl for device V4L2_CORE: failed to subscribe events for control 0x0098f902: Inappropriate ioctl for device V4L2_CORE: failed to subscribe events for control 0x0098f903: Inappropriate ioctl for device ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2642:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card Cannot connect to server socket err = No such file or directory Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock V4L2_CORE: V4L2_CAP_TIMEPERFRAME not supported control[0]:(unknown - 0x6) 0x980001 'User Controls' V4L2_CORE: V4L2_CAP_TIMEPERFRAME not supported V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable

image