Versions Compared

Key

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

...

Section


Column
width50%


Panel
borderColor#CCCCCC
bgColor#FFFFFF
titleBGColor#F0F0F0
borderStylesolid
titleOn the page:
Table of Contents



Column


General

...

information

The RTSP Server object is used for transmitting video from Server server to remote workplaces workstations using the RTSP protocol. Use The use of the RTSP protocol allows viewing you to view video from IP cameras and video archive on remote clients by means of the Axxon PSIM software or using use video players that support this protocol.  Transmitting Video gate archive Transmission of the archive of the Videogate and Backup archive is also supported.

If there is sound with a live video with audio or the archive is recorded with soundaudio, then video broadcast transmission with sound audio through RTSP Server is supported – for supported—for this specify the ID of microphone from which the archive is recorded when requesting video (see the table with requests examples). For proper operation of this feature set the VLC media Examples of addresses to view video from RTSP Server). For the audio to play correctly in VLC Media Player, set the VLC player compatibility mode checkbox checked in VLC Media Player (see item 14below).

Note
titleAttention!

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

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

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

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

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 must 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 videos in VLC Media Player.

Note that when configuring, each RTSP Server It is to be taken into account that while configuring each rtsp Server loads only one CPU core. To increase the number of rtsp streams several rtsp Server objects are to be created and configured , 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).

Info
titleNote

All the ports mentioned below are specified using only natural numbers.

Creating the RTSP Server

...

object

Create To create the RTSP Server object as follows, do the following:

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

Configuring the Unicast mode

    Open
  1. Go to the settings panel
  2. for
  3. of the RTSP Server object.
  4. For this select the created object in the Axxon PSIM objects tree.

  5. Image Modified
  6. In the Cameras table, set the checkboxes next to

  7. video
  8. cameras, video from which

  9. is to be displayed (1)
  10. you want to display. If a camera has several streams, the default stream is

  11. broadcasted
  12. transmitted.

    Info
    titleNote

    If the default stream is changed on the settings panel of the

  13. corresponding
  14. corresponding Camera object

  15. settings panel
  16. after

  17. applying
  18. you apply RTSP Server settings,

  19. it is mandatory to click Apply on the
  20. you must click the Apply button on the settings panel of the RTSP Server object

  21. settings panel
  22. to apply changes to it as well. See

  23. also Configuration of
  24. also Configuring the multistream video.

  25. If video from the camera is to be received through the video gate, then select the Video gate object in
  26. If video from the camera must be received through the videogate, then select the Videogate object from the Gate drop-down list
  27. (2)
  28. .
  29. If archive
  30. from the camera is to be received
  31. from the camera must be received from the backup archive,
  32. then select the
  33. then select the Backup archive object
  34. in
  35. from the Backup
  36. arch.
  37. archive drop-down list
  38. (3)
  39. .
  40. Set the Unicast checkbox
  41. checked
  42. if signals from all cameras
  43. are to
  44. must be broadcast through one port
  45. (4)
  46. .
  47. In the RTSP port field, specify the port via which the video is transmitted

  48. (5)
  49. .

    Info
    titleNote
    The "Windows Media Player Network Sharing"
  50.  service
  51. service can use the default port 554.
  52. Change
  53. To enable broadcasting, you must change the port
  54. number
  55. or disable this service
  56. for broadcast
  57. .
    To disable the service, go to the Control panelAdministrative ToolsServices and double-click the service name and click the Stop button in the
  58. opened
  59. window that opens.
  60. In the HTTP port field, specify the port
  61. that is to be used
  62. for transmitting video via
  63. http-
  64. HTTP protocol
  65. (6)
  66. .

Configuring the Multicast mode

Features of the Multicast mode:

  1. To get a multicast video in Axxon PSIM (see
  2. Configuring
  3. Receive multimedia
  4. receipt using
  5. stream via 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,
  6. see Changing
  7. see Change the transport protocol used by IP
  8. -
  9. device.
  10. 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
  11. in
  12. at the same time.
  13. 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 server by reducing the amount of transmitted data. To distribute the transmitted signal among different RTSP ports, do the following:

  1. Go to the settings panel of the RTSP Server object
  2. settings panel
  3. .
  4. Set the Multicast checkbox

  5. (1)
  6. . The Port column is displayed in the Cameras table.

  7. Specify a data transmission port for each

  8. video
  9. camera in the Port field

  10. (2). Bear in mind the following when specifying ports
  11. . When you specify ports, note the following:

    1. The following ports are
  12. in use
    1. used for each camera in the Multicast mode: nPort, nPort + 18000 (rtp), nPort + 19000 (rtcp), where
  13. nPort—port
    1. nPort is a port number specified for camera in
  14. the
    1. the Port column.
      For
  15. proper
    1. the correct operation of RTSP server in the Multicast mode, these ports
  16. are to
    1. must be
  17. vacant
    1. free.
    2. Specified ports are not addressed directly. Use RTSP port to get video from all cameras in the Multicast mode (see
  18. item 12
    1. step 5).
  19. In spite of specifying
    1. Even if you specify video data port

  20. it is required to
    1. , you still must specify camera number in the data source address (see

  21. the table below
    1. Examples of addresses to view video from RTSP Server).

  22. Image Removed
    1. Image Added


  23. In the Receiver IP address field

  24. (3)
  25. , specify the address from which the broadcast in the Multicast mode will be performed. Address

  26. is to
  27. 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.

  28. Bear in mind the following when specifying
  29. When you specify Receiver IP address, note the following:

    1. 224.0.0.0-224.0.0.255 address range is reserved for routing protocols and other service protocols.

  30. Destination IP address
    1. You cannot

  31. be
    1. set Receiver IP address from the specified range.

    2. RTSP

  32. -
    1. server can broadcast only to one network simultaneously. The network with minimal metric is selected by default. To change the broadcast network, go to

  33. the
    1. the Advanced settings tab (see below).

  34. Set different
    1. When you configure several RTSP Servers in the Multicast mode, you must specify different values for them in the Receiver IP address and RTSP
  35. port if several RTSP Servers are in Multicast mode
    1. port fields.
  36. In the RTSP port field
  37. (4)
  38. , 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
  39. itself
  40. forwards the request to the port of the requested camera.

...

Advanced settings

Perform To specify the additional settings as followsadvanced settings of RTSP Server, do the following:

  1. Go to the Advanced settings tab.
  2. Image Removed
  3. Image Added
  4. If the current time

  5. is to
  6. must be sent to VLC Media Player instead of the frame time, then set the VLC player compatibility mode checkbox

  7. checked (1). This option is to be used in case of problems when
  8. . You can use this option when there are problems with playing back the archive received over RTSP in VLC Media Player.

  9. If RTSP Server is used to broadcast video data to the ECHD system, then for the correct operation of navigation through the archive, set the ECHD compatibility mode checkbox.
  10. If there are captions on the video (see Configuring captions display on a video image), set the Use captions track

  11. checkbox checked to
  12. checkbox to send them

  13. along
  14. together with video via RTSP Server and to display them in the receiving app—VLC player

  15. (2)
  16. .
    Also, when this checkbox is set, time captions are added to the video image in the format

  17. YYYYMMDDTHHMMSSZ
  18. YYYYMMDDTHHMMSSZ.If the video is

  19. archive
  20. archived (see

  21. request examples below
  22. Examples of addresses to view video from RTSP Server), then the captions show the archive time.However, if the VLC player compatibility mode checkbox is set

  23. along
  24. together with the Use captions track

  25. check box
  26. checkbox, the time in the captions is current.

    Note
    titleAttention!

    Correct video playback and captions operation are

  27. enabled only
  28. guaranteed in VLC Media Player version 2.0.0.

  29. These
  30.  These features are not guaranteed to work in other versions of VLC Media Player or other programs.

  31. If you want to eliminate a delay of several seconds when requesting a video via RTSP, set the Hot connection mode checkbox.
    Info
    titleNote

    The delay when requesting a video via RTSP can also depend on the camera key frame rate (FPS) settings or the frame buffer size settings in the player.

  32. From

  33. the
  34. the Source IP interface drop-down list, select the name of the network interface that

  35. should
  36. must be used to broadcast the RTSP server

  37. (3)
  38. .

  39. If the RTSP Server is used for broadcasting the video data to the

  40. Single Data Center (
  41. ECHD

  42. )
  43. system, and the Video

  44. Surveillance Servers
  45. surveillance servers are behind NAT, then it is necessary to specify the NAT settings:

    1. In the IP address field,

  46. specify the
    1. specify the IP address of the router that performs the NAT

  47. broadcasting (4)
    1. broadcasting.

    2. In the Port field, specify the port of the router, which is accessed by the client when executing the

  48. Single Data Center (ECHD) requests (5)
    1. ECHD requests.

      Info
      titleNote

      To enable the substitution of the router's specified IP address and port to the

  49. Single Data Center (
    1. ECHD

  50. )
    1. requests, it is necessary to set the corresponding checkbox

  51. in
    1. on the settings panel of the Web

  52. server object—see
    1. -Server object—see Enabling the processing of SDC (ECHD

  53. requests and selecting rtsp server.
    1. ) requests and selecting the RTSP server.

  54. In the Number of threads (min/) field, specify the value that corresponds to the initial number of threads that are created when the RTSP Server is started. The default value is 1.
  55. In the Number of connections per thread field, specify the value that corresponds to the maximum number of client connections per thread, with equal distribution. If this parameter is exceeded, a new thread is created. The default value is 20.
  56. In the Number of threads (/max) field, specify the value that corresponds to the maximum allowed number of threads that can be created. If there are too many threads, server rejects additional connections. The default value is 100
  57. Click the
  58. Click the 

  59. Apply button to save the

  60. changes
  61. settings.

Bulk settings for cameras

In case any changeable setting should must be the same for several cameras, there is a possibility of bulk settingit can be duplicated. This feature is available for editable columns: Added, Gate, Port, Backup Archivearchive.

Perform bulk setting of cameras as follows: To specify the bulk settings, do the following: 

  1. Go to the settings panel of the RTSP
  2. -
  3. Server object.
  4. Set
  5. Specify the value of one or more reference parameters Added, Gate, Port, Backup
  6. Archive
  7. archive for one of the Camera objects.
  8. Image Removed
  9. Image Added
  10. While holding down
  11. Press the Ctrl key
  12. ,
  13. and select the
  14. (
  15. full
  16. )
  17. rows in the table, which
  18. should
  19. must have the same values ​​in the corresponding columns. 
  20. Right-click in the cell of the reference
  21. cell
  22. parameter.
  23. In the
  24. opened
  25. function menu that opens, select Set for selected rows: "Value". As a result, the corresponding column in all selected rows are filled with the value equal to the reference parameter. 
  26. Repeat steps 4-5 for all parameters that need to be applied to the selected lines.

Examples of addresses to receive video from RTSP Server

To connect to Server and display video in the video player that supports RTSP protocol, specify the address of data source in the format given in the table:

...

Address

...

Example

...

Description

...

rtsp://127.0.0.1/1

...

Viewing default stream from Camera 1 if default port is in use

...

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

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:554/archive?id=1&time_begin=2011.11.11-11:11:11&&time_end=2011.11.11-11:12:00

...

Viewing video archive from Camera 1 for specified time period

...

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

Info
titleNote

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

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

The figure shows how to view video from the Server.

Image RemovedBulk settings are complete.