Error converting RTP stream (Kurento) to RTSP using GStreamer in a Flask microservice

22 views
Skip to first unread message

Eugenio Vitor

unread,
Apr 2, 2025, 4:37:17 AMApr 2
to gstreamer-java

Problem Description:

I am trying to capture an RTP stream from Kurento, transcode it, and send it as an RTSP stream to DeepStream within a Flask microservice. However, when executing the following command, I encounter multiple errors:

gst-launch-1.0 -v rtspsrc location=rtsp://127.0.0.1:8554/test latency=500 ! decodebin ! autovideosink

Main errors in the log:

sys:1: Warning: g_object_ref_sink: assertion 'g_atomic_int_get (&object->ref_count) >= 1' failed
ERROR:../pygobject-3.52.3/gi/pygobject-object.c:717:pygobject_register_wrapper: assertion failed: (gself->obj->ref_count >= 1)

And also:
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not read from resource.
ERROR: from element /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0: Could not write to resource.

Environment:

  • Operating System: Windows 10

  • GStreamer Version: 1.22.0

  • PyGObject Version: 3.52.3

  • Hardware: Intel Iris Xe Graphics

  • Framework: Flask microservice

Expected Behavior:
I want to take an RTP stream from Kurento, encode it as RTSP, and send it to DeepStream within my Flask microservice. How can I resolve this error and ensure pipeline stability?

Neil C Smith

unread,
Apr 2, 2025, 4:41:24 AMApr 2
to gstream...@googlegroups.com
On Wed, 2 Apr 2025 at 09:37, Eugenio Vitor <lopeseug...@gmail.com> wrote:
> I am trying to capture an RTP stream from Kurento, transcode it, and send it as an RTSP stream to DeepStream within a Flask microservice. However, when executing the following command, I encounter multiple errors:
...
> Environment:
>
> Operating System: Windows 10
>
> GStreamer Version: 1.22.0
>
> PyGObject Version: 3.52.3
>
> Hardware: Intel Iris Xe Graphics
>
> Framework: Flask microservice

Where is gst1-java-core fitting into all this, and if it does, what
version and what Java environment?

Best wishes,

Neil

--
Neil C Smith
Codelerity Ltd.
www.codelerity.com

Codelerity Ltd. is a company registered in England and Wales
Registered company number : 12063669
Registered office address : 3rd Floor Suite, 207 Regent Street,
London, W1B 3HH, England
Reply all
Reply to author
Forward
0 new messages