RTSP setup request failed

I am trying to stream video with parrot sphinix simulator:

I rtsp_client: response to RTSP request SETUP: status=503(Service Unavailable) cseq=3 session=- req_status=FAILED
E pdraw_dmxstrm: RTSP setup request failed (-16: Device or resource busy)

This is the command used:
./out/pdraw-linux/staging/native-wrapper.sh pdraw -u rtsp://10.202.0.1/live

I get this:

This is part of the simulation log:

I am running this after simulation:

import olympe
import io
from olympe.messages.ardrone3.Piloting import TakeOff
file_object  = open('log_drone.txt', 'w', encoding='UTF-8') #<_io.TextIOWrapper name='log_drone.txt' mode='w' encoding='UTF-8'>
drone = olympe.Drone("10.202.0.1", logfile=file_object)
drone.connection()
drone(TakeOff()).wait()
drone.start_video_streaming()

I believe that this is the cause of the problem

[Wrn] [Publisher.cc:141] Queue limit reached for topic /gazebo/default/user_camera/pose, deleting message. This warning is printed only once

Thanks for your help! :frowning:

Hi,

The drone only supports one video stream at a time. By calling
drone.start_video_streaming() from Olympe, you create a video stream here (even if you don’t use it afterwards), thus PDrAW can’t connect.

If you don’t consume the video stream from Olympe, you can safely remove this line, and then you should be able to connect with PDrAW directly :wink:

Regards,
Nicolas.

1 Like

It works! thank you so much :slight_smile: