Hi,
after finally migrating from Openhab 2.5 to 4.1.2 to get the âsendTelegramAnimationâ functionality I was always looking forward to, I might have either a configuration, or an understanding issue in regards to the IP Camera Binding, installed via the UI.
My Dahua is configured:
Thing ipcamera:dahua:einfahrt "Camera Einfahrt"
[
ipAddress="192.168.0.108",
username="**********",
password="**********",
onvifPort=80,
serverPort=54324,
ffmpegLocation="/usr/bin/ffmpeg",
ffmpegOutput="/etc/openhab/html/cameras/camera-einfahrt/",
ffmpegInput="rtsp://192.168.0.108:554/cam/realmonitor?channel=1&subtype=2",
// snapshotUrl="http://192.168.0.108:80/cgi-bin/snapshot.cgi?1", //big picture
snapshotUrl="ffmpeg", //subtpe 2 small picture, 1 big picture
pollTime=1000,
gifPreroll=0,
gifPostroll=3,
updateImageWhen="0"
and the appropriate .items and .rules to have it utilized.
This will generate a GIF in the requested duration using
getActions("ipcamera", "ipcamera:dahua:einfahrt").recordGIF("ipcamera",5)
and I can see
Item 'Einfahrt_recordingGif' changed from 0 to 5
Item 'Einfahrt_recordingGif' changed from 5 to 0
in the log events.log
However, if I want to use the âgifPrerollâ functionality (for example gifPreroll=3, ), I still get the
Item 'Einfahrt_recordingGif' changed from 0 to 5
but the item will never change to â0â
If I use the camera-provided snapshot URL instead of the âffmpegâ configuration (the one commented out in the .things shown above), gifPreroll is working as expected, setting ârecordingGifâ to 5 and then to 0 again, and providing images of the pastâŚ
But this will, in parallel to creating snapshot*.jpg files on my Openhab system, unfortunately also spam my NAS with snapshot images (one every 3-4 seconds) since the Dahua uses the âmotion detectionâ setting also for manually triggered snapshots (and I need the motion-detection snapshots for security purposes).
So Iâm wondering:
Is there something wrong with âffmpegâ snapshots and gifPreroll not working when set?
Or some crucial parameter missing to make it work?
Or is this exactly as it should be, and gifPreroll will only work with the snapshot URL of the camera (with the downside of the camera generating snapshots also on the configured storage device).
Would be great if some could shed some light on the matter.
Thx, David