Is there a way to display rtsp in openhab

@cjsaba I’ve got the script running, except one issue.
I cannot make it run every 5 seconds for example. So I’ve updated a script.

#!/bin/bash
#ffmpeg script

i=0

while [ $i -lt 12 ]; do
#Kill all hung processes
kill -9 $(ps aux | grep [f]fmpeg | awk '{print $2}')
#Grab still image from camera 2
yes | ffmpeg -i rtsp://XXXXXXXXXX/ch0.h264 -vframes 1 -s 800x450 -f image2 /var/www/html/cam2.jpg

sleep 5
i=$(( i + 1 ))

done