Your Server can receive video along with system audio and microphone audio from remote Client screens via the FFmpeg driver using the RTSP translation. To do it, do the following::

  1. On the Server:
    1. Open the port for receiving data from the remote Client.

      The open port mustn’t be occupied. You can use the following command to check if the port is available: 

      netstat -ano | findstr :<Port>

      It is recommended to set ports higher than 10000.


    2. Add a 1 channel device and specify its address in the IP address field in the following format:

      listenrtsp://<Server IP address>:<Port>

      The RTSP link is specified optionally.

      listenrtsp://<Server IP address>:<Port>/<RTSP link>

      For example:

      listenrtsp://127.0.0.1:1554/live1.sdp

      where
      127.0.0.1IP address of the Server;
      1554RTSP port, which mustn’t be occupied. To check if the port is available, you can use the command from step 1a;
      live1.sdpRTSP link.


  2. On the remote Client:
    1. Download the package of open source FFmpeg libraries from the official website.
    2. Open the command prompt, and go to the folder containing the ffmpeg.exe file.
    3. Run the following command:

      ffmpeg.exe -f gdigrab -video_size 640x480 -i desktop -c:v <Codec> -f rtsp -muxdelay 0.1 "listenrtsp://<Server IP address>:<Port>/<RTSP link>"

      where 
      the Codec parameter may accept the mpeg2video, mpeg4, h264 or hevc value;
      the video_size 640x480 and -muxdelay 0.1 parameters may be omitted or altered.
      If necessary, you can specify additional parameters in this command.

      Supported parameters

      Description

      -draw_mouse <int>

      Mouse cursor presence. Available range: 0 to 1, default value is 1

      -show_region <int>

      Capture area indication. Available range: 0 to 1, default value is1

      -framerate <video_rate>

      FPS value (number of frames)

      -video_size <image_size>

      Video image size (pixels)

      -muxdelay <int>Maximum demultiplexer-decoding delay (seconds)
      -offset_x <int>

      Capture area X offset (pixels). Default value is 0

      -offset_y <int>

      Capture area Y offset (pixels). Default value is 0

      After the command execution, remote Client's screen is shared on your display.

      • The axes of the capture area are offset from the upper left corner of the main monitor.
      • If the additional monitor is located to the left of the main monitor, a negative value of offset_x must be used to move the capture area to the additional monitor.
      • If the additional monitor is located above the main monitor, a negative value of offset_y must be used to move the capture area to the additional monitor.


Examples of commands to share the screen of the remote Client

On the remote Client, you can run the commands to share the screen.