Versions Compared

Key

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


Section


Column
width35%45%


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



Column

Configuring the Intellect/Axxon Next server



Go to the mobile application settings by clicking the Image Added button or on the information panel Image Added.

The screen with the following settings will open:

  • Connection—the streamer mode and its settings.
  • Video parameters—the transmitted video settings.
  • Help—language and version of the application.
Note
titleAttention!

To ensure the correct operation of the application, the time on the Android device and the Axxon PSIM/Axxon One server must be synchronized.

Streamer settings (Connection)

The mobile client has two modes of operationvideo transmission: RTSP server mode and RTMP . The mode is selected in the mobile client settings.mode.

To select a mode, click on the Streamer mode area:

Image Added

Video transmission in RTMP mode

To transfer video from the Android device camera to the Intellect Axxon PSIM/Axxon NextOne server in the RTMP mode, do the following:

On the server that will receive the stream:

  1. Make sure that the Java Runtime Environment and Node.js. are installed on the Intellect/Axxon Next server.

    Download and install the livestream_setup.exe distribution kit with the Livestream and rtmp2rtsp services. The default services installation directory is C:\Program Files (x86)\Livestream.

    Info
    titleNote

    The Livestream service creates several virtual ONVIF cameras that are added to the Intellect/Axxon Next server configuration. The rtmp2rtsp service receives the RTMP stream, then converts it to RTSP and directs it to the server's virtual ONVIF camera.

    After you install the services, you can set the following parameters using the Windows system variables:

    Code Block
    LIVESTREAM_ONVIF_COUNT \\ number of virtual ONVIF cameras, default = 5
    LIVESTREAM_ONVIF_PORT \\ port of the first virtual camera. All other cameras receive the port in order, default = 1961.
    Note
    titleAttention!
    • The specified ports should not be blocked by a firewall.
    • To apply the changes, it is necessary to restart the services using the restart.bat batch file located in the services installation directory.

    After you start the services, the livestream.out.log file will appear in the installation directory. This file contains url for each camera to send and receive video from the Android device, for example:

    Code Block
    onvif device started at port 1961
    onvif device url = http://host:1961/onvif/device_service
    push video to url = rtmp://host:1935/TOKEN/1961
    video url = rtsp://localhost:1937/TOKEN/1961
    Manually add IP cameras to Intellect/Axxon Next and specify the following parameters:
  2. Type (manufacturer) - ONVIF 2.x;
  3. IP address - 127.0.0.1;
  4. Port - the camera port number from the "onvif device url" string in the livestream.out.log file.

    Info
    titleNote

    For details about configuring IP cameras in Axxon Next see Adding and removing IP devices, in Intellect see Configuring IP devices.

To transfer video from the Android device camera to the Intellect/Axxon Next server in the RTSP server mode, do the following:

  1. Create a video capture device operating over the RTSP protocol (for Axxon Next see Configuring connection of video cameras via RTSP, for Intellect see Configuring multimedia receipt using RTSP protocol).
  2. Specify the URL from the application in the settings of this device:
    Image Removed

Configuring the Axxon Camera mobile client

  1. Go to the mobile application settings by clicking the Image Removed button.
    Image Removed
  2. In the Network settings group, set the parameters as follows:
    1. In the RTSP server field (1), move the switch to the position Image Removed to use the RTSP server mode. If the switch is in the position Image Removed, then the RTMP mode will be used.

    2. In the RTMP push url field (2), specify the value of the "push video to url" string from the file on the livestream.out.log server to use the RTMP mode. In the RTSP server mode, you can skip this parameter.

    3. In the RTSP server port field (3) set the port number of the RTSP server. In the RTMP mode, you can skip this parameter.

    4. The RTSP server url field (4) field contains the URL of the video stream in the RTSP mode. To copy it, tap on the field once.

  3. In the Video settings group, set the parameters as follows:
    1. In the Resolution back field (5) select the resolution of the main camera.
    2. In the Resolution front field (6) select the resolution of the front camera.
    3. In the FPS field (7) set the frame rate.
    4. In the Bitrate field (8) set the bitrate of the video.

...

titleAttention!
  1. ports 1935 and 8554 on the computer are not blocked by the firewall and are not occupied by other software. These ports are used by default for RTSP data transmission, and are also used as an example in this instruction.
  2. Download the latest version of the mediamtx service from GitHub and run mediamtx.exe.

    Note
    titleAttention!

    The devices on which the mediamtx service is running, the video server and the mobile client must be within the same network.


    The mediamtx service receives video streams from mobile devices via RTMP and sends the video to the server in the form of RTSP streams.
    The service indicates the ports it uses, for example:

    Code Block
    2023/09/01 15:11:10 INF MediaMTX v1.0.1
    2023/09/01 15:11:10 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
    2023/09/01 15:11:10 INF [RTMP] listener opened on :1935
    2023/09/01 15:11:10 INF [HLS] listener opened on :8888
    2023/09/01 15:11:10 INF [WebRTC] listener opened on :8889 (HTTP)
    2023/09/01 15:11:10 INF [SRT] listener opened on :8890 (UDP)

    Ports and other settings can be changed in the mediamtx.yml configuration file located next to the mediamtx service executable file.

In the mobile client:

  1. In the Connection settings group, enable the RTMP streamer mode.
  2. In the Streamer settings, enter a URL of the form rtmp://<IP address>:<Port>/stream_id to which the video will be sent. Example:

    Code Block
    rtmp://192.168.1.1:1935/stream

    where:

    • 192.168.1.1 is the IP address of the computer where the mediamtx service is running;

    • port 1935 is the port that is used by the service to receive RTMP streams;

    • stream is an arbitrary unique identifier for the video stream from this mobile client.

On the server side that will receive the stream:

  1. Add a single-channel RTSP device to Axxon PSIM/Axxon One (for Axxon PSIM, see Configuring multimedia receipt using RTSP protocol; for Axxon One, see Configuring connection of devices via RTSP).
  2. For this device, set a URL of the form rtsp://<IP address>:<Port>/stream_id, which contains:
    1. IP address of the computer where the mediamtx service is running;

    2. port that is used by the service to send RTSP streams;

    3. unique identifier for the video stream from this mobile client.
      Example:

      Code Block
      rtsp://192.168.1.1:8554/stream


Video transmission in RTSP server mode

To use a mobile device as an RTSP server, do the following:

In the mobile client:

  1. In the Connection settings group, enable the RTSP server mode.
  2. If necessary, change the RTSP server port. The default port is 1935.
  3. The mobile client displays the URL for setting up a connection to Axxon PSIM/Axxon One. To copy it, click on the RTSP server url area.

On the Axxon PSIM/Axxon One server:

  1. Create a video capture device operating over the RTSP protocol (for Axxon PSIM, see Configuring multimedia receipt using RTSP protocol; for Axxon One, see Configuring connection of devices via RTSP).
  2. In its settings, specify the URL copied from the mobile client.

Video parameters

By default, the mobile client uses the following parameters for transmitted video:

  • Main camera resolution: 1920x1080
  • Front camera resolution: 1920x1080
  • Bitrate: 1 Mbps
  • FPS: 30

You can change these parameters in Settings Video parameters.

Application language

By default, the application language is the same as the device's operating system language. You can change it in Settings Help Language

...

.