...
Section | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The mobile client has two modes of operation: RTSP server and RTMP. The mode is selected in the mobile client settings.
To transfer video from the Android device camera to the Axxon PSIM/Axxon One server in the RTMP mode, do the following:
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 | ||
---|---|---|
| ||
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 |
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) |
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.
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.
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. |
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 | ||
---|---|---|
| ||
|
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 |
.
Info | ||
---|---|---|
| ||
For details about configuring IP cameras in Axxon One see Adding and removing IP devices, in Axxon PSIM see Configuring IP-devices |
...
. |
Configure the mobile client as follows:
Configure Axxon PSIM/Axxon One server as follows server in the RTSP server mode, do the following:
In the RTSP server field (1), move the switch to the position to use the RTSP server mode. If the switch is in the position , then the RTMP mode will be used.
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.
In the RTSP server port field (3) set the port number of the RTSP server. In the RTMP mode, you can skip this parameter.
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.
...
title | Attention! |
---|
...
In the mobile client, you can configure the resolution, frame rate and bitrate of the transmitted video.
...