rosettadrone icon indicating copy to clipboard operation
rosettadrone copied to clipboard

Clarifying the RTP streaming quality settings

Open mangolas opened this issue 4 years ago • 4 comments

Thanks for making this, this is great resource and I like the idea of being able to use MAVLink on top of DJI SDK.

I managed to get Rosettadrone running on Smart Controller and Mavic 2 Enterprise Dual with no problems, but I would like to understand how to get more than 640x480 RTP output. I'm quite novice on video streaming matters, so I might just not understand this right, but nevertheless I have tried setting videoBitRate to different levels (tried 3, 4, 10), but when I play RTP stream, it's always 640x480. I could not find another setting that I could use to affect the outgoing video stream.

The GStreamer command I've been using to show incoming feed is gst-launch-1.0 -v udpsrc port=5600 ! application/x-rtp, encoding-name=H264 ! queue ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink.

So how one could control the outgoing video size? Or is it just wrong GStreamer pipeline config?

mangolas avatar May 07 '20 22:05 mangolas

Interesting, I belive I always get 1280*720... meybe I am wrong, I will check. I do forward what I get from DJI.

Best regard Terje Nilsen 9Tek AS Norway

  1. mai 2020 kl. 00:07 skrev Lassi Immonen [email protected]:

 Thanks for making this, this is great resource and I like the idea of being able to use MAVLink on top of DJI SDK.

I managed to get Rosettadrone running on Smart Controller and Mavic 2 Enterprise Dual with no problems, but I would like to understand how to get more than 640x480 RTP output. I'm quite novice on video streaming matters, so I might just not understand this right, but nevertheless I have tried setting videoBitRate to different levels (tried 3, 4, 10), but when I play RTP stream, it's always 640x480. I could not find another setting that I could use to affect the outgoing video stream.

The GStreamer command I've been using to show incoming feed is gst-launch-1.0 -v udpsrc port=5600 ! application/x-rtp, encoding-name=H264 ! queue ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink.

So how one could control the outgoing video size? Or is it just wrong GStreamer pipeline config?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

The1only avatar May 08 '20 03:05 The1only

When configuring the drone with Go4 how did you set this setting?

Best regard Terje Nilsen 9Tek AS Norway

  1. mai 2020 kl. 05:05 skrev Terje Nilsen [email protected]:

Interesting, I belive I always get 1280*720... meybe I am wrong, I will check. I do forward what I get from DJI.

Best regard Terje Nilsen 9Tek AS Norway

  1. mai 2020 kl. 00:07 skrev Lassi Immonen [email protected]:

 Thanks for making this, this is great resource and I like the idea of being able to use MAVLink on top of DJI SDK.

I managed to get Rosettadrone running on Smart Controller and Mavic 2 Enterprise Dual with no problems, but I would like to understand how to get more than 640x480 RTP output. I'm quite novice on video streaming matters, so I might just not understand this right, but nevertheless I have tried setting videoBitRate to different levels (tried 3, 4, 10), but when I play RTP stream, it's always 640x480. I could not find another setting that I could use to affect the outgoing video stream.

The GStreamer command I've been using to show incoming feed is gst-launch-1.0 -v udpsrc port=5600 ! application/x-rtp, encoding-name=H264 ! queue ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink.

So how one could control the outgoing video size? Or is it just wrong GStreamer pipeline config?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

The1only avatar May 08 '20 03:05 The1only

I think I realised the reason for 640x480, I had thermal camera on which only have that resolution.

Now that I'm using normal camera with Rosettadrone, GStreamer is reporting getting 960x720, which is better, but still not 1280x720 I was expecting. Maybe that is then Mavic 2 Enterprise Dual native h264 resolution, but I'm not quite sure if there is any way to control that resolution.

mangolas avatar May 08 '20 10:05 mangolas

Ok, I have only teste Mavic 2 Pro, it only got one camera and two live view modes HD or FullHD.

Best regard Terje Nilsen 9Tek AS Norway

  1. mai 2020 kl. 12:36 skrev Lassi Immonen [email protected]:

 I think I realised the reason for 640x480, I had thermal camera on which only have that resolution.

Now that I'm using normal camera with Rosettadrone, GStreamer is reporting getting 960x720, which is better, but still not 1280x720 I was expecting. Maybe that is then Mavic 2 Enterprise Dual native h264 resolution, but I'm not quite sure if there is any way to control that resolution.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

The1only avatar May 08 '20 10:05 The1only

See https://docs.google.com/document/d/1wR56Mvd2OsT82kxMOD7f_3-c6yJGBtLaT8LuVrmC5wI/edit#heading=h.q9mp6yjsfxe5

kripper avatar Apr 08 '23 15:04 kripper