# Error: gst_rtsp_server_attach_failed

Source: https://forum.modalai.com/topic/1415/error-gst_rtsp_server_attach_failed
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2022-10-01 06:38:10 UTC by Moodsh00
Replies: 6 · Views: 852

## Moodsh00 · 2022-10-01 06:38:10 UTC

Trying to get rtsp stream from hi res camera of sentinel voxl2. I dont have doodle labs or 5g. Can someone please help as im getting above error. Camera server connected. The pc is connected direct to voxl wifi. In rtsp-streamer it seems to get 0 from gst rtsp server attach after creating rtsp server main loop source for callback. Cannot find any info online to get past this.

## Reply by modaltb (ModalAI staff) · 2022-10-03 16:36:12 UTC

Hi @Moodsh00 ,

Have you tried using `voxl-streamer` ?  This would be the preferred way of using gst

https://docs.modalai.com/voxl-streamer/

Source code here:

https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-streamer

## Reply by Moodsh00 · 2022-10-03 17:22:09 UTC

Thanks for reply. The error message referred to is actually from voxl-streamer. I enter the shell; then type voxl-streamer. It responds saying:
 using config file etc/modalai/voxl-streamer
Camera server connected.
ERROR: gst rtsp server attach fail

## Reply by Moodsh00 · 2022-10-04 05:09:23 UTC (in reply to modaltb)

@modaltb 

Thanks for reply. The error message referred to is actually from voxl-streamer. I enter the shell; then type voxl-streamer. It responds saying:
using config file etc/modalai/voxl-streamer
Camera server connected.
ERROR: gst rtsp server attach fail

## Reply by modaltb (ModalAI staff) · 2022-10-05 15:58:58 UTC

If you run `voxl-inspect-cam -a` do you have hires showing up?

Can check out this config file: `/etc/modalai/voxl-streamer.conf`

Here's hires example config: https://docs.modalai.com/voxl-streamer/#high-resolution-hires-camera-example

## Reply by Moodsh00 · 2022-10-07 09:49:05 UTC (in reply to modaltb)

@modaltb 

Yes it shows up. 480X640 with 11.90ms exposure and gt =2

It also shows up fine in the web portal

## Reply by Moodsh00 · 2022-10-10 04:44:54 UTC (in reply to modaltb)

@modaltb 

I figured it out this weekend. It had to do with a swap file in streamer config. I deleted the file and rtsp showed up. However now im trying to get rtsp stream quality to match the quality on voxl portal. Its really grainy. I tried the config files in streamer at 1920X1080 and increased the bitrate by a factor of 5. Will try the camera server today.

Also; is there a way to stream to both vlc and gcs at same time. The feed cuts when i try a second viewer.

Lastly; is there a way to keep the rtsp stream connected to gcs from bootup. It seems like when i close the shell; the rtsp stream to gcs gets lost.

Many thanks again.
