I use this script on my rasp. with a EScam qwl qd100
Because its only send out with rtsp en not with a JPEG url I need to use this to get an images if some-one calls on the door.
But the images are 9 of 10 with lines. like showed on the images below. Someone have an Ideas to fix this?
Code: Select all
#!/bin/sh
IP="192.168.178.30"
#Ping IP-address of camera to see if it's online, otherwise we don't have to grab a snapshot
if ping -c 1 $IP > /dev/null ; then
#Grab snapshot from RTSP-stream
/usr/bin/ffmpeg -rtsp_transport tcp -i 'rtsp://'$IP'/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /home/pi/domoticz/snapshot.jpeg
fi
