RB5 drone streaming from different cameras



  • While following instructions provided here
    https://docs.modalai.com/Qualcomm-Flight-RB5-sdk-camera-server/
    and here
    https://docs.modalai.com/Qualcomm-Flight-RB5-streamer/
    we managed to get low resolution streaming from camera 3 (Front Hi-res).

    1. Is it possible to get higher resolution camera stream (for example FullHD)?

    2. How to get stream from other cameras, for example camera 2 (Front Tracking)?

    sh-4.4# rb5-camera-server-configure 
    
    Would you like to enable the camera service?
    This will start all cameras in a background process
    Selecting yes will start the service, no will disable the service
    
    1) yes
    2) no
    #? 1
    

    Trying to run systemctl status rb5-camera-server@2 provided strange error/warning:

    root@qrb5165-rb5:~# systemctl status rb5-camera-server@2
    ● rb5-camera-server@2.service - "rb5-camera-server-2"
       Loaded: loaded (/usr/bin/rb5-camera-server; indirect; vendor preset: enabled)
       Active: active (running) since Fri 2022-04-08 18:04:24 CEST; 2min 39s ago
     Main PID: 2681 (rb5-camera-serv)
        Tasks: 4 (limit: 4915)
       CGroup: /system.slice/system-rb5\x2dcamera\x2dserver.slice/rb5-camera-server@2.service
               └─2681 /usr/bin/rb5-camera-server -c 2
    
    Apr 08 18:04:24 qrb5165-rb5 systemd[1]: Started "rb5-camera-server-2".
    Apr 08 18:04:24 qrb5165-rb5 rb5-camera-server[2681]: gbm_create_device(156): Info: backend name is: msm_drm
    Apr 08 18:04:24 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:12: Unknown lvalue 'After' in section 'Service'
    Apr 08 18:04:24 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:13: Unknown lvalue 'Requires' in section 'Service'
    Apr 08 18:04:25 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:12: Unknown lvalue 'After' in section 'Service'
    Apr 08 18:04:25 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:13: Unknown lvalue 'Requires' in section 'Service'
    Apr 08 18:04:27 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:12: Unknown lvalue 'After' in section 'Service'
    Apr 08 18:04:27 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:13: Unknown lvalue 'Requires' in section 'Service'
    Apr 08 18:04:28 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:12: Unknown lvalue 'After' in section 'Service'
    Apr 08 18:04:28 qrb5165-rb5 systemd[1]: /etc/systemd/system/rb5-camera-server@.service:13: Unknown lvalue 'Requires' in section 'Service'
    

    Could you advise how to get stream from cam2? Thanks!


  • Dev Team

    @MJ said in RB5 drone streaming from different cameras:

    Tracking

    Hello,

    At the moment the rb5-streamer only streams video at 640x480 at 30fps. In order to achieve a different resolution, a custom gstreamer implementation will have to be used. The rb5-streamer is based off of the code found here.

    In order to get streams from other cameras, through rb5-streamer, begin by disabling the camera server for the corresponding camera you'd like to use, and start a new rb5-streamer instance using the -c flag to select the camera index. So for the tracking camera:

    systemctl stop rb5-camera-server@2
    systemctl disable rb5-camera-server@2
    rb5-streamer -c 2
    

    A reboot may be required after stopping and disabling the service

    you'll then be able to access the stream at rtsp://VEHICLES_IP:8554/camera2

    Regarding the weird systemctl status rb5-camera-server@2 warning messages, I don't believe I've seen those warning messages show up before. Were the After and Requires fields modified in the service file? These are the appropriate values in case it was modified:

    After=qmmf-server.service
    Requires=qmmf-server.service
    

Log in to reply