Fortinet black logo

Administration Guide

Configuring video sharing

Configuring video sharing

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

Sharing video streams

You can share videos from your cameras on web sites. This allows users to the live feed of a camera—without being prompted to log into the FortiRecorder appliance.

For example, if your web browser supports HTML5, you can insert the following code into a 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 />
<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 FortiRecorder. 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://<user_name>:<password_str>@<fortirecorder_ipv4>:<port_int>/camera=<id>

For example:

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

To configure video sharing

  1. Embed the video stream into a web page with HTML code similar to what is shown above, and/or configure video players to connect via RTSP.

  2. On FortiRecorder, go to Service > Video > Stream.
  3. Enable Status.
  4. In Username and Password, enter the login credentials that the web page or video players will use to connect to the share.
  5. In Protocol, enable the network protocols that users will use to connect to the camera: HTTPS and/or RTSP.
  6. In Camera Group List, select the camera groups that you want to share with users, and then click the right arrow button ( >> ).
  7. Click OK.

Downloading video clips via API

You can enable FortiRecorder to allow an external service to make REST API queries to downloading video clips from selected cameras. For details, see the REST API Reference.

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. Click Apply.

Sharing snapshot images

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 an FTP server.

To configure image sharing

  1. Optionally, if your FTP server is also a web server, you can embed an image file name into a web page, similar to Sharing video streams.

    FortiRecorder will be configured to upload snapshot images to this file name. The web page will display the snapshot.

  2. On FortiRecorder, go to Service > Video > Image.
  3. Enable Status to enable FTP uploads.
  4. In Interval, enter the number of seconds between each snapshot.
  5. Enter the FTP settings.
  6. In the Select Camera section, click New and select the cameras whose snapshots you want to share.
  7. Enable or disable image processing.

    The FortiRecorder retrieves these settings and sends privacy processed snapshots at the chosen interval.

    Tooltip

    Camera live video feeds must remain open in a view pane on FortiCentral where privacy analytics are active. Image processing is done by FortiCentral installations that are connected to FortiRecorder.

  8. Click 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. Click New.
  3. Enter a name for this task.
  4. Enter a description for this task.
  5. Select which camera you want to stream.
  6. In Encoder Setup, enter the server URL and stream name or key. This is the information you get when you set up the YouTube account.
  7. Click Create.

Configuring video sharing

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

Sharing video streams

You can share videos from your cameras on web sites. This allows users to the live feed of a camera—without being prompted to log into the FortiRecorder appliance.

For example, if your web browser supports HTML5, you can insert the following code into a 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 />
<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 FortiRecorder. 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://<user_name>:<password_str>@<fortirecorder_ipv4>:<port_int>/camera=<id>

For example:

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

To configure video sharing

  1. Embed the video stream into a web page with HTML code similar to what is shown above, and/or configure video players to connect via RTSP.

  2. On FortiRecorder, go to Service > Video > Stream.
  3. Enable Status.
  4. In Username and Password, enter the login credentials that the web page or video players will use to connect to the share.
  5. In Protocol, enable the network protocols that users will use to connect to the camera: HTTPS and/or RTSP.
  6. In Camera Group List, select the camera groups that you want to share with users, and then click the right arrow button ( >> ).
  7. Click OK.

Downloading video clips via API

You can enable FortiRecorder to allow an external service to make REST API queries to downloading video clips from selected cameras. For details, see the REST API Reference.

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. Click Apply.

Sharing snapshot images

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 an FTP server.

To configure image sharing

  1. Optionally, if your FTP server is also a web server, you can embed an image file name into a web page, similar to Sharing video streams.

    FortiRecorder will be configured to upload snapshot images to this file name. The web page will display the snapshot.

  2. On FortiRecorder, go to Service > Video > Image.
  3. Enable Status to enable FTP uploads.
  4. In Interval, enter the number of seconds between each snapshot.
  5. Enter the FTP settings.
  6. In the Select Camera section, click New and select the cameras whose snapshots you want to share.
  7. Enable or disable image processing.

    The FortiRecorder retrieves these settings and sends privacy processed snapshots at the chosen interval.

    Tooltip

    Camera live video feeds must remain open in a view pane on FortiCentral where privacy analytics are active. Image processing is done by FortiCentral installations that are connected to FortiRecorder.

  8. Click 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. Click New.
  3. Enter a name for this task.
  4. Enter a description for this task.
  5. Select which camera you want to stream.
  6. In Encoder Setup, enter the server URL and stream name or key. This is the information you get when you set up the YouTube account.
  7. Click Create.