Fortinet black logo

Administration Guide

Configuring Video

Copy Link
Copy Doc ID f41cea3c-ee48-11eb-97f7-00505692583a:66266

Configuring Video

This section contains options to enable video and image sharing in FortiRecorder.

Establishing video sharing

FortiRecorder supports video sharing on the web sites. Using FortiRecorder, administrators can configure FortiRecorder and a third-party web site to allow users to access a live feed of an established camera without directly accessing FortiRecorder.

To allow users to access video sharing, you must first insert the video in your web page.

For example, if your FortiRecorder runs v2.3 and older firmware, you can insert the following code in your web page:

<iframe frameborder="10" scrolling="no" width="640" height="480"
src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoService&password=1234">

<p>iframes are not supported by your browser.</p> </iframe><br/>

Starting from v2.4, if your web browser supports HTML5, you can use the following code:

<iframe frameborder="10" scrolling="no" width="640" height="480" src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoService&password=1234">

<p>iframes are not supported by your browser.</p> </iframe><br/>

<script>

setInterval(function() {

var req = new XMLHttpRequest();

req.open('GET',

"https://172.20.110.94/api?request=FRC_LiveView&id=20A-b5fc&username=videoService&password=1234&heartbeat=1", true);

req.send();

}, 10000);

</script>

The IP address at the beginning of the code is the IP of the FortiRecorder. The attribute ID is the name of the camera as defined on the FRC. The attribute dimensions should match the size of the iframe. The username and password values should match the configuration you specify below.

Once you have entered the code into your web page, configure the FortiRecorder unit to allow your web page to access the camera group via HTTPS.

If you want to share the video stream via RTSP, the user can use a RTSP client to access the video at:

rtsp://<username>:<password>@<fortirecorder_ip>/camera=<id>

For example:

rtsp://videoService:1234@172.20.110.94/camera=FD20

To configure video sharing on FortiRecorder

  1. Go to Service > Video > Stream.
  2. Enable Status.
  3. Enter your username and password.
  4. Add the camera group you wish the user to view by selecting the group from the Camera Group List and then selecting the right arrow button.
  5. Select the HTTPS or RTSP protocol.
  6. Select OK.

Retrieving video clips

You can enable FortiRecorder to allow an external service to make REST API queries to retrieve video clips from selected cameras. If you require more information concerning REST API, consult the REST API Reference document.

To configure video clips

  1. Go to Service > Video > Clip.
  2. Enable the status button.
  3. Enter a password.
  4. Select which cameras video clips can be retrieved from by selecting the camera group's name and then the right arrow.
  5. Select Apply.

Establishing image sharing

You can configure your FortiRecorder unit to upload images from a camera group. Using the image service your cameras will capture a snapshot image at specified intervals. and upload the image to a FTP site.

Similar to the shared video, you will need to upload the image to your web site. Once you have finished that, configure image sharing in FortiRecorder.

To configure image sharing on FortiRecorder

  1. Go to Service > Video > Image.
  2. Enable Status to enable FTP uploads.
  3. Enter the number of seconds in the Interval section that will dictate how often the cameras capture a picture.
  4. Enter the necessary FTP information.
  5. Add as many cameras you require by selecting New in the Select Camera section.
  6. Enable or disable image processing. Enabling image processing uses processed images from FortiCentral connected to FortiRecorder. The FortiRecorder retrieves these settings the connected recorder and sends privacy processed snapshots at the chosen interval; however this requires that the cameras are run in a pane with the privacy analytics active.
  7. Select Apply.

Streaming recorded video clips to YouTube

To stream live video to YouTube, you must create a YouTube account. You can only stream one camera per YouTube account.

To stream live video to YouTube

  1. Go to Service > Video > YouTube.
  2. Select New to create a YouTube integration task.
  3. Enter a name for this task.
  4. Enter a description for this task.
  5. Select a camera you want to stream.
  6. For Encoder Setup, enter the server URL and stream name/key. This is the information you get when you set up the YouTube account.
  7. Select Create.

Configuring Video

This section contains options to enable video and image sharing in FortiRecorder.

Establishing video sharing

FortiRecorder supports video sharing on the web sites. Using FortiRecorder, administrators can configure FortiRecorder and a third-party web site to allow users to access a live feed of an established camera without directly accessing FortiRecorder.

To allow users to access video sharing, you must first insert the video in your web page.

For example, if your FortiRecorder runs v2.3 and older firmware, you can insert the following code in your web page:

<iframe frameborder="10" scrolling="no" width="640" height="480"
src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoService&password=1234">

<p>iframes are not supported by your browser.</p> </iframe><br/>

Starting from v2.4, if your web browser supports HTML5, you can use the following code:

<iframe frameborder="10" scrolling="no" width="640" height="480" src="https://172.20.110.94/api?request=FRC_LiveView&id=FD20&width=
640&height=480&view_mode=3&hostName=172.20.110.94&username=videoService&password=1234">

<p>iframes are not supported by your browser.</p> </iframe><br/>

<script>

setInterval(function() {

var req = new XMLHttpRequest();

req.open('GET',

"https://172.20.110.94/api?request=FRC_LiveView&id=20A-b5fc&username=videoService&password=1234&heartbeat=1", true);

req.send();

}, 10000);

</script>

The IP address at the beginning of the code is the IP of the FortiRecorder. The attribute ID is the name of the camera as defined on the FRC. The attribute dimensions should match the size of the iframe. The username and password values should match the configuration you specify below.

Once you have entered the code into your web page, configure the FortiRecorder unit to allow your web page to access the camera group via HTTPS.

If you want to share the video stream via RTSP, the user can use a RTSP client to access the video at:

rtsp://<username>:<password>@<fortirecorder_ip>/camera=<id>

For example:

rtsp://videoService:1234@172.20.110.94/camera=FD20

To configure video sharing on FortiRecorder

  1. Go to Service > Video > Stream.
  2. Enable Status.
  3. Enter your username and password.
  4. Add the camera group you wish the user to view by selecting the group from the Camera Group List and then selecting the right arrow button.
  5. Select the HTTPS or RTSP protocol.
  6. Select OK.

Retrieving video clips

You can enable FortiRecorder to allow an external service to make REST API queries to retrieve video clips from selected cameras. If you require more information concerning REST API, consult the REST API Reference document.

To configure video clips

  1. Go to Service > Video > Clip.
  2. Enable the status button.
  3. Enter a password.
  4. Select which cameras video clips can be retrieved from by selecting the camera group's name and then the right arrow.
  5. Select Apply.

Establishing image sharing

You can configure your FortiRecorder unit to upload images from a camera group. Using the image service your cameras will capture a snapshot image at specified intervals. and upload the image to a FTP site.

Similar to the shared video, you will need to upload the image to your web site. Once you have finished that, configure image sharing in FortiRecorder.

To configure image sharing on FortiRecorder

  1. Go to Service > Video > Image.
  2. Enable Status to enable FTP uploads.
  3. Enter the number of seconds in the Interval section that will dictate how often the cameras capture a picture.
  4. Enter the necessary FTP information.
  5. Add as many cameras you require by selecting New in the Select Camera section.
  6. Enable or disable image processing. Enabling image processing uses processed images from FortiCentral connected to FortiRecorder. The FortiRecorder retrieves these settings the connected recorder and sends privacy processed snapshots at the chosen interval; however this requires that the cameras are run in a pane with the privacy analytics active.
  7. Select Apply.

Streaming recorded video clips to YouTube

To stream live video to YouTube, you must create a YouTube account. You can only stream one camera per YouTube account.

To stream live video to YouTube

  1. Go to Service > Video > YouTube.
  2. Select New to create a YouTube integration task.
  3. Enter a name for this task.
  4. Enter a description for this task.
  5. Select a camera you want to stream.
  6. For Encoder Setup, enter the server URL and stream name/key. This is the information you get when you set up the YouTube account.
  7. Select Create.