Hi All
I am having some issues getting this to work on the lastest RPI raspian distribution. Its a newer kernel which may be an issue but I think the real problem is the steps are scattered all over this thread so its not really clear what needs to be done and which is the latest driver e.g. flir8p1 is newer than flir8l3. 8p1 contains an already compiled executable but I can't clean and remake it, whereas I can with 8l3 but both give the same error which is an issue with v4l.
[ 2494.720659] usb 1-1.4: new high-speed USB device number 7 using dwc_otg
[ 2494.822165] usb 1-1.4: New USB device found, idVendor=09cb, idProduct=1996
[ 2494.822191] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2494.822208] usb 1-1.4: Product: FLIR ONE Camera
[ 2494.822225] usb 1-1.4: Manufacturer: FLIR Systems
[ 2494.822241] usb 1-1.4: SerialNumber: FLIRONEF03G4F004AFF
sudo ./flir8p1 Rainbow.raw
Successfully find the Flir One G2 device
Successfully set usb configuration 3
Successfully claimed interface 0,1,2
using output device: /dev/video2
flir8p1: flir8p1.c:168: startv4l2: Assertion `fdwr1 >= 0' failed.
sudo ./flir8l3
Successfully find the Flir One G2 device
Successfully set usb configuration 3
Successfully claimed interface 0,1,2
using output device: /dev/video1
flir8l3: flir8l3.c:136: startv4l2: Assertion `fdwr0 >= 0' failed.
ls -al /dev/video*
ls: cannot access /dev/video*: No such file or directory
v4l-utils and v4l2loopback are both installed.:
pi@raspberrypi:~/flir8l3 $ dpkg --get-selections |grep v4l
libv4l-0:armhf install
libv4l-dev:armhf install
libv4l2rds0:armhf install
libv4lconvert0:armhf install
v4l-utils install
v4l2loopback-dkms install
So why the assertion error? Note this PI works fine with a webcam. I am missing a driver installation step - hence the request for a procedure.
Mike
Postscript
I was right about there being something missing. The v412loopback driver. Installing this is Raspian is a bit of a trial. It required kernel headers, but no, not the ones that you can install from apt-get which are missing a build directory.
The headers are found from
https://www.niksula.hut.fi/~mhiienka/Rpi/linux-headers-rpi/You need to know your kernel:
$ uname -a
Linux raspberrypi 4.4.21-v7+ #911 SMP Thu Sep 15 14:22:38 BST 2016 armv7l GNU/Linux
Download the appropriate headers and install with:
$ sudo dpkg -i /home/pi/linux-headers-4.4.21-v7+_4.4.21-v7+-2_armhf.deb
Its important to get the right ones, your world might end otherwise. Then you can download and make:
$ git clone
https://github.com/umlaeute/v4l2loopback$ cd v412loopback
$ sudo make [I needed sudo - normally you don't]
$ sudo make install
But I has to insmod rather than modprobe, I am still thinking about that.
e.g. sudo insmod v4l2loopback/v4l2loopback.ko video_nr=0,1,2,3
I an not running a gui so to make it do something useful I piped it to another PC and opened it in vlc (rtp://@:1234) based on the advice further up this thread:
From the directory I compiled the flir package in I ran:
$ sudo ./flir8p1 Rainbow.raw
and in another terminal
This needs avtools
$ sudo apt-get install libav-tools
$ avconv -f video4linux2 -i /dev/video3 -vcodec mpeg2video -r 25 -pix_fmt yuv420p -me_method epzs -b 2600k -bt 256k -f rtp rtp://192.168.1.100:1234