![]() #Use for low-quality -rtsp_transport tcp -i 'rtsp://'$IP'/user=admin&password=&channel=1&stream=1.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /volume1/Downloads/Snapshots/deurbel-$today.jpeg #Use for -rtsp_transport tcp -i 'rtsp://'$IP'/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /volume1/Downloads/Snapshots/deurbel-$today.jpeg ![]() ![]() If ping -c 1 $IP > /dev/null then #Grab snapshot from RTSP-stream #Let the old doorbell ring: this is the old KaKu doorbell with the 2 receivers Rtsp://192.168.178.10/user=admin&password=&channel=1&stream=0.sdp: Input/output errorĪnd this is my -rtsp_transport tcp -i 'rtsp://192.168.178.10/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /volume1/homes/admin/doorbellcam/Public/doorbell_snapshots/$today.jpeg T2 = os.time/include/ffmpeg' -arch=armada -target-os=linux -cross-prefix=/usr/local/arm-marvell-linux-gnueabi/bin/arm-marvell-linux-gnueabi-enable-cross-compile -enable-optimizations -enable-pic -enable-shared -disable-static -enable-version3 -enable-encoders -enable-pthreads -enable-libmp3lame -disable-swscale-alpha -disable-postproc -disable-ffserver -disable-ffplay -disable-bzlib -disable-altivec -disable-decoder=amrnb -disable-indev=alsa -disable-outdev=alsa -disable-encoder=zmbv -disable-encoder=dca -disable-encoder=ac3 -disable-encoder=ac3_fixed -disable-encoder=eac3 -disable-decoder=dca -disable-decoder=eac3 -disable-decoder=truehd -disable-doc TimeBetweenPresses = 30 -time that needs to be between presses (in seconds), before os.execute line is ran again Script needs a Domoticz uservariable called 'DoorbellPreviousPress' of type 'String' Script_device_doorbell_a (i have it in Select all - script_device_deurbel_a The snapshot.sh is triggered by a Lua script: FFMPEG RTSP CAPTURE IMAGE INSTALLSo if you don't have a suitable 'ffmpeg' on your Synology NAS, you can install the 'Media Server' package without even loading your CPU, because the package doesn't have to be running Sh -u PUSHOVER_USERKEY -a PUSHOVER_APPKEY -q "Doorbell" -m "Doorbell has just been pressed, but image is unavailable because camera is ofline"Īccording to 'kraades' on Tweakers, the package won't autostart at boot if you stop it manually. Sh -u PUSHOVER_USERKEY -a PUSHOVER_APPKEY -q "Doorbell" -m "$today.jpeg"įind /volume1/homes/admin/doorbellcam/Public/doorbell_snapshots/ -name '*.jpeg' -mtime +7 -delete #Grab snapshot from -rtsp_transport tcp -i 'rtsp://'$IP'/user=admin&password=&channel=1&stream=0.sdp' -f image2 -vframes 1 -pix_fmt yuvj420p /volume1/homes/admin/doorbellcam/Public/doorbell_snapshots/$today.jpeg #Ping IP-address of camera to see if it's online, otherwise we don't have to grab a snapshot Today=`/bin/date '+%d-%m-%Y_%H-%M-%S'` #Used to generate filename Maybe as a workaround i can create a cron that deletes the folder every 7 days and creates it again directly. Only thing is that i can't delete files older than 7 days on Dropbox, because that project works via curl and not like a real Dropbox client (where you can browse folders etc). ![]() When running the configuration wizard you need to give the script permissions to your whole Dropbox, otherwise it can't access the 'Public' folder. The 'dropbox_uploader.sh' is this project: FFMPEG RTSP CAPTURE IMAGE OFFLINE#Delete previous taken snapshots older than 7 daysįind /home/pi/deurbel/snapshots -name '*.jpeg' -mtime +7 -deleteīash /home/pi/deurbel/pushover.sh -u YOUR_USERKEY_HERE -a YOUR_API_KEY_HERE -q "Deurbel galerij" -m "Net aangebeld, plaatje niet beschikbaar omdat cam offline is" #Send pushnotification with URL to snapshotīash /home/pi/deurbel/pushover.sh -u YOUR_USERKEY_HERE -a YOUR_API_KEY_HERE -q "Deurbel galerij" -m "$today.jpeg"īash /home/pi/deurbel/dropbox_uploader.sh upload /home/pi/deurbel/snapshots/$today.jpeg /Public/deurbel_snapshots/$today.jpeg If ping -c 1 $IP > /dev/null then # if IPCAM is online then:Īvconv -rtsp_transport tcp -i 'rtsp://192.168.4.20/user=admin&password=&channel=1&stream=0.sdp?real_stream-rtp-caching=100' -f image2 -vframes 1 -pix_fmt yuvj420p /home/pi/deurbel/snapshots/$today.jpeg ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |