cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
927
Views
0
Helpful
4
Replies

Any http/telnet API to activate camera to start/stop recording?

Zi Wei Fan
Level 1
Level 1

Hi all,

The function is involved in a IoE(Internet of Everything) project for customer.

A. The action of 'start to record': will be triggered by event, such as when a sensor has detected some smoke in one room. The platform will activate camera by sending telnet/https command.

B. The action of 'Stop to record and Save': will be used based on duration: After recording for 5 mins, the camera will stop to record and save video into local disk automatically.

 

Of course, if VSOM is needed, that will be OK! The question will be: How to start/stop camera recording by VSOM API(http/telnet.)?

Thanks!

 

Ziwei

1 Accepted Solution

Accepted Solutions

Scott Olsen
Level 6
Level 6

Sounds like you are looking to use 'Soft Trigger' Advanced Events (Look these up in the VSOM User Guide for more detail).

You can have VSOM create unique URLs that, when posted to the system, can trigger certain actions for one or more cameras.

Cheers!

Scott Olsen Solutions Specialist Bulletproof Solutions Inc. Web: www.bulletproofsi.com

View solution in original post

4 Replies 4

yazan.jaber
Level 1
Level 1

Hi,

Did you solve your problem?

Hello,

I solved this by VLC player to access rtsp stream. There are rtsp command to start recording and save it.

1. start to record in archive mode:

cd "C:\Smoke\File"

for /f %%x in ('wmic path win32_localtime get /format:list ^| findstr "="') do set %%x

set date=%Year%-%Month%-%Day%-%Hour%-%Minute%

echo %date%
CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" -vvv "rtsp://10.74.93.104/StreamingSetting?version=1.0&action=getRTSPStream&sessionID=80246289&ChannelID=1&ChannelName=Channel1" --sout=#transcode{}:standard{access="file",mux="mp4",dst="..\\File\\Recording\\%date%.mp4"} --run-time=0 --stop-time=60

2. kill vlc.exe and the video could be saved:


timeout /t 5
taskkill /im vlc.exe

Thanks,

Ziwei

That's some pretty fancy CLI use of VLC you have there!  How have you been handling the sessionID changes whenever the authentication to the camera needs to be re-established?

Also, while it looks like you have something that works for you already, I have to recommend you take a look at the VSM API and SDK if you want some real power with your integration projects.

Cheers!

Scott Olsen Solutions Specialist Bulletproof Solutions Inc. Web: www.bulletproofsi.com

Scott Olsen
Level 6
Level 6

Sounds like you are looking to use 'Soft Trigger' Advanced Events (Look these up in the VSOM User Guide for more detail).

You can have VSOM create unique URLs that, when posted to the system, can trigger certain actions for one or more cameras.

Cheers!

Scott Olsen Solutions Specialist Bulletproof Solutions Inc. Web: www.bulletproofsi.com