Camera integration: does meteobridge support RSTP. **solved**

This section covers the Meteobridge PRO, PRO2, NANO SD, Raspberry Pi and VM platforms exclusively

Moderator: Mattk

Post Reply
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Camera integration: does meteobridge support RSTP. **solved**

Post 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
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Camera integration: does meteobridge support RSTP

Post by admin »

no, it is an embedded device that cannot handle that amount of data.
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Re: Camera integration: does meteobridge support RSTP

Post 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?
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Re: Camera integration: does meteobridge support RSTP

Post 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.
Meteobridge RPI | GW1000
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Re: Camera integration: does meteobridge support RSTP

Post 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
.
User avatar
galfert
Platinum Boarder
Platinum Boarder
Posts: 326
Joined: Sun Jun 24, 2018 10:31 pm
Location: Orlando, FL

Re: Camera integration: does meteobridge support RSTP

Post 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
Meteobridge RPI | GW1000
36260
Expert Boarder
Expert Boarder
Posts: 91
Joined: Sun Feb 17, 2008 11:17 am
Location: Saint Pierre de Jards - France

Re: Camera integration: does meteobridge support RSTP

Post by 36260 »

Thanks a lot for the documentation, very valuable information.
User avatar
ConligWX
Platinum Boarder
Platinum Boarder
Posts: 329
Joined: Wed Nov 14, 2018 12:48 pm
Location: Conlig, Co. Down, UK
Contact:

Re: Camera integration: does meteobridge support RSTP

Post 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.
Post Reply