Versions Compared

Key

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

...

Section


Column
width45%


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



Column


Configuring the Axxon PSIM/Axxon One server

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

Video transmission in RTMP mode

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

  1. Make sure that the Java Runtime Environment and Node.js. are installed on the Axxon PSIM/Axxon One 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 Axxon PSIM/Axxon One 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
    ports 1935 and 8554 on the computer are not blocked by the firewall and are not occupied by other software.
  2. Download the latest version of the https://github.com/bluenviron/mediamtx/releases service and run mediamtx.
  3. The 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/06/19 15:52:29 INF MediaMTX v0.23.5
    2023/06/19 15:52:29 INF [RTSP] listener opened on :8554 (TCP), :8000 (UDP/RTP), :8001 (UDP/RTCP)
    2023/06/19 15:52:29 INF [RTMP] listener opened on :1935
    2023/06/19 15:52:29 INF [HLS] listener opened on :8888
    2023/06/19 15:52:29 INF [WebRTC] listener opened on :8889 (HTTP)


  4. In the mobile client, in the Connection settings group, enable the RTMP streamer mode.
    Image Added

    Specify the URL address to send the video to, for example:

    Code Block
    rtmp://192.168.1.1:1935/streamId

    where:

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

    • instead of port 1935, specify the same port that is used by the service to receive RTMP streams;

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

  5. On the receiving side, use an URL address in the following form:

    Code Block
    rtsp://192.168.1.1:8554/streamId


    where:

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


    • instead of port 8554, specify the same port that is used by the service to send RTSP streams;


    • specify the same streamId that was set in the mobile application.

  6. Add an RTSP device and 1_channel_device to Axxon PSIM/Axxon One, set the parameters as described in step 4. For example:

    Code Block
    IP address 192.168.1.1/streamId, Port 8554.



  7. Ports and other settings can be changed in the mediamtx.yml configuration file located next to the mediamtx service executable file. The devices on which the mediamtx service is running, the video server and the mobile client must be within the same network

    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 Axxon PSIM/Axxon One and specify the following parameters:
  8. Type (manufacturer) − ONVIF 2.x;
  9. IP address − 127.0.0.1;
  10. 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 One see Adding and removing IP devices, in Axxon PSIM see Configuring IP-devices

    .

...

  1. .


Video transmission in RTSP server mode

Configure the mobile client as follows:

  1. In the mobile client, in the Connection settings group, enable the RTSP server mode.
    Image Added
  2. If necessary, change the RTSP server port.
  3. Use the address from the RTSP server url field to set the connection to Axxon PSIM/Axxon One.

Configure Axxon PSIM/Axxon One server as follows server in the RTSP server mode, do the following:

  1. Create a video capture device operating over the RTSP protocol (for Axxon One see Configuring connection of devices via RTSP, for Axxon PSIM see Configuring multimedia receipt using RTSP protocol).
  2. Specify Use 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. address from the RTSP server url field of the mobile client.

In the mobile client, you can configure the resolution, frame rate and bitrate of the transmitted video.

Image Added

...