Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note
titleAttention!

Transmitted video stream must be compressed using the H.264, H.265, MPEG4 or MJPEG codecs.

When the MJPEG codec is used, video of the height and/or width more than 2048 pixels is not supported.

The Client must reconnect to URL when the codec is changed.

To view the archive via RTSP Server, the archive must be recorded in the same codec. Otherwise, the archived video will not playback.

The time_begin and time_end time parameters must be specified in the UTC+0 format. If the archive is in a different time zone, you need to specify the time taking into account the time difference. 

On the settings panel of the RTSP Server object, you must select the specified Backup archive for the corresponding camera.

The VLC player compatibility mode must be enabled to view in VLC Media Player.

Note that when configuring, each RTSP Server loads only one CPU core. To increase the number of rtsp streams, you must create several RTSP Server objects and configure them on several cameras. Each RTSP Server entity runs in a separate system process (StreamingServer.run).

...

  1. In the context menu of the Computer object, select Create objectRTSP Server.
  2. Specify the name and ID of the object in the opened settings panel that opens.
  3. Click the Apply button to create the object.

...

  1. Open the settings panel for the RTSP Server object. For this select the created object in the Axxon PSIM objects tree.
  2. In the Cameras table, set the checkboxes next to video cameras video from which is to be displayed (1). If camera has several streams, the default stream is broadcasted.

    Info
    titleNote

    If default stream is changed on the corresponding Camera object settings panel after applying RTSP Server settings, it is mandatory to click the Apply button on the the RTSP Server object settings panel to apply changes to it as well. See also Configuration of multistream video.


  3. If video from the camera must be received through the videogate, then select the Videogate object from the Gate drop-down list (2).
  4. If archive from the camera must be received from the backup archive, then select the Backup archive object from the Backup archive drop-down list (3).
  5. Set the Unicast checkbox if signals from all cameras must be broadcast through one port (4).
  6. In the RTSP port field, specify the port via which the video is transmitted (5).

    Info
    titleNote
    The "Windows Media Player Network Sharing"  service service can use the default port 554. Change To enable broadcasting, you must change the port number or disable this service for broadcast.
    To disable the service, go to the Control panelAdministrative ToolsServices and double-click the service name and click the Stop button in the opened window that opens.
  7. In the HTTP port field, specify the port that must be used for transmitting video via http protocol (6).

...

Features of the Multicast mode:

  1. To get a multicast video in Axxon PSIM (see Configuring multimedia receipt using RTSP protocol) set the multicast value to the RTSP parameter in the HKEY_LOCAL_MACHINE \SOFTWARE\AxxonSoft\PSIM\Video\TransportProtocols registry section (for 64-bit system the path is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AxxonSoft\PSIM\Video\TransportProtocols) on computer where the Camera object is created. For detailed information on this parameter, see Changing the transport protocol used by IP-device.
  2. RTSP Server can broadcast simultaneously in Multicast and Unicast modes. Receiving both such streams on the Axxon PSIM client is impossible due to RTSP key which determines the connection mode (see above). However, the VLC player allows receiving streams in both modes in the same time.
  3. The ports that are assigned to each camera in this mode will not be displayed in the Windows OS Resource Monitor and other similar operating system resource monitors.

Using the Multicast mode allows you to reduce the load on the Server by reducing the amount of transmitted data. To distribute the transmitted signal among different RTSP ports, do the following:

  1. Go to the RTSP Server object settings panel.
  2. Set the Multicast checkbox (1). The Port column is displayed in the Cameras table.

  3. Specify a data transmission port for each video camera in the Port field (2). Bear in mind the following when specifying ports:

    1. The following ports are in use for each camera in the Multicast mode: nPort, nPort + 18000 (rtp), nPort + 19000 (rtcp), where nPort—port number specified for camera in the Port column.
      For proper operation of RTSP server in the Multicast mode these ports are to be vacant.
    2. Specified ports are not addressed directly. Use RTSP port to get video from all cameras in the Multicast mode.
    3. In spite of specifying video data port, it is required to specify camera number in the data source address (see the table below).


  4. In the Receiver IP address field (3), specify the address from which the broadcast in the Multicast mode will be performed. Address must be in the range from 224.0.1.0 to 239.255.255.255. By default, the receiver IP is 224.0.1.150. Bear in mind the following when specifying Receiver IP address:

    1. 224.0.0.0-224.0.0.255 address range is reserved for routing protocols and other service protocols. Destination IP address cannot be set from the specified range.

    2. RTSP-server can broadcast to one network simultaneously. The network with minimal metric is selected by default. To change the broadcast network, go to the Advanced settings tab (see below).

    3. Set different Receiver IP address and RTSP port if several RTSP Servers are in Multicast mode.
  5. In the RTSP port field (4), specify the number of port through which video signal will be sent in the Multicast mode. When requesting video data from the camera using the RTSP protocol, it is necessary to specify this port. The system itself forwards the request to the port of the requested camera.

...

  1. Go to the settings panel of the RTSP Server object.
  2. Set the value of one or more reference parameters Added, Gate, Port, Backup archive for one of the Camera objects.

  3. When holding down the Ctrl key, select the ( full ) rows in the table, which must have the same values ​​in the corresponding columns. 
  4. Right-click in the reference cell.
  5. In the opened function menu, select Set for selected rows: "Value". As a result, the corresponding column in all selected rows are filled the value equal to the reference parameter.
  6. Repeat steps 4-5 for all parameters that need to be applied to the selected lines.

...

Address

Example

Description

rtsp://Server IP address[Port]/CameraNo[?stream_id=StreamNo]

 

rtsp://127.0.0.1/1

Viewing default stream from Camera 1 if default port is used

rtsp://127.0.0.1:555/1

Viewing default stream from Camera 1 when broadcasting in Multicast mode if default port 555 is used.

Note. Connection to the RTSP stream is performed via the broadcasting adapter IP address, not by the destination IP which is specified in the settings panel of the RTSP Server and is used internally

rtsp://127.0.0.1:555/7?stream_id=7.2Viewing second stream from Camera 7
rtsp://Login:Password@Server IP address[Port]/CameraNortsp://login:pass@127.0.0.1:554/1Viewing video signal from Camera 1 if users and permissions are configured in Axxon PSIM (see Rights administration)
rtsp://login:pass@127.0.0.1:555/1Viewing video signal from Camera 1 in Multicast mode if users and permissions are configured in Axxon PSIM
rtsp://Server IP address[:Port]/CameraNo?mic_id=Microphone IDrtsp://127.0.0.1:555/15?mic_id=1Viewing video from Camera 15 with audio
rtsp://Server IP address[:Port]/?mic_id=Microphone IDrtsp://127.0.0.1:555/?mic_id=1Getting audio only from microphone 1 with no video from any camera

rtsp://Server IP address[:Port]/archive?id=CameraNo&time_begin=yyyy.mm.dd-hh:mm:ss&time_end=yyyy.mm.dd-hh:mm:ss

rtsp://127.0.0.1:554/archive?id=1&time_begin=2011.11.11-11:11:11&time_end=2011.11.11-11:12:00

Viewing video archive of Camera 1 for a specified time period

rtsp://Server IP address[:Port]/archive?id=CameraNo&mic_id=Microphone ID&time_begin=yyyy.mm.dd-hh:mm:ss&time_end=yyyy.mm.dd-hh:mm:ssrtsp://127.0.0.1:554/archive?id=1&mic_id=1&time_begin=2011.11.11-11:11:11&time_end=2011.11.11-11:12:00Viewing video archive of Camera 1 with audio from microphone 1 for a specified time period
rtsp://Server IP address[:Port]/archive?id=CameraNo&time_begin=yyyymmddThhmmssZ&time_end=yyyymmddThhmmssZrtsp://127.0.0.1:555/archive?id=1&time_begin=20160331T080000Z&time_end=20160331T080800ZViewing video archive of Camera 1 for a specified time period
rtsp://Server IP address[:Port]/archive?id=CameraNo&time_begin=yyyymmddThhmmssZrtsp://127.0.0.1:555/archive?id=4&time_begin=20160316T065000ZViewing video archive of Camera 4 from a specific start time till the archive end (as the value of time_end is not specified in the address)
rtsp://Server IP address[:Port]/archive?id=CameraNortsp://127.0.0.1:555/archive?id=4Viewing video archive of Camera 4 from the beginning till the end
rtsp://Server IP address[:Port]/archive?id=CameraNo&long_term_archive=BackupArchiveNortsp://127.0.0.1:559/archive?id=1&long_term_archive=2Viewing video archive of Camera 1 from Backup archive 2
rtsp://Server IP address[:Port]/archive?id=CameraNo&gate=VideogateNortsp://127.0.0.1:559/archive?id=1&gate=3Viewing video archive of Camera 1 from Videogate 3 archive
rtsp://Server IP address[:Port]/archive?id=CameraNo&time_begin=yyyymmddThhmmssZ&time_end=yyyymmddThhmmssZ&z=-1rtsp://127.0.0.1:554/archive?id=2&time_begin=20171120T102000Z&time_end=20171120T104000Z&z=-1

Viewing video archive of Camera 2 for the specified time period in reverse order

Info
titleNote

You can adjust the speed of forward and reverse playback directly in the player that you use.

rtsp://Server IP address[:Port]/archive?id=CameraNo&time_begin=yyyymmddThhmmssZ&time_end=yyyymmddThhmmssZ&long_term_archive=BackupArchNortsp://127.0.0.1:554/archive?id=2&time_begin=20201117T110200Z&time_end=20201117T114900Z&long_term_archive=1

Get Camera 2 records from Backup archive 1, starting from 11:02:00 on 11/17/2020 and ending at 11:49:00 on the same day.

time_begin and time_end in the request are UTC+0 time. If the time zone of the archive is in a different time zone, you need to specify the time taking into account the time difference. For example, if the archive is located in UTC+4 and you need a period from 15:02:00 to 15:49:00, the above example is suitable.On the settings panel of the RTSP Server object, you must select the specified Backup archive for the corresponding camera.

The VLC player compatibility mode must be enabled to view in VLC Media Player

Info
titleNote

If 554 port is in use used (default value), it can be not specified in the address line.

In the examples given above, specify the IP address of the computer on which the RTSP Server object is instead of 127.0.0.1.

...