Versions Compared

Key

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


Section


Column
width35%50%


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 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 object
  2. =>
  3. RTSP Server.
  4. Specify the name and ID of the object in the
  5. opened
  6. settings panel that opens.
    Image Modified
  7. 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
  13. .
  14. If the default stream is changed on the settings panel of the

  15. corresponding
  16. corresponding Camera object

  17. settings panel
  18. after

  19. applying
  20. you apply RTSP Server settings,

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

  23. settings panel
  24. to apply changes to it as well. See

  25. also Configuration of
  26. also Configuring the multistream video.

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

  50. (5)
  51. .

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

Configuring Multicast translation

...

  1. for transmitting video via HTTP protocol.

Configuring the Multicast mode

Features of the Multicast mode:

  1. To get a multicast video in Axxon PSIM (see Receive multimedia 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, see Change 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 at 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 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 –
    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).
    Image Removed
    Info
    titleNote.
    Use of the Multicast mode allows decreasing Server load due to reduction of transmitted data
    Info
    titleNote.

    To get such 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\Axxon PSIM\Video\TransportProtocols registry section (for 64-bit system the path is HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\AxxonSoft\Axxon PSIM\Video\TransportProtocols) on computer where the Camera object is created. Detailed information on this parameter see in   Changing the transport protocol used by IP-device section.

    Info
    titleNote.

    RTSP Server can translate both in Multicast and Unicast modes simultaneously. Receiving both these streams on the Axxon PSIM client is impossible due to RTSP key defining the mode (see the note above). However, the VLC player allows receiving streams in both modes in the same time.

    1. Examples of addresses to view video from RTSP Server).
      Image Added


  22. In the Receiver IP address field

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

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

  27. Bear in mind the following when specifying
  28. 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.

  29. Destination IP address
    1. You cannot

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

    2. RTSP

  31. -
    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

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

  33. 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
  34. port if several RTSP Servers are in Multicast mode
    1. port fields.
  35. In the RTSP port field
  36. (4)
  37. , 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
  38. itself
  39. 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

  15. app – VLC player (2)
  16. app—VLC player.
    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
    title
  27. Important
  28. Attention!

    Correct video playback and captions operation are

  29. enabled only
  30. guaranteed in VLC Media Player version 2.0.0.

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

  33. If you want to eliminate a delay of several seconds when requesting a video via RTSP, set the Hot connection mode checkbox.
    Info
    title
  34. From the
  35. Note

    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.

  36. From the Source IP interface drop-down list, select the name of the network interface that

  37. should
  38. must be used to broadcast the RTSP server

  39. (3)
  40. .

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

  42. Single Data Center (
  43. ECHD

  44. )
  45. system, and the Video

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

    1. In the IP

  48. addr
    1. address field,

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

  50. broadcasting (4)
    1. broadcasting.

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

  51. 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

  52. Single Data Center (
    1. ECHD

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

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

  55. server object
    1. -

  56. see
    1. Server object—see Enabling the processing of SDC (ECHD

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

  58. 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.
  59. 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.
  60. 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
  61. Click the
  62. Click the 

  63. Apply button to save the

  64. changes
  65. 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.