Page 1 of 1
Camera integration: does meteobridge support RSTP. **solved**
Posted: Thu May 21, 2020 12:23 pm
by 36260
Hello,
I wonder whether RSTP protocol is supported. It seems to me it is not, is there a plan do support it?
Thank you
Re: Camera integration: does meteobridge support RSTP
Posted: Fri May 29, 2020 5:37 pm
by admin
no, it is an embedded device that cannot handle that amount of data.
Re: Camera integration: does meteobridge support RSTP
Posted: Sat May 30, 2020 7:37 am
by 36260
My Cam support RSTP substream that be set with various bit rates and image size. In those conditions could it support the amount of data which is reduced?
Re: Camera integration: does meteobridge support RSTP
Posted: Sat May 30, 2020 3:45 pm
by galfert
What brand and model camera do you have. Most of them support still shot. Seems to me like you are wanting to use RTSP because you don't know how to get a still shot.
Re: Camera integration: does meteobridge support RSTP
Posted: Mon Jun 08, 2020 8:41 am
by 36260
After a lot of search, I stumbled on iSpy and thanks to that I discovered that the correct instruction for a Dahua DH-IPC-HDBW2431RP-ZS cam is
Code: Select all
http://user:pass@ip/cgi-bin/snapshot.cgi?1
.
Re: Camera integration: does meteobridge support RSTP
Posted: Mon Jun 08, 2020 3:06 pm
by galfert
Well I could have saved you the time and trouble if you had answered my question of what camera you have, as I was planning of providing you with that information. But even better than iSpy is the excellent documentation from Amcrest which is a lot nicer and more complete and works for all Dahua clones. For other brands there exist their documentation. ISpy is just convoluted and disorganized and duplicates information.
Amcrest documentation:
https://s3.amazonaws.com/amcrest-files/ ... 3.2017.pdf
Re: Camera integration: does meteobridge support RSTP
Posted: Tue Jun 09, 2020 6:38 pm
by 36260
Thanks a lot for the documentation, very valuable information.
Re: Camera integration: does meteobridge support RSTP
Posted: Tue Jun 09, 2020 7:23 pm
by ConligWX
I've used wget in the past for grabbing a snapshot like so:
viewtopic.php?p=27037#p27037
or you could use ffmpeg for a rtsp stream.
Code: Select all
#!/bin/sh
#
#set variable yday to be like 20100208
#
#tday=$(date -d today +%Y%m%d%H%M%S);
#stamp=$(date '+DATE: %d/%m/%y%nTIME:%H:%M:%S');
tday=$(date +%Y%m%d%H%M%S);
#stamp=$(date +%Y%m%d);
# get weather image
ffmpeg -rtsp_transport tcp -i rtsp://ip.cam.with.port:xxx/xxxxxxxx -vf scale=1280:720 -frames 1 /share/htdocs/sky1.jpg -y;
# next 2 lines add weather info
testdata="$(/bin/cat /share/htdocs/camdata.txt)";
testdata1=`date +"%A %d-%b-%Y %R %Z"`;
# use Convert to add WX values and date etc to the image
/bin/convert -fill RoyalBlue4 -draw "fill-opacity 0.4 rectangle 0 0 1280 25" \
-fill red -draw "fill-opacity 0.6 rectangle 0 26 1280 27" \
-fill RoyalBlue4 -draw "fill-opacity 0.7 rectangle 0 695 1280 720" \
-fill red -draw "fill-opacity 0.6 rectangle 0 693 1280 694" \
-fill white -pointsize 18 -font /share/db_backup/script/arialbold.ttf -draw "text 10,20 'Conlig Weather Station: $testdata1 • www.conligwx.org'" \
-fill yellow -pointsize 18 -draw "text 10,715 '$testdata'" /share/htdocs/sky1.jpg /share/htdocs/skywebcam.jpg;
# convert image.jpg to 150kb for WUnderground
/share/bin/convert /share/htdocs/skywebcam.jpg -define jpeg:extent=150kb /share/htdocs/image.jpg;
then ftp the image.jpg to WU.
the camdata.txt is processed by mb to add the weather values (templates) you want as a layer on the image.