5,710
edits
Changes
→Technology
==time lapse from FLIR==
<syntaxhighlight lang="bash">ffmpeg -framerate 5 -f image2 -i %04d.jpg -c:v libx264 -r 30 -pix_fmt yuv420p time-lapse.mp4</syntaxhighlight>
==Video playback service on raspbian jessie==
*Create a service file in
<syntaxhighlight lang="bash">/etc/systemd/system<syntaxhighlight>
*flir.service:
<syntaxhighlight lang="bash">
[Unit]
Description=Plays FLIR footage on loop
After=syslog.target network.target
[Service]
Type=forking
ExecStart=/usr/bin/screen -dmS video omxplayer -b --loop --win 0,0,1280,1024 /home/pi/housemachine/data/flir/bed4.mp4
[Install]
WantedBy=multi-user.target
</syntaxhighlight>
*enable:
<syntaxhighlight lang="bash">sudo systemctl enable flir.service</syntaxhighlight>
*start:
<syntaxhighlight lang="bash">sudo systemctl start flir.service</syntaxhighlight>