seekthermal streaming solution
thermal image streaming solution.

we need below package.
HW : respberrypi4, seekthermal J2 or J3 module.
SW : raspberrypi side
-
seekthermal sdk : https://github.com/younlea/TIC-thermal-imaging-camera
-
v4l2loopback : https://github.com/umlaeute/v4l2loopback
-
ffmpeg : https://ffmpeg.org/
-
gstreamer : https://gstreamer.freedesktop.org/
windows side
- vlc player : https://www.videolan.org/index.ko.html
raspberrypi seeting.
- download seekthermal sdk
$git clone https://github.com/younlea/TIC-thermal-imaging-camera.git
please check the step on the git page. you can install seekthermal sdk and fine sample source code.
- download v4l2loopback package and build (sudo apt-get install linux-headers)
$git clone https://github.com/umlaeute/v4l2loopback.git
$cd v4l2loopbakc
$make
$sudo make install
$sudo depmod -a
$sudo modprobe v4l2loopback video_nr=4
$ls /dev/video4
Now you can test v4l2loopback/example/test « If this app is correctly working, Now you are ready for next step.
- launch stream application
build TIC-thermal-imaging-camera/example/seek-stream
$sudo ./seek-stream




Now we can use streaming node the node(/dev/video4).
let go next step.
- you can choice encoder and streaming solution( ffmpeg, gstreamer, vlc)
case of gstreamer
install gstreamer.
apt-get install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-pulseaudio
you can see streming on raspberrypi (In this case, does not dealy via two capture images)
$gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw, width=320, height=240 ! autovideosink

case of using gstreamer (currently not ok)
Now try streaming to ip (192.168.1.64)
$gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw, width=320, height=240 ! videoconvert ! jpegenc ! rtpjpegpay ! udpsink host=192.168.1.64 port=5000
on my mac
$gst-launch-1.0 udpsrc port=5000 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! autovideosink
mmmh.. gstreamer have one issue.
case of ffmpeg
vlc player using case. : https://younlea.github.io/develop_env/vlc-server-to-vlc-player/
ref: gstremer using example : https://younlea.github.io/develop_env/gstreamer-사용/
v4l2rtspserver : https://github.com/mpromonet/v4l2rtspserver
ffmpeg streaming : https://trac.ffmpeg.org/wiki/StreamingGuide
\